/* assets/css/style.css */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }

body { background: var(--bg); color: var(--text); display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); padding: 2rem 1.5rem; }
.sidebar h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary); }
.nav-links { list-style: none; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; display: block; padding: 0.75rem 1rem; border-radius: 8px; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { background: #eff6ff; color: var(--primary); }

.main-content { flex: 1; padding: 2.5rem; overflow-y: auto; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.header h1 { font-size: 1.875rem; font-weight: 700; }

.filters-card { background: var(--surface); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group select { padding: 0.75rem; border: 1px solid var(--border); border-radius: 8px; outline: none; transition: border 0.2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }

.actions { display: flex; gap: 1rem; }
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }

.data-table-container { background: var(--surface); border-radius: 12px; border: 1px solid var(--border); overflow-x: auto; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #f8fafc; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:hover { background: #f8fafc; }
.data-table td { font-size: 0.875rem; }

.empty-state { padding: 4rem 2rem; text-align: center; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text); }

.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 1.5rem; border-top: 1px solid var(--border); }
.pagination a { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); transition: 0.2s; }
.pagination a:hover { background: var(--bg); }
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }

.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); display: flex; justify-content: center; align-items: center; z-index: 50; flex-direction: column; gap: 1rem; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
