/* PM-PSDMS Professional Styles */
:root {
    --sidebar-w: 260px;
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
}

body { font-family: 'Inter', system-ui, sans-serif; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0f172a;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
    width: 48px; height: 48px;
    border: 3px solid rgba(59,130,246,0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    transition: transform 0.3s ease;
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-radius: 10px;
    color: #94a3b8; font-size: 0.875rem; font-weight: 500;
    transition: all 0.15s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.sidebar-link.active { background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.35); }
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Main content offset */
.main-wrap { margin-left: var(--sidebar-w); min-height: 100vh; }
@media (max-width: 1023px) {
    .sidebar { transform: translateX(-100%); position: fixed; z-index: 50; height: 100%; }
    .sidebar.open { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; }
    .sidebar-overlay.show { display: block; }
}

/* Cards */
.stat-card { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.12); }

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
EOF
