/* Layout & Basics */
.glass { 
    background: rgba(30, 41, 59, 0.7); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

.gold-glow { 
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2); 
    border: 1px solid #eab308 !important; 
}

/* SW Digital Tax – Akzent #2A7E7B */
.sidebar-link.active { 
    background: #2A7E7B; 
    color: white; 
    box-shadow: 0 0 15px rgba(42, 126, 123, 0.45); 
}

.hidden-view { display: none !important; }
.hidden-row { display: none !important; }

details.sidebar-nav-group > summary {
    list-style: none;
}
details.sidebar-nav-group > summary::-webkit-details-marker {
    display: none;
}

/* Sidebar: Akkordeon-Gruppen (E-Learning, Noreply) – ohne Außenrand */
details.sidebar-nav-group {
    border: none;
    outline: none;
    border-radius: 0.75rem;
}

details.sidebar-nav-group > summary.sidebar-nav-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(30, 41, 59, 0.55);
    transition: background 0.15s ease, color 0.15s ease;
}

details.sidebar-nav-group > summary.sidebar-nav-summary:hover {
    background: rgba(51, 65, 85, 0.65);
}

details.sidebar-nav-group[open] > summary.sidebar-nav-summary {
    background: rgba(51, 65, 85, 0.5);
}

.sidebar-nav-summary-icon {
    font-size: 1.1rem;
    line-height: 1;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-summary-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sidebar-nav-chevron {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}

details.sidebar-nav-group[open] .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar-nav-children {
    margin-top: 0.35rem;
    padding: 0.15rem 0 0.25rem 0.6rem;
    margin-left: 0.65rem;
    border-left: 1px solid rgba(71, 85, 105, 0.85);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-nav-sublink.sidebar-link.active {
    box-shadow: none;
}

.sidebar-nav-sublink.sidebar-link:not(.active):hover {
    color: #e2e8f0;
}

/* Status Card Highlights */
.card-border-blue { border: 2px solid #3b82f6 !important; box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
.card-border-yellow { border: 2px solid #eab308 !important; box-shadow: 0 0 15px rgba(234, 179, 8, 0.3); }
.card-border-red { border: 2px solid #ef4444 !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }

/* Status Labels in der Tabelle */
.status-label-active { 
    border: 1px solid rgba(34, 197, 94, 0.5) !important; 
    color: #4ade80 !important; 
    background: rgba(34, 197, 94, 0.05);
}

.status-label-pending { 
    border: 1px solid rgba(234, 179, 8, 0.5) !important; 
    color: #fbbf24 !important; 
    background: rgba(234, 179, 8, 0.05);
}

.status-label-noaccess { 
    border: 1px solid rgba(239, 68, 68, 0.5) !important; 
    color: #f87171 !important; 
    background: rgba(239, 68, 68, 0.05);
}

.progress-bar-container {
    width: 100%;
    background: #0f172a;
    height: 6px;
    border-radius: 99px;
    overflow: hidden;
    max-width: 120px;
    margin: 0 auto;
}

/* ... restlicher Code von vorher ... */

#globalLoader {
    transition: opacity 0.5s ease-out;
}

#globalLoader.hidden {
    pointer-events: none;
}

body.overflow-hidden {
    overflow: hidden;
}

#mainContent {
    transition: opacity 0.5s ease-in;
}

/* Spinner Animation falls noch nicht in CSS */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

#userAutocompleteList1, #userAutocompleteList2 {
    z-index: 9999 !important; /* Setzt die Liste über alle anderen Elemente */
    background-color: #1e293b; /* Dunkler Hintergrund passend zum Design */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); /* Schatten für bessere Abhebung */
}

/* Verhindert, dass der darunterliegende Glass-Container die Liste abschneidet */
#userSearchContainer {
    position: relative;
    z-index: 100;
}