body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-width: 1200px;
    font-size: 14px;
    padding-top: 70px;
    transition: background-color 0.3s ease;
}

/* ✅ Navbar FIXIERT + bleibt BLAU in beiden Modi */
.navbar {
    min-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #0d6efd !important;
}

/* ✅ Dunkelmodus: Seitenhintergrund dunkel */
[data-bs-theme="dark"] body {
    background-color: #1a1a1a !important;
}

/* ✅ Dunkelmodus: Container & Tabs anpassen */
[data-bs-theme="dark"] .main-container {
    background-color: #242424 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .tab-bar {
    background-color: #2d2d2d !important;
    border-bottom-color: #444 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #b0b0b0 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #242424 !important;
    color: #7ab0ff !important;
    border-color: #444 #444 #242424 !important;
}

.nav-select {
    width: 200px;
    margin: 0;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    font-weight: 500;
    font-size: 14px;
}

.nav-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.navbar-brand {
    margin-left: 1rem;
    margin-bottom: 0;
    white-space: nowrap;
}

/* ✅ Nur der Container scrollt */
.main-container {
    width: 1140px;
    max-width: 1140px;
    margin: 1.5rem auto 0 auto;
    padding: 0;
    min-height: calc(100vh - 90px);
    border-radius: 0.75rem;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.tab-bar {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    margin-right: 4px;
    font-size: 14px;
}

.tab-content {
    padding: 1.5rem;
}

.container {
    width: 1140px !important;
    max-width: 1140px !important;
}

.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.navbar-toggler {
    display: none !important;
}

/* ✅ Spaltenbreiten steuern */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 120px;
    white-space: nowrap;
}
.table th:nth-child(2),
.table td:nth-child(2) {
    width: calc(100% - 120px);
}