:root {
    --primary: #4f74f9;
    --primary-dark: #3a5fd9;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8fafc;
    color: #374151;
    min-height: 100vh;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

.card {
    border-radius: 12px;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.45rem 1rem;
    transition: all 0.15s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-sm { font-size: 0.82rem; padding: 0.3rem 0.7rem; }

.badge { font-weight: 500; padding: 0.3rem 0.6rem; }

.table > :not(caption) > * > * { padding: 0.7rem 0.85rem; }
.table th { font-size: 0.78rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.table td { font-size: 0.875rem; }

.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,116,249,0.12);
}

mark {
    background: #fff176;
    border-radius: 2px;
    padding: 0 1px;
}

.alert {
    border-radius: 10px;
    border: none;
}

.stat-card {
    border-radius: 12px !important;
    transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-label { font-size: 0.72rem; opacity: 0.85; font-weight: 500; }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }

.empty-state {
    padding: 3.5rem;
    text-align: center;
    color: #9ca3af;
}
.empty-state i {
    font-size: 3rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 56px);
        z-index: 1040;
        transition: left 0.3s;
    }
    .sidebar.show { left: 0; }
    main { margin-left: 0 !important; }
}
