:root {
    --sidebar-width: 240px;
    --header-height: 60px;
    --bg-primary: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.1);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #1a1f3a 0%, #0f172a 100%);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand i {
    font-size: 1.5rem;
    -webkit-text-fill-color: var(--accent);
}

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-nav li.active a {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    box-shadow: 0 0 20px var(--accent-glow);
}

.sidebar-nav i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.content-area {
    padding: 24px;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card-total .stat-icon { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.stat-card-found .stat-icon { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.stat-card-notfound .stat-icon { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.stat-card-pending .stat-icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.03);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.table th {
    border-color: var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    border-color: var(--border-color);
    vertical-align: middle;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 6px 12px;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted);
    padding-top: 12px;
}

.page-item .page-link {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* Form elements */
.form-select, .form-control {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-select:focus, .form-control:focus {
    background: var(--bg-surface);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Progress bars */
.progress {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card, .glass-card {
    animation: fadeInUp 0.4s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
