/* ============ OUC 2.0 - Main Stylesheet ============ */
:root {
    --sidebar-w: 250px;
    --primary: #4e73df;
    --dark: #1a1f36;
}
* { outline: none; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f6fb;
    min-height: 100vh;
}

/* ---------- Layout ---------- */
.wrapper { display: flex; min-height: 100vh; }
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    transition: margin-left .3s;
    min-width: 0;
    padding-bottom: 10px;
}
.footer-bar {
    margin-left: var(--sidebar-w);
    transition: margin-left .3s;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #1a1f36 0%, #232946 100%);
    color: #d1d3e2;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: transform .3s;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand i { color: var(--primary); }
.sidebar-menu { padding: 10px 0 20px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px;
    color: #b6b9d0;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    white-space: nowrap;
}
.sidebar-menu a i { font-size: 15px; width: 18px; }
.sidebar-menu a:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-menu a.active {
    color: #fff;
    background: rgba(78,115,223,.25);
    border-left-color: var(--primary);
}
.menu-label {
    padding: 12px 20px 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c7086;
}
.sidebar-backdrop { display: none; }

/* ---------- Topbar ---------- */
.topbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.notif-dropdown { width: 320px; max-height: 380px; overflow-y: auto; }

/* ---------- Cards ---------- */
.stat-card {
    border: 0;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.stat-card .stat-icon {
    position: absolute;
    right: 12px; top: 12px;
    font-size: 42px;
    opacity: .25;
}
.stat-card .stat-value { font-size: 26px; font-weight: 700; }
.stat-card .stat-title { font-size: 13px; opacity: .9; text-transform: uppercase; letter-spacing: .5px; }
.bg-gradient-primary { background: linear-gradient(135deg,#4e73df,#224abe); }
.bg-gradient-success { background: linear-gradient(135deg,#1cc88a,#13855c); }
.bg-gradient-warning { background: linear-gradient(135deg,#f6c23e,#dda20a); }
.bg-gradient-danger  { background: linear-gradient(135deg,#e74a3b,#be2617); }
.bg-gradient-info    { background: linear-gradient(135deg,#36b9cc,#258391); }
.bg-gradient-dark    { background: linear-gradient(135deg,#2c3145,#191d2b); }

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

/* ---------- Tables ---------- */
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6c757d; }
.table td { vertical-align: middle; font-size: 14px; }
.table td img.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }

/* ---------- Iris ---------- */
.iris-preview {
    width: 150px; height: 150px;
    margin: 0 auto;
    border: 2px dashed #ced4da;
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #f8f9fa;
    overflow: hidden;
}
.iris-preview img { width: 100%; height: 100%; object-fit: cover; }
.iris-box { border: 1px solid #e3e6f0; }

/* ---------- Login Page ---------- */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#1a1f36 0%,#4e73df 100%);
    padding: 20px;
}
.login-card { width: 100%; max-width: 420px; border-radius: 16px; overflow: hidden; }
.login-logo {
    width: 70px; height: 70px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff;
    margin: 0 auto;
}

/* ---------- UPI QR ---------- */
.qr-box {
    width: 230px; height: 230px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
}
.qr-box img { width: 100%; height: 100%; }

/* ---------- Misc ---------- */
.thumb-lg { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cursor-pointer { cursor: pointer; }
.text-10 { font-size: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content, .footer-bar { margin-left: 0; }
    .sidebar-backdrop.show {
        display: block;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1029;
    }
}
@media print {
    .sidebar, .topbar, .footer-bar, .btn { display: none !important; }
    .main-content { margin: 0; }
}
