/* ==========================================
   1. VARIABLEN & GRUNDLAGEN
   ========================================== */
:root { 
    --primary: #47bca3;
    --primary-dark: #2c7a6f;
    --bg: #0f0f11; 
    --card-bg: rgba(30, 30, 32, 0.4); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff; 
    --text-muted: #8b8b90;
    --input-bg: rgba(255, 255, 255, 0.05);
    --accent-glow: rgba(71, 188, 163, 0.2);
    --card-blur: 25px;
    --danger: #ff4757;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

html, body {
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 15% 50%, rgba(71, 188, 163, 0.08) 0%, transparent 50%), 
                      radial-gradient(circle at 85% 30%, rgba(71, 188, 163, 0.05) 0%, transparent 50%);
    color: var(--text); 
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.section:empty::before {
    content: 'Lade Komponente...';
    display: block;
    padding: 40px;
    text-align: center;
    color: var(--primary);
    font-family: monospace;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* ==========================================
   2. LIGHT MODE (HELLMODUS)
   ========================================== */
body.light-mode {
    --bg: #f5f7fa; 
    --card-bg: rgba(255, 255, 255, 0.85); 
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #2d3436; 
    --text-muted: #636e72;
    --input-bg: rgba(0, 0, 0, 0.03);
    --accent-glow: rgba(71, 188, 163, 0.2);
    background-image: radial-gradient(circle at 15% 50%, rgba(71, 188, 163, 0.1) 0%, transparent 50%), 
                      radial-gradient(circle at 85% 30%, rgba(71, 188, 163, 0.08) 0%, transparent 50%);
}

body.light-mode .sidebar { background: rgba(245, 247, 250, 0.9); }
body.light-mode .mobile-topbar { background: rgba(245, 247, 250, 0.95); }
body.light-mode select.glass-input option { background: #fff; color: #000; }
body.light-mode .wizard-step-indicator { background: #fff; }
body.light-mode .accordion-header { background: rgba(0,0,0,0.03); }
body.light-mode .accordion-header:hover { background: rgba(0,0,0,0.06); }
body.light-mode .damage-list-item { background: #fff; }
body.light-mode #damage-form-box { background: rgba(255,255,255,0.9); border-color: var(--primary); }
body.light-mode .car-part { fill: rgba(0,0,0,0.05); }

/* FIX: Überschreibt harte Inline-Transparenzen (die für den Dark Mode gedacht waren) */
/* LOGIN LIGHT MODE */
body.light-mode .login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

body.light-mode .emorfoz-logo-text {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a4a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .login-input-group {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

body.light-mode .login-input-group:focus-within {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 0 4px rgba(71, 188, 163, 0.15), inset 0 2px 4px rgba(0,0,0,0.04);
}

body.light-mode .login-input-group input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

body.light-mode .leistung-row-container,
body.light-mode div[style*="rgba(0,0,0,0.1)"],
body.light-mode div[style*="rgba(0,0,0,0.2)"],
body.light-mode div[style*="rgba(0, 0, 0, 0.1)"],
body.light-mode div[style*="rgba(0, 0, 0, 0.2)"] { 
    background: rgba(0, 0, 0, 0.04) !important; 
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================
   3. UI KOMPONENTEN (GLASSMORPHISMUS & BUTTONS)
   ========================================== */
.glass {
    background: var(--card-bg); 
    backdrop-filter: blur(var(--card-blur)); 
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--glass-border); 
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, border-color 0.3s;
}

.glass-button {
    background: var(--primary); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px var(--accent-glow); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.glass-button:hover { background: #3ba08a; box-shadow: 0 6px 20px rgba(71, 188, 163, 0.4); transform: translateY(-2px); }
.glass-button.secondary { background: var(--input-bg); color: var(--text); border: 1px solid var(--glass-border); box-shadow: none; }
.glass-button.secondary:hover { background: rgba(100, 100, 100, 0.1); }
.glass-button.danger { background: rgba(255, 71, 87, 0.1); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.3); box-shadow: none; }
.glass-button.danger:hover { background: rgba(255, 71, 87, 0.2); transform: translateY(-2px); }
.glass-button.small { padding: 8px 12px; font-size: 0.85rem; box-shadow: none; }

.glass-input { width: 100%; background: var(--input-bg); border: 1px solid var(--glass-border); color: var(--text); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; transition: all 0.3s ease; }
select.glass-input option { background: var(--bg); color: var(--text); }
.glass-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--accent-glow); background: rgba(100, 100, 100, 0.05); }

label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.preset-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.preset-chip { background: rgba(71, 188, 163, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.preset-chip:hover { background: var(--primary); color: white; box-shadow: 0 0 10px var(--accent-glow); }

.leistung-row-container { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 8px; padding: 15px; margin-bottom: 15px; }

/* ==========================================
   4. CAR VECTOR & SCHÄDEN
   ========================================== */
.vector-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.car-part { fill: rgba(255,255,255,0.05); stroke: var(--text-muted); stroke-width: 1.5; cursor: pointer; transition: all 0.2s ease; }
.car-part:hover { fill: rgba(71, 188, 163, 0.3); stroke: var(--primary); }
.car-part.damaged { fill: rgba(255, 71, 87, 0.4); stroke: var(--danger); }
.car-part.selected { stroke: var(--primary); stroke-width: 3; filter: drop-shadow(0 0 5px var(--primary)); }

#damage-form-box { display: none; background: rgba(0,0,0,0.4); border: 1px solid var(--primary); padding: 15px; border-radius: 12px; margin-top: 15px; width: 100%; animation: fadeIn 0.3s; }
.damage-list-item { display: flex; justify-content: space-between; align-items: center; background: var(--input-bg); padding: 12px; margin-bottom: 8px; border-radius: 8px; border: 1px solid var(--glass-border); }

/* ==========================================
   5. LOGIN SCREEN (Premium & Ultra-Clean)
   ========================================== */
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: var(--bg);
    position: fixed;
    top: 0; left: 0; z-index: 10000;
    overflow: hidden;
}

.login-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(71, 188, 163, 0.18) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(50px);
    z-index: 0;
    animation: pulseGlow 5s infinite alternate ease-in-out;
    pointer-events: none; /* Klicks gehen durch den Glow hindurch */
}

.login-card {
    position: relative;
    z-index: 1;
    padding: 55px 45px; 
    text-align: center; 
    width: 420px; 
    max-width: 90%;
    border-radius: 24px;
    /* Etwas dunklerer, soliderer Glashintergrund für besseren Kontrast */
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: loginFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.emorfoz-logo-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), #20947c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(71, 188, 163, 0.4));
    margin-bottom: 5px;
}

.emorfoz-logo-text {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -1.5px;
    /* Metallischer Premium Gradient */
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* FLEXBOX: Garantiert, dass Schloss und Text NIE wieder schief stehen! */
.login-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 18px;
    transition: all 0.3s ease;
    height: 56px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.login-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(71, 188, 163, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.login-input-group i {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-input-group:focus-within i {
    color: var(--primary);
}

.login-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    height: 100%;
    outline: none;
    padding: 0;
    width: 100%;
}

.login-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.btn-login-main {
    width: 100%; 
    height: 56px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    border-radius: 14px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white;
    box-shadow: 0 10px 25px rgba(71, 188, 163, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-login-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(71, 188, 163, 0.4);
    background: linear-gradient(135deg, #53d4b9, var(--primary)); 
}

.login-divider {
    display: flex; 
    align-items: center; 
    margin: 35px 0; 
    color: var(--text-muted); 
    opacity: 0.5;
}

.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    /* Schöner, fließender Übergang für die Linie */
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.login-divider span {
    padding: 0 15px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 2px;
}

/* ==========================================
   6. LAYOUT & NAVIGATION
   ========================================== */
#app-container { 
    display: none; 
    height: 100%;
    height: 100dvh;
    flex-direction: row; 
    overflow: hidden;
}

/* FIX FÜR UNTEN ABGESCHNITTENEN TEXT: padding-bottom erhöht */
.sidebar { width: 260px; border-right: 1px solid var(--glass-border); padding: 24px 24px 40px 24px; display: flex; flex-direction: column; background: rgba(15, 15, 17, 0.8); backdrop-filter: blur(20px); z-index: 100; transition: background 0.3s; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 40px; display: flex; align-items: center; gap: 10px; }

.nav-item { padding: 12px 16px; margin-bottom: 8px; border-radius: 8px; cursor: pointer; color: var(--text-muted); transition: all 0.2s; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.nav-item:hover, .nav-item.active { background: var(--input-bg); color: var(--primary); }

/* FIX FÜR DIE PERFEKT GERADE AUSRICHTUNG DER ICONS UND TEXTE */
.nav-item i {
    width: 24px;
    text-align: center;
    display: inline-block;
}

.main-content { flex: 1; padding: 40px; overflow-y: auto; position: relative; }
.section { display: none; animation: fadeIn 0.4s ease forwards; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stat-card { padding: 24px; text-align: left; }
.stat-card i { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.stat-card h3 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-card .value { font-size: 2.5rem; font-weight: 700; }

/* ==========================================
   7. WIZARD STYLES (RECHNUNG & ZUSTAND)
   ========================================== */
.wizard-header { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.wizard-header::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--glass-border); z-index: 1; }
.wizard-step-indicator { background: var(--bg); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--glass-border); z-index: 2; font-weight: bold; color: var(--text-muted); transition: all 0.3s ease; }
.wizard-step-indicator.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 15px var(--accent-glow); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.4s ease forwards; }
.wizard-controls { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--glass-border); }

/* ==========================================
   8. TABELLEN & LISTEN
   ========================================== */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
tr:hover td { background: rgba(100, 100, 100, 0.05); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }

.table-responsive { max-height: 55vh; overflow-y: auto; border: 1px solid var(--glass-border); border-radius: 8px; }
.table-responsive th { position: sticky; top: 0; background: var(--card-bg); backdrop-filter: blur(15px); z-index: 10; box-shadow: 0 1px 0 var(--glass-border); }

.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-rechnung { background: rgba(71, 188, 163, 0.2); color: var(--primary); border: 1px solid var(--primary); }
.badge-angebot { background: rgba(255, 152, 0, 0.2); color: #ff9800; border: 1px solid #ff9800; }
.badge-bezahlt { background: rgba(46, 213, 115, 0.15); color: #2ed573; border: 1px solid rgba(46, 213, 115, 0.5); }
.badge-unbezahlt { background: rgba(255, 152, 0, 0.15); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.5); }
.badge-faellig { background: rgba(255, 71, 87, 0.15); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.5); }

.accordion-header { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.03); padding: 12px 20px; border-radius: 8px; border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
.accordion-header:hover { background: rgba(255, 255, 255, 0.08); }
.accordion-header i { transition: transform 0.3s ease; }
.accordion-content { overflow: hidden; margin-bottom: 30px; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.btn-saved-state { background: rgba(46, 213, 115, 0.15) !important; color: #2ed573 !important; border: 1px solid rgba(46, 213, 115, 0.5) !important; box-shadow: 0 0 20px rgba(46, 213, 115, 0.3) !important; transform: scale(0.96); pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* ==========================================
   9. MOBILE & TABLET RESPONSIVENESS (iPad Querformat + iPhone Fix)
   ========================================== */
.mobile-topbar, .sidebar-close-btn, .sidebar-overlay { display: none; }

@media (max-width: 1400px) {
    #app-container { flex-direction: column; }
    .mobile-topbar { display: flex; justify-content: space-between; align-items: center; background: rgba(15, 15, 17, 0.9); backdrop-filter: blur(20px); padding: calc(15px + env(safe-area-inset-top)) 20px 15px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 990; }
    .mobile-topbar .logo { margin-bottom: 0; font-size: 1.5rem; }
    .mobile-topbar-btn { background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
    
    .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 995; backdrop-filter: blur(3px); }
    .sidebar-overlay.active { display: block; }
    
    /* FIX FÜR IPHONE SAFE-AREA (padding-bottom stark erhöht) */
    .sidebar { position: fixed; top: 0; left: -300px; height: 100vh; width: 280px; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 4px 0 25px rgba(0,0,0,0.5); padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: 100px !important; z-index: 1000; overflow-y: auto; }
    .sidebar.open { left: 0; }
    
    .sidebar .logo { display: none !important; }
    .sidebar-close-btn { display: block; background: none; border: none; color: var(--text); font-size: 1.5rem; text-align: right; padding: 0 16px 20px; width: 100%; cursor: pointer; margin-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
    
    .main-content { padding: 20px 15px !important; }
    .glass { padding: 20px !important; }
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr !important; gap: 15px; }
    h1, h2 { font-size: 1.5rem; margin-bottom: 20px !important; }
    .modal-overlay .glass { width: 95% !important; padding: 20px !important; }
    .wizard-controls { flex-direction: column-reverse; gap: 10px; margin-top: 20px !important; padding-top: 15px !important; }
    .wizard-controls button { width: 100% !important; justify-content: center; margin: 0 !important;}
    .wizard-header { margin-bottom: 20px !important; }
    .leistung-row > div:first-child { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
    .leistung-row > div:first-child > div { width: 100%; }
}

/* ==========================================
   10. DRUCK-ANSICHT (DIN A4 Profi-Layout)
   ========================================== */
#print-container { display: none; }

@media print {
    @page {
        size: A4;
        margin: 14mm 0mm;
        -webkit-print-color-adjust: exact;
    }



    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
    }

    html, body {
        width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
    }

    body > *:not(#print-container) {
        display: none !important;
    }

    #print-container {
        display: block !important;
        width: 210mm !important;
        min-height: 269mm !important;
        padding: 0 15mm !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        font-size: 9.5pt !important;
        line-height: 1.4 !important;
        background: #fff !important;
        position: relative !important;

    }

    .print-main {
        display: block !important;
        width: 100% !important;
        padding-bottom: 45mm !important;
    }

    .print-footer {
        display: block !important;
        width: 100% !important;
        position: absolute !important;
        bottom: 8mm !important;
        left: 15mm !important;
        right: 15mm !important;
        width: calc(210mm - 30mm) !important;
        padding-top: 10px !important;
        border-top: 1px solid #47bca3 !important;
        font-size: 8pt !important;
        color: #444 !important;
        background: #ffffff !important;
    }

    /* Nur Tabellenzeilen zusammenhalten – NICHT ganze Divs */
    tr {
        page-break-inside: avoid !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    /* Zustandsbericht-Items zusammenhalten */
    .p-protokoll-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* no-break NICHT mehr erzwingen – verhindert unnötige 2. Seiten */
    .no-break-section {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    h1, h2, h3 {
        color: #000 !important;
        margin-top: 0 !important;
        page-break-after: avoid !important;
    }

    img { max-width: 100% !important; }
}

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.status-popup { position: fixed; top: 20px; right: 20px; z-index: 9999; padding: 15px 25px; border-radius: 8px; background: var(--card-bg); backdrop-filter: blur(var(--card-blur)); border: 1px solid var(--glass-border); color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,0.3); animation: slideInRight 0.3s ease-out; display: flex; align-items: center; gap: 12px; }
th[data-sortable="true"] { cursor: pointer; user-select: none; transition: background 0.2s; }
th[data-sortable="true"]:hover { background: rgba(255,255,255,0.05); }