/* ALGEMENE STIJL */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* NAVIGATIE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #105dd8;
    padding: 15px 30px;
    color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    max-width: 200px;
    height: auto;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-btn i {
    font-size: 16px;
}

/* HEADER BAR */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 40px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-bar h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchInput {
    padding: 12px 18px 12px 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    width: 280px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
}

#searchInput:focus {
    border-color: #105dd8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 93, 216, 0.1);
    transform: translateY(-1px);
}

.add-site-btn {
    background: linear-gradient(135deg, #105dd8 0%, #0c4cb6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 93, 216, 0.2);
    position: relative;
    overflow: hidden;
}

.add-site-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.add-site-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-site-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 93, 216, 0.35);
}

.add-site-btn:active {
    transform: translateY(0);
}

/* CONTAINER EN TABEL */
.site-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* background: #f8f9fa; */
    padding: 40px;
    box-sizing: border-box;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 0;
    align-items: center;
}

/* EXPORT FOOTER */
.export-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
    margin-top: 16px;
}

.export-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.export-link:hover {
    color: #6b7280;
    background: #f9fafb;
}

.export-link i {
    font-size: 12px;
}

/* FILTER DROPDOWN */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.filter-toggle-btn:hover {
    border-color: #105dd8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
    color: #105dd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 93, 216, 0.15);
}

.filter-toggle-btn i {
    font-size: 14px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #105dd8 0%, #0c4cb6 100%);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    min-width: 240px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 16px;
    animation: slideDown 0.2s ease-out;
}

.filter-dropdown-content.show {
    display: block;
}

.filter-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    margin-bottom: 4px;
}

.filter-option:hover {
    background: #f9fafb;
}

.filter-option input[type="radio"] {
    margin: 0;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #105dd8;
}

.filter-option span {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.site-table th {
    padding: 12px 20px;
    background: transparent;
    font-weight: 600;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    text-align: left;
}

.site-table td {
    padding: 20px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 14px;
}

.site-table td:first-child {
    border-left: 1px solid #e5e7eb;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.site-table td:last-child {
    border-right: 1px solid #e5e7eb;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.site-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-table tbody tr:hover td {
    background: #f9fafb;
    border-top-color: #bfdbfe;
    border-bottom-color: #bfdbfe;
}

.site-table tbody tr:hover td:first-child {
    border-left-color: #bfdbfe;
}

.site-table tbody tr:hover td:last-child {
    border-right-color: #bfdbfe;
}

.site-table th a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    gap: 6px;
}

.site-table th:hover {
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

.site-table td {
    color: #333;
    font-size: 15px;
}

.site-table td a {
    color: #105dd8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-table td a:hover {
    color: #0c4cb6;
    text-decoration: underline;
}

.actions-container {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1.5px solid #e5e7eb;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(16, 93, 216, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.action-btn:hover::before {
    width: 100px;
    height: 100px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #105dd8 0%, #0c4cb6 100%);
    border-color: #105dd8;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 93, 216, 0.3);
}

.action-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.action-btn i {
    position: relative;
    z-index: 1;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s ease-out;
    position: relative;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
}

.modal-content p {
    margin: 12px 0;
    line-height: 1.6;
    font-size: 15px;
    color: #555;
}

.close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

/* TABS */
.type-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    gap: 0;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    color: #666;
}

.tab-button:hover {
    color: #105dd8;
}

.tab-button.active {
    color: #105dd8;
    border-bottom: 3px solid #105dd8;
}

/* FORM */
#addForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#addForm label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

#addForm input[type="text"],
#addForm input[type="email"],
#addForm select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: white;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#addForm input:focus,
#addForm select:focus {
    border-color: #105dd8;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(16, 93, 216, 0.1);
    outline: none;
}

.env-name-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-suffix {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* DROPDOWN SPECIFIEK VOOR PAKKET */
#pakketFields select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

/* KNOPPEN */
.submit-btn {
    background-color: #105dd8;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #0c4cb6;
    box-shadow: 0 4px 12px rgba(16, 93, 216, 0.2);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 93, 216, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* TYPE BADGES */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.type-badge.type-Development {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.type-badge.type-Production {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.type-badge.type-cpanel {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.type-badge.type-Development::before {
    content: "🔧";
    font-size: 14px;
}

.type-badge.type-Production::before {
    content: "🚀";
    font-size: 14px;
}

.type-badge.type-cpanel::before {
    content: "⚙️";
    font-size: 14px;
}

/* DOMAIN CELL */
.domain-cell {
    font-weight: 600;
}

.domain-cell a {
    position: relative;
    display: inline-block;
}

.domain-cell a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #105dd8, #0c4cb6);
    transition: width 0.3s ease;
}

.domain-cell a:hover::after {
    width: 100%;
}

/* ANIMATIES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
