/* ============================================
   Safety Guard Led — Monochrome + Violet Accent
   ============================================ */

:root {
    --bg: #050505;
    --bg-elevated: #080808;
    --surface: #0c0c0c;
    --surface-hover: #111111;
    --surface-active: #161616;
    --surface-glass: rgba(12, 12, 12, 0.7);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(139, 92, 246, 0.12);

    --text: #f0f0f0;
    --text-muted: #888888;
    --text-dim: #444444;
    --text-inverse: #050505;

    /* Violet accent */
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --accent-bright: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-glow-strong: rgba(139, 92, 246, 0.3);

    /* Semantic — monochrome scale */
    --success: #a0a0a0;
    --success-glow: rgba(160, 160, 160, 0.1);
    --warning: #c0c0c0;
    --warning-glow: rgba(192, 192, 192, 0.1);
    --danger: #888888;
    --danger-glow: rgba(136, 136, 136, 0.1);
    --info: #b0b0b0;
    --info-glow: rgba(176, 176, 176, 0.1);

    --font: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.08);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Starry sky background layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
        linear-gradient(180deg, #050505 0%, #080808 50%, #050505 100%);
    pointer-events: none;
}

#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes recordingPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.1); } 50% { box-shadow: 0 0 0 10px rgba(139,92,246,0.2); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes borderGlow { 0%, 100% { border-color: rgba(255,255,255,0.06); } 50% { border-color: rgba(139,92,246,0.25); } }
@keyframes logoShimmer {
    0% { background-position: 0% 50%; filter: drop-shadow(0 0 8px rgba(139,92,246,0.3)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0 0 18px rgba(139,92,246,0.5)); }
    100% { background-position: 0% 50%; filter: drop-shadow(0 0 8px rgba(139,92,246,0.3)); }
}

.animate-in {
    animation: fadeIn .45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}
.animate-in:nth-child(1) { animation-delay: .04s; }
.animate-in:nth-child(2) { animation-delay: .08s; }
.animate-in:nth-child(3) { animation-delay: .12s; }
.animate-in:nth-child(4) { animation-delay: .16s; }
.animate-in:nth-child(5) { animation-delay: .20s; }
.animate-in:nth-child(6) { animation-delay: .24s; }

.hidden { display: none !important; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08), transparent);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.06);
    transform: translateY(-1px);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .2px;
}
.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: all var(--transition-base);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08), inset 0 1px 2px rgba(0,0,0,0.2);
    background: rgba(0, 0, 0, 0.5);
}
textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.btn:hover::before { opacity: 1; }
.btn:hover {
    background: var(--surface-active);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn:active { transform: scale(0.97) translateY(0); box-shadow: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: transparent;
    color: #050505;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
}
.btn-primary::before { background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent); }
.btn-primary:hover {
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35), 0 0 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}
.btn-primary:active { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.btn-success {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.12), rgba(160, 160, 160, 0.06));
    border-color: rgba(160, 160, 160, 0.2);
    color: #c0c0c0;
    box-shadow: 0 2px 12px rgba(160, 160, 160, 0.08);
}
.btn-success:hover {
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.2), rgba(160, 160, 160, 0.1));
    border-color: rgba(160, 160, 160, 0.35);
    box-shadow: 0 4px 20px rgba(160, 160, 160, 0.1);
    color: #e0e0e0;
}

.btn-danger {
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.1), rgba(136, 136, 136, 0.04));
    border-color: rgba(136, 136, 136, 0.18);
    color: #a0a0a0;
    box-shadow: 0 2px 12px rgba(136, 136, 136, 0.08);
}
.btn-danger:hover {
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.18), rgba(136, 136, 136, 0.08));
    border-color: rgba(136, 136, 136, 0.3);
    box-shadow: 0 4px 20px rgba(136, 136, 136, 0.1);
    color: #c0c0c0;
}

.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-md); }

/* Navigation */
.nav-tabs {
    display: flex;
    gap: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 5px;
    margin-bottom: 24px;
    overflow-x: auto;
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-btn {
    padding: 9px 20px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    flex-shrink: 0;
}
.nav-tabs .nav-btn:hover { color: var(--accent-light); background: rgba(139, 92, 246, 0.05); }
.nav-tabs .nav-btn.active {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #050505;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
    font-weight: 600;
}
.nav-tabs .nav-btn.active:hover {
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.15);
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-wrap: wrap;
    gap: 16px;
}
.app-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(139,92,246,0.5), transparent);
}
.app-header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}
.app-header h1 span,
.auth-logo h1 span {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd, #8b5cf6, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.35));
}
.user-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 13px;
    transition: all var(--transition-base);
}
.user-badge:hover { border-color: rgba(139,92,246,0.2); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139,92,246,0.08); }
.role-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 10px;
    border-radius: 8px;
}
.role-admin {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05));
    color: var(--accent-light);
    border: 1px solid rgba(139,92,246,0.12);
}
.role-auditor {
    background: linear-gradient(135deg, rgba(160,160,160,0.1), rgba(160,160,160,0.04));
    color: #a0a0a0;
    border: 1px solid rgba(160,160,160,0.08);
}

/* Category Blocks */
.category-block {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border-left: 3px solid var(--accent);
}
.category-block:hover { border-color: rgba(139, 92, 246, 0.25); }
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(139,92,246,0.02));
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-base);
}
.category-header:hover { background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(139,92,246,0.04)); }
.category-header svg { transition: transform var(--transition-base); color: var(--accent-light); }
.category-header.collapsed svg { transform: rotate(-90deg); }
.category-title { font-weight: 600; font-size: 14px; color: var(--accent-light); }
.category-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05));
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(139,92,246,0.1);
}
.category-body { padding: 6px 10px; }
.category-body.collapsed { display: none; }

/* Check Items */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    margin: 2px 0;
}
.check-item:hover { background: rgba(139, 92, 246, 0.02); }
.check-item:last-child { border-bottom: none; }

.custom-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.35);
    transition: all var(--transition-base);
}
.custom-checkbox:hover .checkmark { border-color: rgba(139, 92, 246, 0.4); }
.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border-color: #a78bfa;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}
.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #050505;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark::after { display: block; }

.check-label { flex: 1; cursor: pointer; }
.req-id {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-right: 8px;
    background: rgba(139, 92, 246, 0.08);
    padding: 1px 8px;
    border-radius: 6px;
}
.req-text { font-size: 13.5px; line-height: 1.55; color: var(--text); word-break: break-word; }
.req-basis { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; display: block; line-height: 1.45; word-break: break-word; }

/* Violation Input */
.violation-input {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    animation: fadeIn .3s ease;
    flex-wrap: wrap;
}
.violation-input textarea { flex: 1; margin-bottom: 0; font-size: 13px; padding: 11px 14px; min-height: 60px; min-width: 200px; }
.mic-btn {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all var(--transition-base);
}
.mic-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.1);
}
.mic-btn.recording {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    animation: recordingPulse 1.5s infinite;
}
.mic-btn svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 2; transition: stroke var(--transition-base); }
.mic-btn:hover svg { stroke: var(--accent-light); }
.mic-btn.recording svg { stroke: var(--accent-light); }

/* Data Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; font-size: 13px; }
.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text);
    transition: all var(--transition-fast);
}
.data-table tr:hover td { background: rgba(139, 92, 246, 0.03); }
.data-table tr:last-child td { border-bottom: none; }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    letter-spacing: .3px;
}
.badge-green {
    background: linear-gradient(135deg, rgba(160,160,160,0.06), rgba(160,160,160,0.02));
    border-color: rgba(160,160,160,0.15);
    color: #a0a0a0;
}
.badge-amber {
    background: linear-gradient(135deg, rgba(192,192,192,0.06), rgba(192,192,192,0.02));
    border-color: rgba(192,192,192,0.15);
    color: #c0c0c0;
}
.badge-red {
    background: linear-gradient(135deg, rgba(136,136,136,0.06), rgba(136,136,136,0.02));
    border-color: rgba(136,136,136,0.15);
    color: #888888;
}
.badge-blue {
    background: linear-gradient(135deg, rgba(176,176,176,0.06), rgba(176,176,176,0.02));
    border-color: rgba(176,176,176,0.15);
    color: #b0b0b0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.02), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.stat-card:hover::after { opacity: 1; }
.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.06);
}
.stat-card.accent::before  { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }
.stat-card.success::before { background: linear-gradient(90deg, #a0a0a0, #c0c0c0); }
.stat-card.warning::before { background: linear-gradient(90deg, #c0c0c0, #e0e0e0); }
.stat-card.danger::before  { background: linear-gradient(90deg, #888888, #a0a0a0); }
.stat-card.info::before    { background: linear-gradient(90deg, #b0b0b0, #d0d0d0); }

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: -1.5px;
    margin: 10px 0 5px;
}
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.stat-change {
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.stat-change.up { color: var(--accent-light); }
.stat-change.down { color: #888888; }

/* Dashboard Row */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
@media (max-width: 960px) { .dashboard-row { grid-template-columns: 1fr; } }

.chart-container { position: relative; height: 280px; width: 100%; }
.chart-container-sm { height: 220px; }

/* Auditor Rows */
.auditor-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
    margin: 2px 4px;
}
.auditor-row:hover { background: rgba(139, 92, 246, 0.03); transform: translateX(4px); }
.auditor-row:hover .auditor-name { color: var(--accent-light); }
.auditor-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #050505;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
.auditor-info { flex: 1; }
.auditor-name { font-weight: 600; font-size: 14.5px; color: var(--text); transition: color var(--transition-base); }
.auditor-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.auditor-stats { display: flex; gap: 24px; text-align: center; }
.auditor-stat-val { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--text); }
.auditor-stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* Schedule */
.schedule-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.schedule-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: 11px; border: 1px solid rgba(255, 255, 255, 0.03); text-align: center; font-size: 12px; }
.schedule-table th { background: rgba(0, 0, 0, 0.3); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .5px; }
.schedule-table th:first-child, .schedule-table td:first-child { text-align: left; font-weight: 600; width: 170px; background: rgba(0, 0, 0, 0.15); }
.schedule-table input { margin: 0; padding: 7px 9px; font-size: 11px; text-align: center; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.3); }
.schedule-table input:focus { box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.02), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.upload-zone:hover::before { opacity: 1; }
.upload-zone:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.06), inset 0 0 40px rgba(139, 92, 246, 0.02);
    transform: translateY(-2px);
}
.upload-zone svg { width: 40px; height: 40px; stroke: var(--text-muted); margin-bottom: 14px; transition: all var(--transition-base); }
.upload-zone:hover svg { stroke: var(--accent-light); transform: scale(1.1); }
.upload-zone p { color: var(--text-muted); font-size: 13px; position: relative; z-index: 1; }
.upload-zone p span { color: var(--accent-light); font-weight: 600; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: slideInRight .35s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
}
.toast::before { content: ''; width: 4px; height: 22px; border-radius: 3px; flex-shrink: 0; }
.toast.success::before { background: linear-gradient(180deg, #a0a0a0, #c0c0c0); }
.toast.error::before { background: linear-gradient(180deg, #888888, #a0a0a0); }
.toast.info::before { background: linear-gradient(180deg, #a78bfa, #c4b5fd); }

/* Auth Screen */
.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}
.auth-screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    animation: fadeInScale .6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}
.auth-logo p { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; letter-spacing: .3px; }
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.auth-divider span { padding: 0 14px; }
.auth-link { color: var(--text-muted); text-decoration: none; font-size: 13px; display: block; text-align: center; margin-top: 18px; transition: all var(--transition-base); font-weight: 500; }
.auth-link:hover { color: var(--accent-light); text-shadow: 0 0 20px rgba(139,92,246,0.2); }

/* Form Grid & Groups */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.form-grid .form-group { margin-bottom: 0; }
.checklist-form-grid { grid-template-columns: 80px 1fr 1fr 1fr auto; gap: 10px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-group .btn { flex: 1; min-width: 160px; }
.empty-state { text-align: center; padding: 48px; color: var(--text-muted); font-size: 13.5px; }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.06); border-top-color: var(--accent-light); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 18px; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-row { grid-template-columns: 1fr; gap: 12px; }
    .app-header { flex-direction: column; gap: 14px; align-items: flex-start; }
    .nav-tabs { flex-wrap: nowrap; gap: 2px; padding: 4px; }
    .nav-tabs .nav-btn { flex: 0 0 auto; min-width: unset; font-size: 12px; padding: 8px 14px; }
    .auditor-row { flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr; }
    .checklist-form-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .stat-value { font-size: 28px; }
    .user-info { width: 100%; justify-content: space-between; }
    .card { padding: 18px; }
    .upload-zone { padding: 32px 18px; }
    .btn-group .btn { min-width: 100%; }
    .violation-input { flex-direction: column; }
    .violation-input textarea { width: 100%; }
    .mic-btn { width: 100%; height: 44px; }
    #audit-detail-modal { padding: 10px; }
    #audit-detail-modal .card { padding: 16px; }
}

/* Tab Content */
.tab-content { animation: fadeIn .4s cubic-bezier(0.22, 1, 0.36, 1); }

/* Selection */
::selection { background: rgba(139, 92, 246, 0.35); color: var(--text); }