:root {
    --sidebar-width: 250px;
    --primary-color: #2563eb;
}

body { background: #f1f5f9; font-family: 'Segoe UI', system-ui, sans-serif; }
.login-page { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 420px; padding: 1rem; }
.login-container .card { border: none; border-radius: 12px; }

.sidebar { width: var(--sidebar-width); min-height: 100vh; position: sticky; top: 0; flex-shrink: 0; }
.sidebar .nav-link { border-radius: 8px; margin-bottom: 2px; padding: 0.6rem 1rem; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,0.1); }
.main-content { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 100; }

.stat-card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.85rem; color: #64748b; }

.card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.card-header { background: #fff; border-bottom: 1px solid #e2e8f0; font-weight: 600; }

.doc-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.doc-image { transition: transform 0.2s; transform-origin: center center; }
.doc-viewer { background: #1e293b; text-align: center; padding: 1rem; border-radius: 0 0 12px 12px; }

.dropzone { border: 2px dashed #cbd5e1 !important; background: #f8fafc; min-height: 200px; }
.dropzone .dz-message { margin: 2em 0; }

.table th { font-size: 0.85rem; font-weight: 600; color: #475569; }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }

@media (max-width: 991px) {
    .sidebar { width: 100%; min-height: auto; position: relative; }
    .d-flex { flex-direction: column; }
}
