 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: rgb(7, 38, 49);
            color: white;
            overflow-x: hidden;
        }

        /* Header styling */
        .header {
            background-color: #1a1a1a;
            color: white;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: relative;
            z-index: 100;
        }
        /* Navigation styling */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            width: 100%;
        }
        /* Hamburger menu styling */
        .hamburger-menu {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            width: 30px;
        }

        .hamburger-menu span {
            height: 3px;
            width: 100%;
            background-color: white;
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Menu items */
        .menu-items {
            position: absolute;
            top: 60px;
            left: 20px;
            background-color: rgba(26, 26, 26, 0.95);
            border-radius: 5px;
            padding: 8px 0;
            display: none;
            flex-direction: column;
            min-width: 200px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
        }

        .menu-items.active {
            display: flex;
        }

        .menu-items a {
            padding: 10px 20px;
            text-decoration: none;
            color: white;
            transition: background-color 0.3s;
            border-bottom: 1px solid #333;
        }

        .menu-items a:last-child {
            border-bottom: none;
        }

        .menu-items a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* User options */
        .user-options {
            position: relative;
        }

        .user-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 4px;
            transition: background-color 0.3s;
            font-size: 14px;
        }

        .user-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .dropdown-menu {
            position: absolute;
            top: 40px;
            right: 0;
            background-color: #1a1a1a;
            border-radius: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: none;
            flex-direction: column;
            min-width: 160px;
            z-index: 1000;
        }

        .dropdown-menu.active {
            display: flex;
        }

        .dropdown-menu a {
            padding: 10px 15px;
            text-decoration: none;
            color: white;
            border-bottom: 1px solid #333;
            transition: background-color 0.3s;
            font-size: 14px;
        }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

        .dropdown-menu a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* Main content area */
        .main-content {
            display: flex;
            min-height: calc(100vh - 60px);
            transition: all 0.3s ease;
        }

        /* Vertical tabs styling - collapsible */
        .vertical-tabs {
            width: 70px;
            background-color: #1a1a1a;
            border-right: 1px solid #333;
            height: calc(100vh - 60px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            position: relative;
            z-index: 10;
        }

        .vertical-tabs.collapsed {
            transform: translateX(-100%);
            width: 0;
        }

        .tab-buttons {
            display: flex;
            flex-direction: column;
        }

        .tab-btn {
            background: none;
            border: none;
            padding: 15px;
            cursor: pointer;
            border-bottom: 1px solid #333;
            transition: background-color 0.3s;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 70px;
        }

        .tab-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .tab-btn.active {
            background-color: rgb(7, 38, 49);
            border-left: 4px solid #1a73e8;
        }

        .tab-icon {
            width: 24px;
            height: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Tab content area - adjusted spacing */
        .tab-content {
            flex: 1;
            padding: 20px;
            background-color: rgb(7, 38, 49);
            overflow-y: auto;
            transition: all 0.3s ease;
            position: relative;
        }

        .tab-content.expanded {
            margin-left: 0;
        }

        .tab-pane, .horizontal-tab-pane {
            display: none;
        }

        .tab-pane.active, .horizontal-tab-pane.active {
            display: block;
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .tab-pane h2 {
            margin-bottom: 15px;
            color: white;
            border-bottom: 2px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 8px;
            font-size: 1.5rem;
        }

        .tab-pane p {
            line-height: 1.5;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .card {
            background: rgba(26, 26, 26, 0.7);
            border-radius: 6px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .card h3 {
            margin-bottom: 8px;
            color: white;
            font-size: 1.1rem;
        }

        .card p {
            font-size: 13px;
            line-height: 1.4;
        }

        /* Sidebar toggle area - only visible when sidebar is collapsed */
        .sidebar-toggle-area {
            position: fixed;
            left: 0;
            top: 60px;
            width: 20px;
            height: calc(100vh - 60px);
            background-color: transparent;
            z-index: 5;
            cursor: pointer;
            display: none;
            transition: all 0.3s ease;
        }

        .sidebar-toggle-area.visible {
            display: block;
        }

        .sidebar-toggle-area:hover::after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(26, 26, 26, 0.1);
        }

/* --- Overview Toolbar Styling --- */
.overview-toolbar {
    margin-bottom: 20px;
}

.overview-toolbar input {
    width: 100%;
    max-width: 400px;
    padding: 10px; /* Iets minder padding dan in formulieren */
}
/* --- Data Source Grid Layout --- */
#data-sources-list {
    display: grid;
    gap: 20px;
    /* Standaard 1 kolom voor mobiel */
    grid-template-columns: 1fr;
}

/* Media queries voor grotere schermen */
@media (min-width: 768px) {
    #data-sources-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    #data-sources-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1600px) {
    #data-sources-list { grid-template-columns: repeat(4, 1fr); }
}

/* --- Data Source Card Styling --- */
.data-source-card {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-source-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.source-type-badge {
    background-color: #1a73e8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.scope-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
    background-color: #fbbc05; /* Google Yellow */
    color: #202124;
}

.card-containers {
    margin-bottom: 10px;
}

.container-badge {
    display: inline-block;
    background-color: #5f6368;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 5px;
    margin-top: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #ccc;
}

.btn-icon {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 1px;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: white;
}

.btn-icon.btn-delete:hover {
    color: #f44336;
}

/* --- Form Styling --- */
#add-source-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: rgba(26, 26, 26, 0.9);
    color: white;
    font-size: 1rem;
}

.submit-btn {
    padding: 12px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0d62d9;
}

.message { padding: 12px; margin-top: 20px; border-radius: 4px; text-align: center; }
.message.error { background-color: rgba(244, 67, 54, 0.8); }
.message.success { background-color: rgba(76, 175, 80, 0.8); }

.cancel-btn {
    padding: 12px 20px;
    background-color: #6c757d; /* Grijze kleur */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px; /* Ruimte tussen de knoppen */
}

/* --- Container Management Styling (Nieuw) --- */
.container-toolbar {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.container-card {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.container-card p {
    flex-grow: 1;
    color: #ccc;
    font-size: 0.9rem;
}

.container-card-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #ccc;
}

.container-card-stats strong {
    display: block;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2px;
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2001; /* Verhoogd om boven .manager-overlay (z-index: 2000) te verschijnen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content-container {
    background-color: rgb(7, 38, 49);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.modal-content-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-content-container .close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content-container .close-btn:hover {
    color: white;
}

.container-card .card-header .btn-manage-container {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.container-card:hover .card-header .btn-manage-container {
    visibility: visible;
    opacity: 1;
}

/* --- Manager Overlay Styling --- */
.manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.manager-content {
    background: rgb(15, 45, 58);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Specifieke styling voor de data viewer om de grootte vast te zetten */
.viewer-content {
    width: 95vw;
    height: 90vh;
    max-width: 1600px; /* Een ruime maximale breedte */
}

.manager-header, .manager-footer {
    padding: 15px 25px;
    flex-shrink: 0;
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.manager-header h3 {
    margin: 0;
}

.manager-body {
    padding: 25px;
    flex-grow: 1;
    
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    
}

.manager-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.manager-section .form-group {
    margin-bottom: 15px;
}

.manager-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between; /* Knoppen uit elkaar plaatsen */
    gap: 10px;
    align-items: center;
}

.manager-footer .delete-btn {
    padding: 12px 20px;
    background-color: #dc3545; /* Rood */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.manager-footer .delete-btn:hover {
    background-color: #c82333;
}

.source-selector {
    max-height: 350px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 4px;
}

.source-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}
.source-checkbox:hover { background: rgba(255,255,255,0.1); }
.source-checkbox input { margin-right: 10px; }
.source-checkbox .scope-badge.small { font-size: 0.65rem; padding: 2px 6px; margin-left: auto; }
.scope-badge.user { background-color: #1a73e8; color: white; }
.scope-badge.global { background-color: #fbbc05; color: #202124; }

.source-checkbox .source-name {
    flex-grow: 1;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.connected { background-color: #4caf50; }
.status-dot.disconnected { background-color: #6c757d; }

.btn-connect-small {
    font-size: 0.8rem;
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}
.btn-connect-small:hover {
    text-decoration: underline;
}
/* --- Advanced Config Styling (Ontbrekend/Onvolledig) --- */
.advanced-config-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.horizontal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.horizontal-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.horizontal-tab-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.horizontal-tab-btn.active {
    color: white;
    font-weight: bold;
    border-bottom-color: #1a73e8;
}

.horizontal-tab-btn:disabled {
    color: #666;
    cursor: not-allowed;
    background: none;
}

.status-indicator {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-indicator.connected { background-color: #4caf50; color: white; }
.status-indicator.disconnected { background-color: #6c757d; color: white; }

/* --- Notification Styling --- */
#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInAndOut 5s forwards;
}

.notification.success {
    background-color: rgba(76, 175, 80, 0.9);
    border-left: 4px solid #66bb6a;
}

.notification.error {
    background-color: rgba(220, 53, 69, 0.9);
    border-left: 4px solid #ef5350;
}

@keyframes slideInAndOut {
    0% { opacity: 0; transform: translateX(100%); }
    15% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}


/* Hamburger menu styling */
        .hamburger-menu {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            width: 30px;
        }

        .hamburger-menu span {
            height: 3px;
            width: 100%;
            background-color: white;
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Menu items */
        .menu-items {
            position: absolute;
            top: 60px;
            left: 20px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 5px;
            padding: 10px 0;
            display: none;
            flex-direction: column;
            min-width: 150px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .menu-items.active {
            display: flex;
        }

        .menu-items a {
            padding: 10px 20px;
            text-decoration: none;
            color: rgb(7, 38, 49);
            transition: background-color 0.3s;
        }

        .menu-items a:hover {
            background-color: rgba(7, 38, 49, 0.1);
        }

        /* User login icon */
        .user-login {
            display: flex;
            align-items: center;
        }

        .user-login a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: white;
            font-weight: bold;
        }

        .user-icon {
            width: 30px;
            height: 30px;
            background-color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            color: rgb(7, 38, 49);
            font-weight: bold;
        }

        /* Logo styling */
        .logo-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .logo {
            max-width: 80%;
            height: auto;
            max-height: 70vh;
        }
        /* --- Column Alias Grid Styling --- */
.column-alias-grid {
    display: grid;
    grid-template-columns: auto 1fr 2fr;
    gap: 10px 15px;
    align-items: center;
    margin-top: 10px;
}

.column-alias-header {
    font-weight: bold;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.column-alias-grid input[type="checkbox"] {
    justify-self: center;
}
/* --- Viewer Toolbar --- */
.viewer-toolbar {
    padding: 10px 25px;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.viewer-toolbar input {
    width: 100%;
    max-width: 350px;
    padding: 8px;
    font-size: 0.9rem;
}

#viewer-record-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Sorteerbare Headers --- */
th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Ruimte voor de pijl */
}
th.sortable:hover { background-color: rgba(255,255,255,0.05); }
th.sortable::after { content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 4px solid transparent; }
th.sortable.sort-asc::after { border-bottom-color: white; }
th.sortable.sort-desc::after { border-top-color: white; }

/* --- Data Viewer Table Styling (Ontbrekend/Onvolledig) --- */
.table-wrapper {
    overflow: auto; /* Zowel horizontaal als verticaal scrollen */
    height: 100%;
    width: 100%;
}

.data-viewer-table {
    width: 100%;
    border-collapse: collapse;
}

.data-viewer-table th, .data-viewer-table td {
    padding: 2px 10px; /* Nog compacter maken */
    font-size: 0.85rem; /* Iets kleiner lettertype voor compactheid */
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    white-space: nowrap;
}

.data-viewer-table td.actions {
    white-space: nowrap;
    width: 1%;
}

/* --- Algemene Config/Preview Tabel Styling (Ontbrekend) --- */
.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.config-table th, .config-table td {
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.config-table thead th {
    background-color: rgba(0, 0, 0, 0.2);
}

/* --- Boolean Indicator Styling --- */
.bool-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 auto; /* Centreer het bolletje in de cel */
    display: block; /* Nodig om margin auto te laten werken */
}

.bool-indicator.true { background-color: #4caf50; /* Groen */ }
.bool-indicator.false { background-color: #f44336; /* Rood */ }
