/* Design System - Leitstelle CC */
:root {
    /* Dark Mode Farben */
    --bg-primary: #04130d;
    --bg-secondary: #082016;
    --bg-tertiary: #0f2a1c;
    --bg-hover: #153523;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #708075;
    
    /* Akzentfarben */
    --accent-primary: #22c55e;
    --accent-secondary: #15803d;
    --accent-success: #4ade80;
    --accent-warning: #facc15;
    --accent-danger: #ef4444;
    
    /* Border & Shadows */
    --border-color: #1c2a21;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.7);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: linear-gradient(135deg, #031f12 0%, #0a2c1a 50%, #031f12 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    margin: 0;
    padding: 1.5rem 2rem;
}

/* ===== HEADER (GLASSMORPHISM) ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(34, 197, 94, 0.1);
}

/* Header Left - User + Duty Status */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* User Info */
.user-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.user-section.swat-active {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.18));
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.user-section.swat-active .avatar {
    border: 2px solid rgba(34, 197, 94, 0.8);
}

.user-section.swat-active .user-rank-badge {
    color: rgba(224, 242, 254, 0.95);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
   /* border: 2px solid var(--accent-primary); */
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-secondary);
}

.user-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-rank-badge {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-rank-badge .user-rank-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
    background: var(--rank-badge-color, #22c55e);
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-overview-card {
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.overview-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.overview-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 0.35rem;
}

.overview-meta {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.quick-link-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.6);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.5);
}

.quick-link-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
}

.quick-link-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.65);
}

.admin-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.bento-card {
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.bento-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
}

.bento-meta {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.55);
    margin-left: 0.5rem;
}

.project-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.snapshot-item {
    padding: 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.snapshot-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.55);
}

.snapshot-value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f8fafc;
}

.project-snapshot-footer {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.65);
}

.list-activity {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.list-activity li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.list-activity strong {
    color: #f8fafc;
}

.list-activity em {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.6);
}

.reminder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reminder-item {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.reminder-item strong {
    font-size: 0.9rem;
}

.reminder-item span {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.65);
}

.reminder-item.reminder-warning {
    border-color: rgba(249, 115, 22, 0.35);
}

.reminder-item.reminder-success {
    border-color: rgba(34, 197, 94, 0.35);
}

.reminder-item.reminder-info {
    border-color: rgba(34, 197, 94, 0.35);
}

.mini-chart-bars {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    height: 180px;
    padding: 0.25rem 0;
}

.mini-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
    justify-content: flex-end;
}

.mini-bar-value {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.65);
}

.mini-bar-fill {
    width: 100%;
    max-width: 26px;
    background: linear-gradient(180deg, #22c55e, #15803d);
    border-radius: 8px 8px 4px 4px;
    transition: height 0.3s ease;
    display: block;
}

.mini-bar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.6);
}

.unit-compact-assigned-user.swat-active,
.dispatch-unassigned-item.swat-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.18));
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.25);
}

.unit-compact-assigned-user.swat-active .assigned-user-label,
.dispatch-unassigned-item.swat-active .assigned-user-label {
    color: rgba(224, 242, 254, 0.95);
}

.user-rank-badge .user-rank-title {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BADGES (GLASSMORPHISM) ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-muted {
    background: rgba(148, 163, 184, 0.15);
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}

.badge-outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.45);
    color: rgba(226, 232, 240, 0.9);
}

.badge-primary {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-primary);
    border-color: rgba(34, 197, 94, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-discord {
    background: #5865F2;
    color: white;
    gap: 0.5rem;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.4);
}

/* ===== BENTO GRID (GLASSMORPHISM) ===== */
.bento-item {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bento-item > * {
    position: relative;
    z-index: 1;
}
/* Status Item */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.status-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.status-value.success {
    color: var(--accent-success);
}

.status-value.info {
    color: var(--accent-primary);
}

/* ===== WELCOME CARD (GLASSMORPHISM) ===== */
.welcome-card {
    background: linear-gradient(100deg, 
        rgba(23, 143, 255, 0.452) 0%, 
        rgb(6, 21, 34) 85%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(23, 143, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.welcome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 60%);
}

.welcome-card > * {
    position: relative;
    z-index: 1;
}

.welcome-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.welcome-card p {
    font-size: 1.125rem;
    opacity: 0.95;
}

.welcome-card-layout {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.welcome-card-copy {
    flex: 1 1 320px;
    min-width: 240px;
}

.welcome-card-server {
    flex: 0 1 520px;
    min-width: 360px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.welcome-card-server .bento-panel {
    margin: 0;
    width: 100%;
    background: rgba(10, 26, 43, 0.78);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 40px rgba(8, 16, 32, 0.35);
    padding: 1.35rem 1.5rem;
}

.welcome-card-server .server-panel-header {
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.welcome-card-server .server-player-count {
    align-items: flex-start;
    min-width: 0;
}

.welcome-card-server .server-player-count-value {
    font-size: 2rem;
}

/* Login Page */
.login-body {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(120% 120% at 20% 20%, rgba(56, 189, 248, 0.18) 0%, rgba(13, 17, 23, 0) 60%),
                radial-gradient(120% 120% at 80% 0%, rgba(147, 51, 234, 0.16) 0%, rgba(13, 17, 23, 0) 55%),
                linear-gradient(135deg, #0b1120, #111827 55%, #0f172a);
}

.login-surface {
    min-height: 100vh;
    padding: clamp(3rem, 5vw, 5rem) clamp(1.75rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 4vw, 5rem);
    align-items: center;
}

.login-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 520px;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(226, 240, 255, 0.85);
    background: rgba(21, 128, 61, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.35);
    width: fit-content;
}

.login-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #e8f1ff;
}

.login-description {
    font-size: 1.05rem;
    color: rgba(203, 213, 225, 0.85);
    max-width: 30rem;
}

.login-highlight-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding: 0;
}

.login-highlight-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.login-highlight-list li::before {
    content: '';
    position: absolute;
    top: 0.35rem;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #15803d);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.login-highlight-list li::after {
    content: '';
    position: absolute;
    top: 0.63rem;
    left: 0.32rem;
    width: 0.3rem;
    height: 0.5rem;
    border: 2px solid rgba(15, 23, 42, 0.85);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.login-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: clamp(2.5rem, 4vw, 3rem);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.45);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 80% at 80% 0%, rgba(34, 197, 94, 0.25) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.login-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.login-card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f8fafc;
}

.login-card-subtitle {
    font-size: 0.95rem;
    color: rgba(203, 213, 225, 0.75);
    line-height: 1.6;
    max-width: 24rem;
}

.login-environment {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.login-discord-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    font-size: 1rem;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
}

.login-discord-btn svg {
    width: 22px;
    height: 22px;
}

.login-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.login-info p {
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .login-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .login-intro {
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .login-highlight-list {
        text-align: left;
        max-width: 28rem;
        margin: 0 auto;
    }

    .login-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .login-card-header {
        align-items: center;
        text-align: center;
    }

    .login-card-subtitle {
        text-align: center;
    }

    .login-info {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .login-surface {
        padding: 3rem 1.5rem 2rem;
    }

    .login-highlight-list li {
        padding-left: 1.6rem;
        font-size: 0.9rem;
    }
}

/* Discord Icon */
.discord-icon {
    width: 24px;
    height: 24px;
}

/* Leitstellen-Spezifisch */

/* ===== NAVIGATION (GLASSMORPHISM) ===== */
.nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    color: white;
}

/* Category Section */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Unit Card */
.unit-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--category-color, var(--accent-primary));
    transition: var(--transition);
}

.unit-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Unit Status */
.unit-card.status-available {
    border-color: var(--border-color);
}

.unit-card.status-busy {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.unit-card.status-unavailable {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    opacity: 0.7;
}

/* Unit Header */
.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.unit-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.unit-callsign {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Unit Body */
.unit-body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.unit-assigned {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.unit-assigned-name {
    color: var(--accent-success);
    font-weight: 600;
}

.unit-unassigned {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Unit Actions */
.unit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Full Width Container */
.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}


/* ===== FORMS (GLASSMORPHISM) ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select option {
    background: rgba(30, 30, 30, 1);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1),
                0 0 20px rgba(34, 197, 94, 0.2);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.color-input-wrapper {
    flex: 1;
}

.color-input {
    width: 100%;
    height: 54px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-tertiary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tr:hover {
    background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-wrap: wrap;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Color Preview */
.color-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.color-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--preview-color) 0%, transparent 100%);
    opacity: 0.3;
}

.color-preview::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--preview-color);
    border-radius: 6px;
}



/* Form Grid */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* Color Picker Group */
.color-picker-group {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.color-input-wrapper {
    flex: 1;
}

.color-input {
    width: 100%;
    height: 50px;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* ===== ADMIN GLASSMORPHISM DESIGN ===== */

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Glassmorphic Cards */
.admin-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Dynamic Category Color Glow */
.admin-card[data-color] {
    border-color: var(--card-color);
    box-shadow: 0 0 20px var(--card-color-shadow),
                inset 0 0 20px var(--card-color-shadow);
}

.admin-card[data-color]:hover {
    box-shadow: 0 20px 40px var(--card-color-shadow),
                0 0 30px var(--card-color-shadow),
                inset 0 0 30px var(--card-color-shadow);
}

.admin-card[data-color]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        var(--card-color) 0%, 
        transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.admin-card > * {
    position: relative;
    z-index: 1;
}

/* Card Header */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.admin-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.admin-card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.admin-card-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Color Preview (modernized) */
.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--preview-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Delete Button (modernized) */
.btn-delete {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
}

.admin-card:hover .btn-delete {
    opacity: 1;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

/* Create Card (Glass Style) */
.create-card {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.create-card:hover {
    border-color: var(--accent-primary);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.create-card-content {
    text-align: center;
    color: var(--text-secondary);
}

.create-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.create-card-text {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Filter Tabs (Glass Style) */
.filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-tab:hover::before {
    opacity: 1;
}

.filter-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.filter-tab[data-color] {
    border-color: var(--filter-color);
}

.filter-tab[data-color].active {
    background: var(--filter-color);
    border-color: var(--filter-color);
    color: white;
    box-shadow: 0 4px 12px var(--filter-color-shadow);
}

/* Modal (Glass Style) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Large */
.modal-content.modal-large {
    max-width: 1600px !important;
    width: 98% !important;
}

/* User Profile Modal Styles */
.user-section-clickable {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.user-section-clickable:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.profile-header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-discord {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-meta-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.profile-meta-list li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.profile-meta-list .meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}
/* Neues Profil Design */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    margin-bottom: 1.5rem;
}

.profile-display-name {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.profile-rank {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.profile-discord {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.team-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.profile-meta-list .meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-meta-list .meta-subtext {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.5rem;
    row-gap: 1.2rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, var(--accent-primary));
    opacity: 0.6;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-value-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.stat-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stats-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-list-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-breakdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.time-breakdown-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.time-breakdown-scroll::-webkit-scrollbar {
    width: 6px;
}

.time-breakdown-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.time-breakdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.time-breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.time-breakdown-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.time-breakdown-rank {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-breakdown-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.time-breakdown-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.time-breakdown-label span {
    display: block;
}

.time-breakdown-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-card-unit-list,
.user-detail-unit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.unit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    background: var(--unit-badge-color, #6b7280);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
}

.unit-badge::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
}

.unit-badge-none {
    background: rgba(107, 114, 128, 0.35);
    border-color: rgba(156, 163, 175, 0.4);
    color: rgba(229, 231, 235, 0.9);
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--item-color, var(--accent-primary));
    border-radius: 8px;
    transition: all 0.2s ease;
}

.top-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.top-item-info {
    flex: 1;
}

.top-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.top-item-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.top-item-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--item-color, var(--accent-primary));
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.no-data {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    padding: 1.5rem;
}

.loading-spinner {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 1rem;
}

.error-message {
    text-align: center;
    color: var(--danger);
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* Preset Colors (Glass Style) */
.preset-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 0.625rem;
    margin-top: 1rem;
}

.preset-color {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preset-color::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%);
}

.preset-color:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preset-color.active {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2),
                0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Tabs (Glass Style) */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: white;
    background: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Admin Section (Glass Style) */
.admin-section {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ===== BUTTONS (GLASSMORPHISM) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: rgba(34, 197, 94, 0.8);
    color: white;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    background: rgba(21, 128, 61, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-warning {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.35);
}

.btn-warning:hover {
    background: rgba(250, 204, 21, 0.22);
    transform: translateY(-2px);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.8);
    color: white;
    gap: 0.5rem;
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: rgba(71, 82, 196, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Section Spacing */
.admin-section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    margin: 3rem 0;
}


/* ===== LEITSTELLE - COMPACT DARK DESIGN ===== */

/* Categories Container */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    width: 100%;
}


.category-box {
    position: relative;
}

.category-box[data-color]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--category-color);
}

.category-box > * {
    position: relative;
    z-index: 1;
}

/* Category Header - Kompakt */
.category-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-box-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-box-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Units within Category */
.category-units {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}



.unit-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--category-color, var(--accent-primary));
}

/* Status Colors */
.unit-card-compact.status-busy {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.unit-card-compact.status-busy::before {
    background: var(--accent-success);
}

.unit-card-compact.status-unavailable {
    opacity: 0.4;
}

/* Unit Header - Horizontal Layout */
.unit-compact-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    padding-right: 2.5rem;
}

.unit-compact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.unit-compact-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unit-compact-callsign {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

/* Badge - Absolut positioniert außerhalb des Flows */
.unit-card-compact .badge {
    position: absolute;
    top: 0.625rem;
    right: 3rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Unit Body - Kompakter */
 .unit-compact-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Unit Actions - Button rechts */
.unit-compact-actions {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
}

.unit-compact-actions .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Drag & Drop Styles */
.sortable-ghost {
    opacity: 0.4;
    background: var(--accent-primary);
}

body.drag-scroll-active,
body.drag-scroll-active * {
    user-select: none !important;
    cursor: grabbing !important;
}

/* Drag & Drop - Text-Selection verhindern */
.admin-card:not(.create-card) {
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.admin-card:not(.create-card):hover {
    cursor: grab;
}

.admin-card:not(.create-card):active {
    cursor: grabbing;
}

/* Drag Handle */
.drag-handle {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-tertiary);
    cursor: grab;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    user-select: none;
}

.admin-card:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.admin-card-content {
    cursor: pointer;
    flex: 1;
    padding-left: 2rem;
}

/* ===== ADMIN SECTION STRUCTURE ===== */

/* Admin Section Container */
/* Admin Tabs */
.admin-layout {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.admin-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 110px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 17, 23, 0.65);
    backdrop-filter: blur(18px);
}

.admin-tabs {
    display: flex;
    flex-direction: column;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(248, 250, 252, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    text-align: left;
}

.admin-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-tab.active {
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.25));
    border-color: rgba(34, 197, 94, 0.45);
    color: #fff;
}

.admin-tab:not(.active):hover {
    border-color: rgba(34, 197, 94, 0.25);
    color: rgba(248, 250, 252, 0.9);
}

.admin-content-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 960px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-tab {
        width: auto;
        flex: 1 1 calc(50% - 0.5rem);
    }
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Section Header */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Admin Section Title */
.admin-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Admin Section Subtitle */
.admin-section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* Category Title (alte Klasse für Kompatibilität) */
.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.sortable-ghost {
    opacity: 0.3;
}

.sortable-drag {
    opacity: 0.8;
}

/* Multi-User Assigned List */
.unit-compact-assigned-user {
    --assigned-user-color: rgba(16, 185, 129, 0.12);
    --assigned-user-border: rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 5px;
    background: var(--assigned-user-color);
    border: 1px solid var(--assigned-user-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
    width: 100%;
}

.unit-compact-assigned-user[data-rank-color] {
    --assigned-user-color: color-mix(in srgb, var(--rank-color-current, rgba(16, 185, 129, 0.35)) 24%, transparent 76%);
    --assigned-user-border: color-mix(in srgb, var(--rank-color-current, rgba(16, 185, 129, 0.45)) 60%, #1f2937 40%);
}

.unit-compact-assigned-user:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.unit-compact-assigned-user.operator-draggable {
    cursor: move;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--rank-color-current, rgba(34, 197, 94, 1)) 65%, transparent 35%),
        0 12px 22px color-mix(in srgb, var(--rank-color-current, rgba(34, 197, 94, 1)) 30%, transparent 70%);
}

.unit-compact-assigned-user.operator-draggable:active {
    transform: translateY(1px);
}

.assigned-user-label {
    font-size: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

.user-indicator {
    color: var(--accent-primary);
    font-weight: 600;
    margin-left: 0.75rem;
    padding-left: 0;
    white-space: nowrap;
    margin-top: 0;
}

/* ===== STATUSCODE SYSTEM ===== */

/* Statuscode Buttons Container */
.status-code-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(22, 57, 87, 0.37);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Statuscode Button */
.status-code-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--status-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.status-code-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--status-color);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.status-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-code-btn:hover::before {
    opacity: 0.2;
}

.status-code-btn.active {
    background: var(--status-color);
    border-color: var(--status-color);
    box-shadow: 0 0 20px var(--status-color);
}

.status-code-btn.active::before {
    opacity: 0;
}

.status-code-btn.active .status-code-number,
.status-code-btn.active .status-code-name {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Statuscode Number */
.status-code-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--status-color);
    position: relative;
    z-index: 1;
}

/* Statuscode Name */
.status-code-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* Selected Status Info */
.selected-status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
}

.selected-status-info span {
    color: var(--text-secondary);
}

.selected-status-info strong {
    color: var(--accent-primary);
}

/* Unit Card Clickable State */
.unit-clickable[style*="cursor: pointer"] {
    position: relative;
}

.unit-clickable[style*="cursor: pointer"]::after {
    content: 'Klicken zum Setzen';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 100;
}

.unit-clickable[style*="cursor: pointer"]:hover::after {
    opacity: 1;
}

.unit-clickable[style*="cursor: pointer"]:hover {
    box-shadow: 0 0 0 3px var(--accent-primary);
}

/* Unit Status Badge */
.unit-status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Unit Selectable State */
.unit-status-selectable {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--category-color);
    }
    50% {
        box-shadow: 0 0 0 4px var(--category-color);
    }
}

.unit-status-selectable::before {
    content: '✓ Klicken';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: var(--category-color);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 100;
}

.unit-status-selectable:hover::before {
    opacity: 1;
}

/* Entferne alte selected-status-info */
.selected-status-info {
    display: none !important;
}

/* Admin Card Content - Clickable */
.admin-card-content {
    cursor: pointer;
    flex: 1;
    padding-left: 2rem;
}

.admin-card:not(.create-card) {
    cursor: default;
}

.drag-handle {
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Modal Active State - CRITICAL FIX */
.modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
    z-index: 10000 !important;
}

/* Duplicate modal definition removed - using the main definition at line 1065 */

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Unit Status Display - Inside Card */
.unit-status-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #ffffff;
}

.unit-status-display .status-code-number {
    font-size: 1.125rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.unit-status-display .status-code-text {
    font-size: 0.8125rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: black;
}

/* Entferne alte unit-status-badge Styles */
.unit-status-badge {
    display: none;
}

/* Unit Cards ohne Status weniger hervorgehoben */
.unit-card-compact:not([style*="box-shadow"]) {
    opacity: 0.7;
}

/* ===== LEITSTELLE - BENTO GRID (BLAU/DUNKELGRAU) ===== */

/* Categories Container - Bento Grid Layout */
.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

/* Category Box - Admin-Style mit Kategorie-Glow */
.category-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--category-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 300px;
    max-width: 100%;
    box-shadow:
        0 0 20px var(--category-color)33,
        inset 0 0 20px var(--category-color)11;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Radial Gradient Background mit Kategoriefarbe */
.category-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
        var(--category-color) 0%,
        transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}


.category-box > * {
    position: relative;
    z-index: 1;
}

/* Category Header */
.category-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-box-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.category-box-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Units within Category - Nebeneinander wie vorher */
.category-units {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Unit Card - Admin-Style Standard (helleres Grau) */
.unit-card-compact {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    flex: 0 0 auto;
    width: 280px;
    overflow: hidden;
}

/* Subtle Shine Effect */
.unit-card-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unit-card-compact:hover::before {
    opacity: 1;
}

.unit-card-compact:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Unit Card MIT Status - Admin-Style Glow mit Statusfarbe */
.unit-card-compact[data-has-status="true"] {
    border-color: var(--category-color);
    box-shadow:
        0 0 20px var(--category-color)33,
        inset 0 0 20px var(--category-color)11;
}

/* Radial Gradient Background mit Statusfarbe */
.unit-card-compact[data-has-status="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
        var(--category-color) 0%,
        transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.unit-card-compact[data-has-status="true"]:hover {
    box-shadow:
        0 20px 40px var(--category-color)33,
        0 0 30px var(--category-color)44,
        inset 0 0 30px var(--category-color)15;
}

/* Stelle sicher dass Inhalt über dem Gradient liegt */
.unit-card-compact > * {
    position: relative;
    z-index: 1;
}

/* Unit Header */
.unit-compact-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.unit-compact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.unit-compact-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.unit-compact-callsign {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Unit Status Display - Minimal & Rechteckig (nur Name) */
.unit-status-display {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: var(--category-color);
    color: #ffffff;
    width: fit-content;
    position: relative;
    box-shadow:
        0 2px 6px var(--category-color)66,
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* Verstecke die Code-Nummer */
.unit-status-display .status-code-number {
    display: none;
}

/* Nur der Name wird angezeigt */
.unit-status-display .status-code-text {
    font-size: 0.6875rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.unit-status-display:hover {
    box-shadow:
        0 4px 10px var(--category-color)88,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Unit Body */

/* Multi-User Assigned List */
.unit-compact-assigned-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    font-size: 0.6875rem;
    min-height: 40px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.unit-compact-assigned-list.unit-assigned-empty {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.08);
}

.unit-compact-unassigned {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-style: italic;
    opacity: 0.6;
}

/* Unit Actions - Oben rechts, minimal */
.unit-compact-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

/* Statuscode Buttons Container - Admin-Style */
.status-code-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Statuscode Button - Minimal & Rechteckig (nur Name) */
.status-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--status-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 15px var(--status-color)33,
        inset 0 0 15px var(--status-color)11;
}

/* Radial Gradient Background */
.status-code-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        var(--status-color) 0%,
        transparent 70%);
    opacity: 0.12;
    pointer-events: none;
}

/* Shine Effect */
.status-code-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-code-btn:hover::after {
    opacity: 1;
}

.status-code-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px var(--status-color)44,
        0 0 25px var(--status-color)55,
        inset 0 0 25px var(--status-color)15;
}

/* Active State - Voll leuchtend */
.status-code-btn.active {
    background: var(--status-color);
    border-color: var(--status-color);
    box-shadow:
        0 4px 16px var(--status-color)66,
        0 0 20px var(--status-color)77,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-code-btn.active::before {
    opacity: 0;
}

.status-code-btn.active .status-code-name {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Verstecke die Code-Nummer */
.status-code-number {
    display: none;
}

/* Nur der Name wird angezeigt */
.status-code-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--status-color);
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.status-code-btn.active .status-code-number {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-container {
        flex-direction: column;
    }
    
    .category-box {
        min-width: 100%;
    }
    
    .unit-card-compact {
        max-width: 100%;
    }
}

/* Icon Buttons für Units - Minimal & Transparent */
.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(20, 20, 20, 0.8);
}

.btn-icon.btn-success {
    color: var(--accent-success);
    border-color: var(--accent-success)33;
}

.btn-icon.btn-success:hover {
    border-color: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success)44;
}

.btn-icon.btn-danger {
    color: var(--accent-danger);
    border-color: var(--accent-danger)33;
}

.btn-icon.btn-danger:hover {
    border-color: var(--accent-danger);
    box-shadow: 0 0 12px var(--accent-danger)44;
}

/* ===== LEITSTELLEN-CONTROL BOX ===== */
.dispatch-control-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(101, 163, 13, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.15),
        inset 0 0 20px rgba(34, 197, 94, 0.05);
    position: relative;
    overflow: hidden;
}

.dispatch-control-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #65a30d, #22c55e);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dispatch-control-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dispatch-control-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e, #65a30d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.dispatch-control-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dispatch-control-title p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.dispatch-operator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.operator-avatar-container {
    position: relative;
    width: 56px;
    height: 56px;
}

.operator-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.operator-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border: 3px solid rgba(20, 20, 20, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 12px #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 12px #22c55e; }
    50% { box-shadow: 0 0 20px #22c55e; }
}

.operator-details {
    flex: 1;
}

.operator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.operator-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22c55e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dispatch-control-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-dispatch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-dispatch svg {
    flex-shrink: 0;
}

.btn-dispatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dispatch-control-actions {
        flex-direction: column;
    }

    .btn-dispatch {
        width: 100%;
        justify-content: center;
    }

    .dispatch-operator-info {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== DISPATCH GRID LAYOUT ===== */
.dispatch-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.dispatch-welcome-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 60%;
}

.dispatch-welcome-card h1 {
    margin: 0 0 0.5rem 0;
}

.dispatch-welcome-card p {
    margin: 0;
}

.dispatch-control-card {
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    flex: 1 1 35%;
}

.dispatch-unit-card {
    background: linear-gradient(160deg, rgba(22, 30, 45, 0.95), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    padding: 1.2rem 1.35rem;
    box-shadow: 0 8px 26px rgba(8, 15, 35, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.dispatch-unit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dispatch-unit-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
}

.dispatch-unit-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 999px;
    color: rgba(148, 197, 255, 0.95);
}

.dispatch-unit-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dispatch-unit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dispatch-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.dispatch-action-btn svg {
    pointer-events: none;
}

.dispatch-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

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

.dispatch-action-primary {
    background: linear-gradient(140deg, #22c55e, #15803d);
    border-color: rgba(34, 197, 94, 0.5);
}

.dispatch-action-danger {
    background: linear-gradient(140deg, #ef4444, #dc2626);
    border-color: rgba(239, 68, 68, 0.45);
}

.dispatch-action-warning {
    background: linear-gradient(140deg, #f59e0b, #d97706);
    border-color: rgba(245, 158, 11, 0.45);
}

.dispatch-action-admin {
    background: linear-gradient(140deg, #65a30d, #4d7c0f);
    border-color: rgba(101, 163, 13, 0.45);
    margin-left: auto;
}

.dispatch-operator-note {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.82rem;
    line-height: 1.4;
}

.dispatch-operator-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.dispatch-operator-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #34d399;
    text-transform: uppercase;
}

.dispatch-operator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

.dispatch-operator-info {
    flex: 1;
}

.dispatch-operator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.dispatch-operator-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 968px) {
    .dispatch-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ===== DARK DISPATCH CONTROL BOX (Neues Design) ===== */
.dispatch-control-box-dark {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dispatch-unassigned-container {
    margin-top: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dispatch-unassigned-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dispatch-unassigned-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.dispatch-unassigned-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.dispatch-unassigned-refresh {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dispatch-unassigned-refresh:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #60a5fa;
}

.dispatch-unassigned-refresh svg {
    pointer-events: none;
}

.dispatch-unassigned-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: calc(3 * 58px + 1.2rem);
    overflow-y: auto;
    padding-right: 4px;
}

.dispatch-unassigned-item {
    margin: 0;
}

.dispatch-unassigned-empty {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.dispatch-unassigned-list .assigned-user-meta {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}



/* Header Section */
.dispatch-header-dark {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dispatch-title-dark {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.dispatch-status-dark {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Operator Card */
.dispatch-operator-card-dark {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(101, 163, 13, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.operator-badge-dark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #22c55e;
    text-transform: uppercase;
}

.operator-status-indicator-dark {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

.operator-info-dark {
    flex: 1;
}

.operator-label-dark {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.operator-name-dark {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Action Buttons */
.dispatch-actions-dark {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: auto; /* Schiebt Buttons ans Ende */
}

.dispatch-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    position: relative;
    overflow: hidden;
}

.dispatch-btn-dark svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.dispatch-btn-dark::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.4s, height 0.4s;
}

.dispatch-btn-dark:hover::before {
    width: 300px;
    height: 300px;
}

.dispatch-btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* Button Variants */
.dispatch-btn-primary {
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.dispatch-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.dispatch-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.dispatch-btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.dispatch-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.dispatch-btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.dispatch-btn-admin {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.dispatch-btn-admin:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.dispatch-btn-admin.admin-mode-active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.dispatch-btn-admin.admin-mode-active:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dispatch-actions-dark {
        flex-direction: column;
    }

    .dispatch-btn-dark {
        width: 100%;
        justify-content: center;
    }

    .dispatch-operator-card-dark {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== BENUTZERVERWALTUNG ===== */
.users-table-container {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    overflow-x: auto;
}

.user-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.user-filter-group {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
}

.user-filter-group.user-filter-group--full {
    flex: 1 1 100%;
    min-width: 100%;
}

.user-filter-group.user-filter-group--compact {
    flex: 0 0 auto;
}

.filter-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.8);
}

.filter-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: 0.35rem 0.25rem 0.25rem 0;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    accent-color: #22c55e;
}

.filter-checkbox.filter-checkbox--toggle {
    padding: 0.55rem 0.95rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
}

.filter-checkbox.filter-checkbox--toggle input {
    margin-right: 0.45rem;
}

.user-filter-input,
.user-filter-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.user-filter-input::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.user-filter-input:focus,
.user-filter-select:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.user-filter-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23a0aec0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 9 9 12"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 0.85rem;
    padding-right: 2rem;
}

.user-filter-reset {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(226, 232, 240, 0.85);
    transition: background 0.2s ease, border 0.2s ease;
    flex: 0 0 auto;
    cursor: pointer;
}

.user-filter-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(148, 163, 184, 0.5);
}

.users-empty-state {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.85);
    text-align: center;
    font-size: 0.95rem;
    display: none;
    justify-content: center;
    align-items: center;
}

.users-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0.75rem;
}

.users-table tbody tr.user-row-inactive {
    border-left: 3px solid rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.08);
}

.status-badge.status-warning {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
}

.user-table-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-table-name-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-table-meta {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.8);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.users-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.users-table td {
    padding: 1rem;
    color: var(--text-primary);
}

.user-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-table-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-table-discord {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-table-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-table-empty {
    color: var(--text-tertiary);
    font-style: italic;
}

.user-table-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.role-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-admin {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.role-badge.role-user {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.status-badge.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.user-status-subtext {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-admin-controls {
    margin: 2rem 0;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-control-group .control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-control-group .btn-primary {
    margin-top: 0.25rem;
    width: 100%;
}

.time-adjustment-card {
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.time-adjustment-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.time-adjustment-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.time-adjustment-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.time-adjustment-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.time-adjustment-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-adjustment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* === Notifications === */
.notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 99999;
    pointer-events: none;
}

.notification-card {
    min-width: 260px;
    max-width: 420px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: auto;
    position: relative;
}

.notification-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-primary, rgba(255, 255, 255, 0.92));
    font-size: 0.95rem;
}

.notification-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: inherit;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 0.45rem;
    right: 0.6rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.1rem 0.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.notification-close:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.notification-card.notification-success {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 45px rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.notification-card.notification-error {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notification-card.notification-info {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 20px 45px rgba(34, 197, 94, 0.15);
    color: #60a5fa;
}

@media (max-width: 768px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
    }

    .notification-card {
        max-width: none;
        width: 100%;
    }
}

.user-row-clickable {
    cursor: pointer;
}

.user-row-clickable:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.admin-logs-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

.admin-logs-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.admin-logs-table thead tr {
    background: rgba(255, 255, 255, 0.04);
}

.admin-logs-table th,
.admin-logs-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

.admin-logs-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.logs-loading {
    text-align: center;
    color: var(--text-secondary);
}

.log-action-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.log-action-tag.time_added {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.log-action-tag.time_removed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.log-action-tag.force_checkout {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.log-action-tag.action-success {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}

.log-action-tag.action-info {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}

.log-action-tag.action-warning {
    background: rgba(250, 204, 21, 0.18);
    color: #fbbf24;
}

.log-action-tag.action-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.log-action-tag.action-neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

/* ===== DASHBOARD BENTO GRID ===== */
.dashboard-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* Asymmetrisches Layout */
.dashboard-card-profile {
    grid-column: 1 / 5;
    grid-row: 1;
}

.dashboard-card-changelog {
    grid-column: 5 / 7;
    grid-row: 1;
}

.dashboard-card-time {
    grid-column: 1 / 4;
    grid-row: 2;
}

.dashboard-card-officers {
    grid-column: 4 / 7;
    grid-row: 2;
}

/* Officers Panel wird via JavaScript an Time Panel Höhe angepasst */
.dashboard-card-officers {
    display: flex;
    flex-direction: column;
}

.dashboard-card-officers .officers-list {
    overflow-y: auto;
    flex: 1;
}

.dashboard-card-scoreboard {
    grid-column: 1 / 7;
    grid-row: 3;
}

.dashboard-card {
    height: 100%;
}

/* Bento Panel Base - Header-ähnliches Styling */
.bento-panel {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-panel:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.bento-panel-large {
    grid-column: span 2;
}

/* Panel Header */
.bento-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #73fdf6, #5c6bf6), rgba(101, 163, 13, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.bento-panel-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
}

/* Server Status Badge */
.server-status-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 239, 255, 0.85);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.server-status-badge.badge-online {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
    color: rgba(236, 253, 245, 0.96);
}

.server-status-badge.badge-offline {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.45);
    color: rgba(252, 165, 165, 0.95);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.status-dot.status-online {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.status-offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Player Count Display */

.dashboard-card-server {
    align-self: stretch;
    height: 100%;
    width: 100%;
}

.server-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.server-header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.server-panel-label {
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 190, 255, 0.58);
    font-weight: 600;
}

.server-header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.server-panel-title {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    color: rgba(226, 240, 255, 0.94);
    text-align: center;
    flex: 1;
}

.server-player-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.server-player-count-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
    text-shadow: 0 12px 24px rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.server-player-count-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 190, 255, 0.62);
    font-weight: 600;
}

.server-status-badge .status-dot {
    background: rgba(34, 197, 94, 0.9);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.server-status-badge.badge-offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}
/* Quick Stats */
.profile-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.quick-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.rank-stat {
    background: rgba(255, 255, 255, 0.05);
}

.quick-stat-team {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Kompakte Profil-Stats */
.profile-quick-info-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.profile-stat-compact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.profile-stat-compact:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.stat-compact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-compact-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
}

.profile-swat-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px dashed rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.08);
}

.profile-swat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.profile-swat-name {
    font-weight: 600;
    color: #0ea5e9;
    font-size: 0.95rem;
}

.profile-swat-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-swat-toggle {
    background: linear-gradient(120deg, #0ea5e9, #15803d);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-swat-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-swat-toggle:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35);
}

.swat-active-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-card-meta-item-full {
    grid-column: 1 / -1;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #0a0c0f, #5cb8f6), rgba(101, 163, 13, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(101, 163, 13, 0.2));
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateX(4px);
}

.quick-action-btn svg {
    flex-shrink: 0;
}

/* Changelog Preview Tile */
.changelog-preview {
    margin-bottom: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.changelog-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.version-badge {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.version-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.changelog-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.changelog-preview-entries {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.changelog-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.changelog-preview-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.changelog-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.changelog-item-icon svg {
    width: 16px;
    height: 16px;
}

.changelog-item-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    flex: 1;
}

.changelog-preview-more {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 0.25rem 0.5rem;
    text-align: center;
}

.changelog-preview-summary {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.btn-changelog-more {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-changelog-more:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.loading-spinner-small {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    padding: 2rem 0;
}

.no-changelog {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    padding: 2rem 0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    .dashboard-card-profile {
        grid-column: 1 / 5;
        grid-row: 1;
    }

    .dashboard-card-changelog {
        grid-column: 1 / 5;
        grid-row: 2;
    }

    .dashboard-card-time {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .dashboard-card-officers {
        grid-column: 3 / 5;
        grid-row: 3;
    }

    .dashboard-card-scoreboard {
        grid-column: 1 / 5;
        grid-row: 4;
    }
}

@media (max-width: 992px) {
    .welcome-card-layout {
        flex-direction: column;
    }

    .welcome-card-server {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .dashboard-card-profile,
    .dashboard-card-changelog,
    .dashboard-card-time,
    .dashboard-card-officers,
    .dashboard-card-scoreboard {
        grid-column: span 2;
        grid-row: auto;
    }

    .player-count-number {
        font-size: 3rem;
    }

    .server-player-count {
        align-items: flex-start;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .dashboard-bento-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card-profile,
    .dashboard-card-changelog,
    .dashboard-card-time,
    .dashboard-card-officers,
    .dashboard-card-scoreboard {
        grid-column: 1;
    }

    .container {
        padding: 1rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.813rem;
    letter-spacing: 0.5px;
    z-index: 100;
}

.footer p {
    margin: 0;
    color: var(--text-secondary);
    transition: var(--transition);
    opacity: 0.7;
}

.footer:hover p {
    opacity: 1;
    color: var(--text-primary);
}

/* Padding für Body damit Inhalt nicht unter Footer verschwindet */
body {
    padding-bottom: 60px;
}

.footer-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.changelog-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.changelog-link:hover {
    color: var(--accent-primary);
}

/* ===== CHANGELOG MODAL ===== */
.modal-changelog {
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-changelog .modal-body {
    overflow-y: auto;
    flex: 1;
}

.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.changelog-entry {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.changelog-entry:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.changelog-date {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.changelog-category {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.changelog-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.changelog-entry-block + .changelog-entry-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-entry-block h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.changelog-entry-block p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

.changelog-entry-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

.changelog-entry-list li {
    margin-bottom: 0.25rem;
}

.changelog-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-badge-feature {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.changelog-badge-improvement {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.changelog-badge-fix {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Scrollbar für Changelog */
.modal-changelog .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-changelog .modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-changelog .modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.modal-changelog .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ===== CHANGELOG ADMIN STYLES ===== */
.changelog-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.changelog-admin-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.changelog-admin-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.changelog-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-admin-version {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.changelog-admin-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

.changelog-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changelog-admin-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.changelog-admin-category {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.changelog-admin-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.changelog-admin-entry-block + .changelog-admin-entry-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-admin-entry-block strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.changelog-admin-entry-block p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

.changelog-admin-entry-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

.changelog-admin-entry-list li {
    margin-bottom: 0.25rem;
}

.changelog-admin-empty {
    color: var(--text-tertiary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.admin-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

/* Changelog Form Styles */
.changelog-entries-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.changelog-entry-form {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.changelog-entry-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .changelog-admin-header {
        flex-direction: column;
        gap: 1rem;
    }

    .changelog-admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== CHANGELOG EDITOR MODAL STYLES ===== */
.modal-changelog-editor {
    max-width: 95vw !important;
    width: 1400px !important;
    max-height: 90vh !important;
}

.changelog-editor-body {
    padding: 0 !important;
    overflow: hidden;
}

.changelog-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 75vh;
    max-height: 75vh;
}

.changelog-editor-form {
    padding: 2rem;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.changelog-editor-preview {
    padding: 2rem;
    background: var(--bg-primary);
    overflow-y: auto;
}

/* Modern Form Styles */
.modern-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-input,
.modern-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: var(--transition);
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.modern-input::placeholder {
    color: var(--text-tertiary);
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modern-checkbox:hover {
    background: rgba(255, 255, 255, 0.03);
}

.modern-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.checkbox-label {
    color: var(--text-primary);
    font-size: 0.938rem;
}

.changelog-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-form-section:last-child {
    border-bottom: none;
}

.changelog-form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Updated Entry Form Styles */
.changelog-entry-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.changelog-entry-form:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.changelog-entry-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.changelog-entry-form-header select {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.changelog-entry-form-header select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.changelog-entry-form input[type="text"],
.changelog-entry-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.938rem;
    font-family: inherit;
    transition: var(--transition);
}

.changelog-entry-form input[type="text"]:focus,
.changelog-entry-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.changelog-entry-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Preview Styles */
.preview-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.preview-subtitle {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.preview-content {
    min-height: 300px;
}

.preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Scrollbar für Editor */
.changelog-editor-form::-webkit-scrollbar,
.changelog-editor-preview::-webkit-scrollbar {
    width: 8px;
}

.changelog-editor-form::-webkit-scrollbar-track,
.changelog-editor-preview::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.changelog-editor-form::-webkit-scrollbar-thumb,
.changelog-editor-preview::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.changelog-editor-form::-webkit-scrollbar-thumb:hover,
.changelog-editor-preview::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .changelog-editor-split {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .changelog-editor-form {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-changelog-editor {
        width: 95vw !important;
    }
}

/* ===== PERMISSIONS MANAGEMENT ===== */

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.permission-group-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.permission-group-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.permission-group-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.permission-group-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.permission-group-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.permission-group-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0.5rem 0 1rem 0;
}

.permission-group-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.permission-group-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-item {
    display: flex;
    flex-direction: column;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stats-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.permission-list-preview {
    padding: 1rem 1.5rem;
}

.permission-category-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.permission-category-preview strong {
    color: var(--text-primary);
}

.permission-more {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Permissions Modal */
.permissions-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.permissions-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.permission-category {
    margin-bottom: 1.5rem;
}

.permission-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--accent-secondary);
}

.permission-category-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
}

.permission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.permission-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
}

.permission-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.permission-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.permission-info strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.permission-info small {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.form-checkbox span {
    color: var(--text-primary);
    font-weight: 500;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* User Groups Management in User Detail Modal */
.user-groups-list {
    min-height: 60px;
    margin-bottom: 1rem;
}

.user-groups-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.user-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.user-group-badge:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-remove-group {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-remove-group:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.user-groups-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-groups-add .form-select {
    flex: 1;
}

.no-groups {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-style: italic;
    margin: 1rem 0;
}

.admin-control-group {
    margin-bottom: 1.5rem;
}

/* ===== Officers Online Panel ===== */
.officer-count-badge {
    background: var(--accent-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: auto;
}

.officer-update-tag {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    background: var(--bg-secondary);
    white-space: nowrap;
    line-height: 1.2;
}

.officer-update-tag.is-loading {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.officer-update-tag.is-error {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.8);
}

.bento-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.officers-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    max-height: 320px;
}

.officers-list::-webkit-scrollbar {
    width: 6px;
}

.officers-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.officers-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.officers-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.officer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.officer-item.swat-active {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.08);
}

.officer-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.officer-service-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.officer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.officer-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.officer-item.swat-active .officer-name {
    color: #0ea5e9;
}

.officer-swat-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #0ea5e9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.officer-status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.no-officers {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

/* Officers Online - Rang Badge */
.officer-rank {
    font-size: 0.75rem;
    color: var(--rank-color, #22c55e);
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    background: var(--rank-color, #22c55e)15;
    border: 1px solid var(--rank-color, #22c55e)40;
    border-radius: 4px;
    margin-top: 0.25rem;
    display: inline-block;
}

.officer-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.officer-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}


/* Officer Item - Horizontal Layout für Rang */
.officer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.officer-info {
    flex: 0 0 auto;
}

.officer-rank {
    margin-left: auto;
    margin-top: 0;
    white-space: nowrap;
}

/* Officer Badges Container */
.officer-badges {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    align-items: center;
}

/* Unit Badge */
.officer-unit {
    font-size: 0.75rem;
    color: var(--unit-color, #6b7280);
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: var(--unit-color, #6b7280)20;
    border: 1px solid var(--unit-color, #6b7280);
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.officer-team-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-warning);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    white-space: nowrap;
    margin-left: 0.45rem;
    display: inline-flex;
    align-items: center;
}

/* ===== Time Tracking Panel ===== */
.time-status-active,
.time-status-inactive {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.time-status-dot.pulsing {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    animation: pulse 2s ease-in-out infinite;
}

.time-current {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.time-current-label,
.time-total-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.time-current-value,
.time-total-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-success);
    line-height: 1;
}

.time-current-since {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.time-total {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.time-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    display: block;
    margin-top: -0.5rem;
}

.btn-full {
    width: 100%;
}

/* ===== Time Tracking Panel - Improved Styling ===== */
.time-status-active,
.time-status-inactive {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.time-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.time-current {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-success);
    text-align: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.time-current-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.time-current-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-success);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.time-current-since {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.time-total {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.time-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Officer Status Colors */
.officer-status-checked-in {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.officer-status-not-checked-in {
    background: var(--accent-danger);
    box-shadow: 0 0 10px var(--accent-danger);
}

/* ===== Time Statistics Grid ===== */
.stat-section-title {
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.stat-section-title h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.time-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0;
}

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

.time-stat-card.swat-active {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
}

.time-stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.time-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.time-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
}

.time-period-overview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.time-period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.time-period-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.time-period-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.time-period-range {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.time-period-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.time-period-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.time-period-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.duty-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.duty-modal-card {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.duty-modal-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.duty-modal-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.duty-modal-profile .profile-card-avatar {
    width: 72px;
    height: 72px;
}

.duty-modal-profile-info h3 {
    margin: 0;
    font-size: 1.35rem;
}

.duty-modal-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.duty-modal-section {
    margin-top: 1.5rem;
}

.duty-modal-section:first-of-type {
    margin-top: 1rem;
}

.duty-modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.duty-modal-section-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
}

.duty-unit-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.duty-unit-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.duty-unit-tab.is-active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bfdbfe;
}

.duty-unit-tab:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.duty-modal-active {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.75);
    margin: 0.2rem 0 0;
}

.duty-activity-placeholder {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.duty-time-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
}

.duty-time-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(90px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    align-items: center;
}

.duty-time-row:last-child {
    border-bottom: none;
}

.duty-time-row span {
    display: block;
    color: rgba(248, 250, 252, 0.9);
    font-variant-numeric: tabular-nums;
}

.duty-time-row span:first-child {
    font-weight: 600;
    color: #f8fafc;
}

.duty-time-row-header {
    background: rgba(34, 197, 94, 0.08);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.7);
}

.duty-unit-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.45);
}

.duty-unit-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.duty-unit-item:last-child {
    border-bottom: none;
}

.duty-unit-item strong {
    color: #f8fafc;
}

.duty-unit-item span {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.85);
    font-variant-numeric: tabular-nums;
}

.activity-period-table {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.activity-period-row {
    display: grid;
    grid-template-columns: 2fr repeat(4, minmax(80px, 1fr));
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.activity-period-row:last-child {
    border-bottom: none;
}

.activity-period-header {
    background: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activity-period-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.activity-period-label {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-period-range {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-period-row span {
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
}

.activity-period-row span:nth-child(n+2) {
    font-variant-numeric: tabular-nums;
}

.duty-detail-loading {
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.8);
}

.duty-detail-error {
    margin-top: 0.75rem;
    color: #f87171;
    display: none;
}

.duty-placeholder {
    text-align: center;
    width: 100%;
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.duty-placeholder-inline {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.7);
    padding: 0.25rem 0;
}

.time-stat-meta {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.swat-time-card {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
}

/* ===== SCOREBOARD ===== */
.scoreboard-filters {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.813rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(34, 197, 94, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    border-color: #22c55e;
}

.scoreboard-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}

.scoreboard-list::-webkit-scrollbar {
    width: 6px;
}

.scoreboard-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.scoreboard-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.scoreboard-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.scoreboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
    min-width: 0;
    cursor: pointer;
}

.scoreboard-item.swat-active {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.scoreboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
}

.scoreboard-rank {
    font-size: 1.25rem;
    font-weight: 800;
    width: 40px;
    min-width: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.scoreboard-item:nth-child(1) .scoreboard-rank {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.scoreboard-item:nth-child(2) .scoreboard-rank {
    color: #d1d5db;
    text-shadow: 0 0 10px rgba(209, 213, 219, 0.5);
}

.scoreboard-item:nth-child(3) .scoreboard-rank {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.scoreboard-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.scoreboard-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
}

.scoreboard-item.swat-active .scoreboard-user-name {
    color: #0ea5e9;
}

.scoreboard-user-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scoreboard-user-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.scoreboard-rank-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    white-space: nowrap;
}

.scoreboard-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.scoreboard-sessions {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
    text-align: right;
}

.no-scoreboard {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}


/* ===== DUTY STATUS INDICATOR ===== */
.duty-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.duty-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
}

.duty-status.on-duty {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.duty-status.on-duty .duty-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-duty 2s ease-in-out infinite;
}

.duty-status.on-duty .duty-status-text {
    color: #10b981;
}

.duty-status.off-duty {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.duty-status.off-duty .duty-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.duty-status.off-duty .duty-status-text {
    color: #ef4444;
}

.duty-status-text {
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

@keyframes pulse-duty {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Minimal Profile Card */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.profile-card-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.profile-card-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-card-name {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.profile-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.profile-card-badge-rank {
    background: linear-gradient(90deg, var(--badge-accent, var(--accent-primary)) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #fff;
}

.profile-card-discord {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    column-gap: 1.5rem;
    row-gap: 1.25rem;
}

.profile-card-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 92px;
    transition: var(--transition);
}

.profile-card-meta-item:hover {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.profile-card-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.profile-card-meta-value {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-card-meta-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.is-hidden {
    display: none !important;
}

.profile-card + .stats-container {
    margin-top: 2rem;
}
.player-count-current {
    font-size: 2.8rem;
    font-weight: 800;
    color: #38bdf8;
}

.player-count-divider {
    font-size: 2.2rem;
    font-weight: 600;
    color: rgba(148, 190, 255, 0.6);
}

.player-count-max {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(191, 219, 254, 0.8);
}

.server-panel-title {
    display: flex;
    justify-content: center;
}
.duty-modal-unit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.duty-modal-unit-badges .unit-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: none;
}

/* Permissions Group Modals */
.group-modal {
    max-width: 1080px;
}

.modal-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.modal-subtitle {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.group-modal-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.group-modal-left {
    flex: 1 1 55%;
    min-width: 320px;
}

.group-modal-right {
    flex: 1 1 35%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.group-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.group-form-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.group-form-header p {
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.group-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.group-form-grid .full-width {
    grid-column: 1 / -1;
}

.group-form-grid .form-input {
    width: 100%;
}

.group-preview-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.group-preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
    pointer-events: none;
}

.group-preview-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.group-preview-color {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--group-color, #22c55e);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.group-preview-label {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
}

.group-preview-badge {
    margin-left: auto;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-preview-badge.is-admin {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.group-preview-description {
    margin: 1rem 0 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
}

.group-preview-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.preview-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
}

.preview-meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.group-permission-summary {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.summary-count {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.summary-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #60a5fa;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.summary-tag {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.summary-tag-muted {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.permissions-section-modern .permissions-section-title {
    margin-bottom: 0.5rem;
}

.permissions-section-modern .permissions-section {
    padding: 0;
    background: transparent;
    border: none;
}

.group-color-picker {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.group-color-picker .color-hex-input {
    text-transform: uppercase;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.color-swatch {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 12px;
    background: var(--swatch-color, #22c55e);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch span {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.color-swatch.active {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.permission-category-card {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.permission-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(15, 23, 42, 0.35);
}

.permission-category-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.permission-category-title {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
}

.permission-category-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.permission-counter {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #60a5fa;
}

.permission-items {
    display: flex;
    flex-direction: column;
}

.permission-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    align-items: flex-start;
}

.permission-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.permission-toggle {
    position: relative;
    width: 42px;
    flex-shrink: 0;
}

.permission-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.permission-toggle-indicator {
    display: inline-block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    transition: background 0.2s ease;
}

.permission-toggle-indicator::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.permission-toggle input:checked + .permission-toggle-indicator {
    background: rgba(34, 197, 94, 0.6);
}

.permission-toggle input:checked + .permission-toggle-indicator::after {
    transform: translateX(18px);
}

.permission-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.permission-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.permission-description {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}
