:root {
    --portal-sidebar-bg: #111827;
    --portal-sidebar-width: 260px;
    --portal-body-bg: #0d1117;
    --portal-card-bg: #161b22;
    --portal-border-color: #30363d;
    --portal-text-muted: #8b949e;
}

body {
    background-color: var(--portal-body-bg);
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--portal-sidebar-width);
    background: var(--portal-sidebar-bg);
    border-right: 1px solid var(--portal-border-color);
    display: flex;
    flex-direction: column;
    z-index: 1045;
    padding: 1.5rem 1rem;
    transition: transform 0.25s ease;
}

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    padding: 0.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid var(--portal-border-color);
    margin-bottom: 1rem;
}

.sidebar-brand .brand-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--portal-text-muted);
    display: block;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-link {
    color: #c9d1d9;
    border-radius: 0.375rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-link.active {
    background-color: rgba(13, 110, 253, 0.2);
    color: #6ea8fe;
}

.main-content {
    margin-left: var(--portal-sidebar-width);
    min-height: 100vh;
    padding: 2rem;
}

.card {
    background-color: var(--portal-card-bg);
    border: 1px solid var(--portal-border-color);
    border-radius: 0.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--portal-border-color);
}

.portal-stat-card {
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
}

.portal-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.portal-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--portal-text-muted);
    margin-top: 0.25rem;
}

/* Status badges */
.badge-pending { background-color: #e3b341; color: #000; }
.badge-approved { background-color: #238636; }
.badge-rejected { background-color: #da3633; }

/* Auth layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-body-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--portal-card-bg);
    border: 1px solid var(--portal-border-color);
    border-radius: 0.75rem;
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.auth-brand p {
    color: var(--portal-text-muted);
    font-size: 0.875rem;
}

/* Mobile topbar */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--portal-sidebar-bg);
    border-bottom: 1px solid var(--portal-border-color);
    align-items: center;
    padding: 0 1rem;
    z-index: 1040;
    gap: 0.75rem;
}

.mobile-topbar .mobile-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    flex: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #c9d1d9;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1044;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        top: 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(56px + 1rem);
    }
}

/* Kennzeichen */
.numberPlate, .numberPlate-small {
    text-align: center;
    display: inline-block;
    border: 1px solid #404040;
    border-radius: 3px;
    background-image: linear-gradient(90deg, #4185cd 10%, #fff 0, #fff 80%);
    color: #111;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.numberPlate {
    padding: 3px 8px 3px 15px;
    font-size: 0.8rem;
}

.numberPlate-small {
    padding: 2px 4px 2px 10px;
    font-size: 0.7rem;
}
