
:root {
    --primary: #1a3a5c;
    --primary-light: #2563a8;
    --accent: #c8992a;
    --accent-light: #e8b84b;
    --surface: #f0f4f8;
    --card: #ffffff;
    --text: #1a2433;
    --text-muted: #5a6a7e;
    --border: #d0dae6;
    --success: #1a7a4a;
    --danger: #b5291a;
    --warning: #b5760a;
    --info: #1567a8;
    --shadow: 0 4px 24px rgba(26,58,92,0.10);
    --shadow-lg: 0 12px 48px rgba(26,58,92,0.18);
}
* { font-family: 'Noto Sans Devanagari', 'Segoe UI', Arial, sans-serif !important; }
html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; }
body { background: linear-gradient(135deg, #0f2540 0%, #1a3a5c 50%, #2a5080 100%); min-height: 100vh; overflow-x: hidden; }
.brand-title-block { width: 100%; background: linear-gradient(105deg, #102d67 0%, #1f3f86 58%, #284d99 100%); color: white; display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 3px solid var(--accent); box-shadow: 0 3px 18px rgba(4,20,50,.25); }
.brand-logo { width: 66px; height: 66px; flex: 0 0 66px; border-radius: 50%; object-fit: cover; object-position: center; display: block; background: white; padding: 0; border: 2px solid rgba(255,255,255,.78); box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.brand-copy { min-width: 0; line-height: 1.08; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.2px; margin: 0 0 5px; color: white; }
.brand-name .brand-at, .brand-name .brand-iet { color: #ffbd2e; }
.brand-welcome { font-size: 1.05rem; font-weight: 750; margin: 0 0 5px; color: white; }
.brand-subtitle { font-size: .82rem; color: rgba(255,255,255,.84); margin: 0; }
.brand-title-block.compact { background: transparent; box-shadow: none; border: 0; padding: 10px 0; width: auto; flex: 1; }
.brand-title-block.compact .brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
.brand-title-block.compact .brand-name { font-size: 1.35rem; }
/* === LOGIN PAGE === */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 20px 28px; }
.login-home-brand { margin: 0 -20px 34px; width: calc(100% + 40px); }
.login-card { background: white; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; max-width: 440px; margin: auto 0; }
.login-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 36px 30px 28px; text-align: center; position: relative; }
.login-header::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px; background: white; border-radius: 30px 30px 0 0; }
.login-logo { width: 72px; height: 72px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2rem; border: 2px solid rgba(255,255,255,0.3); }
.login-header h1 { color: white; font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.login-header p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0; }
.login-body { padding: 24px 30px 30px; }
.login-body .form-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.login-body .form-control { border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 0.95rem; transition: all 0.2s; }
.login-body .form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,168,0.15); }
.btn-login { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; border: none; border-radius: 10px; padding: 13px; font-size: 1rem; font-weight: 700; width: 100%; transition: all 0.2s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,58,92,0.3); color: white; }
/* === MAIN APP === */
.app-wrap { display: none; }
.app-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.app-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px; gap: 20px; }
.role-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600; color: white; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
.role-badge:hover { background: rgba(255,255,255,0.2); }
.role-badge.admin { border-color: var(--accent); }
.role-badge i { font-size: 1rem; }
/* NAV */
.app-nav { background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.1); }
.app-nav .nav-tabs { border: none; padding: 0 12px; }
.app-nav .nav-link { color: rgba(255,255,255,0.7); border: none; border-radius: 0; padding: 12px 20px; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; position: relative; }
.app-nav .nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.app-nav .nav-link.active { color: white; background: transparent; border-bottom: 3px solid var(--accent); }
.app-nav .nav-link .badge { font-size: 0.7rem; padding: 3px 7px; background: var(--accent) !important; }
/* CONTENT */
.app-body { padding: 24px; width: 100%; }
.section-card { background: white; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.section-card-header { background: linear-gradient(to right, var(--surface), white); padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.section-card-header h4 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.section-card-body { padding: 24px; }
/* FORM */
.form-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.3px; margin-bottom: 6px; text-transform: uppercase; }
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.95rem; color: var(--text); transition: all 0.2s; background: #fafbfc; }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,168,0.12); background: white; }
.input-group-text { border: 1.5px solid var(--border); border-right: none; background: var(--surface); color: var(--primary); font-weight: 600; border-radius: 10px 0 0 10px; }
.input-group .form-control { border-left: none; border-radius: 0 10px 10px 0; }
/* BUDGET INFO CARD */
.budget-info-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 14px; padding: 20px; margin-bottom: 20px; color: white; }
.budget-stat { background: rgba(255,255,255,0.12); border-radius: 10px; padding: 14px; text-align: center; border: 1px solid rgba(255,255,255,0.15); }
.budget-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.budget-stat-value { font-size: 1.2rem; font-weight: 700; color: white; }
/* TABLE */
.table th { background: var(--primary); color: white; font-size: 0.82rem; font-weight: 700; padding: 12px 10px; vertical-align: middle; border: none; }
.table td { font-size: 0.88rem; padding: 10px; vertical-align: middle; color: var(--text); border-color: var(--border); }
.table tbody tr:hover { background: rgba(37,99,168,0.04); }
/* BADGES */
.badge-status { font-size: 0.78rem; padding: 5px 10px; border-radius: 20px; font-weight: 600; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-noentry { background: #f8d7da; color: #721c24; }
/* BUTTONS */
.btn { border-radius: 8px; font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary-light); border-color: var(--primary-light); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: white; }
.btn-accent:hover { background: #b5831f; }
/* UNAUTHORIZED */
.unauthorized-box { text-align: center; padding: 60px 30px; }
.unauthorized-box i { font-size: 4rem; color: #dc3545; margin-bottom: 20px; display: block; }
/* SECTION DIVIDER */
.section-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; }
.section-divider span { background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* BUDGET REPORT CARD */
.budget-card-sm { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; margin-bottom: 12px; }
.budget-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.budget-value { font-size: 1rem; font-weight: 700; }
/* FOOTER */
.app-footer { text-align: center; padding: 24px 20px; color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.8; }
/* ITEM CODE */
.item-code-badge { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-size: 0.8rem; font-weight: 700; color: var(--primary); }
/* CHANGE PWD MODAL */
.modal-header { background: var(--primary); color: white; }
.modal-header .btn-close { filter: invert(1); }
/* RESPONSIVE */
@media(max-width:768px) {
    .app-header-inner { flex-direction: column; gap: 10px; padding: 12px; }
    .brand-title-block { padding: 12px 16px; gap: 12px; }
    .brand-logo { width: 54px; height: 54px; flex-basis: 54px; }
    .brand-name { font-size: 1.12rem; }
    .brand-welcome { font-size: .9rem; }
    .brand-subtitle { font-size: .72rem; line-height: 1.3; }
    .brand-title-block.compact { justify-content: center; }
    .app-body { padding: 12px; }
    .app-nav .nav-link { padding: 10px 12px; font-size: 0.8rem; }
}

