/* =========================================================
   Mandal Donations – Site.css
   Enterprise-level donation management UI
   ========================================================= */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --saffron:          #FF6B00;
    --saffron-dark:     #e05900;
    --saffron-light:    #fff3e0;
    --saffron-100:      #fff8f0;
    --sidebar-bg:       #0f172a;
    --sidebar-hover:    #1e293b;
    --sidebar-active:   #FF6B00;
    --sidebar-text:     #94a3b8;
    --sidebar-text-hov: #f1f5f9;
    --sidebar-w:        260px;
    --sidebar-w-col:    72px;
    --topbar-h:         64px;
    --white:            #ffffff;
    --gray-50:          #f8fafc;
    --gray-100:         #f1f5f9;
    --gray-200:         #e2e8f0;
    --gray-300:         #cbd5e1;
    --gray-400:         #94a3b8;
    --gray-500:         #64748b;
    --gray-600:         #475569;
    --gray-700:         #334155;
    --gray-800:         #1e293b;
    --gray-900:         #0f172a;
    --success:          #10b981;
    --success-light:    #d1fae5;
    --danger:           #ef4444;
    --danger-light:     #fee2e2;
    --warning:          #f59e0b;
    --warning-light:    #fef3c7;
    --info:             #3b82f6;
    --info-light:       #dbeafe;
    --purple:           #8b5cf6;
    --purple-light:     #ede9fe;
    --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:           0 4px 16px rgba(0,0,0,.10);
    --shadow-md:        0 8px 30px rgba(0,0,0,.12);
    --shadow-lg:        0 20px 60px rgba(0,0,0,.16);
    --radius-sm:        6px;
    --radius:           10px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --transition:       all .2s ease;
}

/* ── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: .9rem;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--saffron); text-decoration: none; }
a:hover { color: var(--saffron-dark); }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-w-col); }

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    height: var(--topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,0,.35);
}
.brand-text h5 {
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.brand-text span {
    color: var(--sidebar-text);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.sidebar.collapsed .brand-text { display: none; }

/* Search */
.sidebar-search { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.06);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
}
.search-box i { color: var(--sidebar-text); font-size: .8rem; }
.search-box input {
    background: transparent; border: none; outline: none;
    color: var(--white); font-size: .82rem; width: 100%;
}
.search-box input::placeholder { color: var(--sidebar-text); }
.sidebar.collapsed .sidebar-search { display: none; }

/* Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.nav-group { margin-bottom: 4px; }
.nav-label {
    display: block;
    color: var(--gray-500);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 14px 18px 4px;
    text-transform: uppercase;
}
.sidebar.collapsed .nav-label { display: none; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--sidebar-text);
    font-size: .86rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}
.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hov);
    border-left-color: rgba(255,107,0,.4);
}
.nav-item.active {
    background: rgba(255,107,0,.12);
    color: var(--saffron);
    border-left-color: var(--saffron);
}
.nav-icon {
    width: 20px; text-align: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.nav-text { flex: 1; }
.nav-badge {
    background: var(--saffron);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
}
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-label { display: none; }
.sidebar.collapsed .nav-item { padding: 12px; justify-content: center; }

/* Footer */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}
.user-detail { min-width: 0; }
.user-name {
    display: block;
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role {
    display: block;
    color: var(--sidebar-text);
    font-size: .68rem;
}
.logout-btn {
    color: var(--sidebar-text);
    font-size: .9rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.logout-btn:hover { color: var(--danger); background: rgba(239,68,68,.1); }
.sidebar.collapsed .user-detail { display: none; }

/* ── Main Wrapper ───────────────────────────────────────── */
.main-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease;
}
.main-wrapper.expanded { margin-left: var(--sidebar-w-col); }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--gray-700); }
.breadcrumb { font-size: .82rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item.active { color: var(--gray-700); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--gray-500); font-size: .8rem; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .8rem;
}
.topbar-username { font-size: .84rem; font-weight: 500; color: var(--gray-700); }
.topbar-logout {
    width: 32px; height: 32px;
    color: var(--gray-400);
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.topbar-logout:hover { color: var(--danger); background: var(--danger-light); }

/* ── Content Area ───────────────────────────────────────── */
.content-area { padding: 28px 28px; flex: 1; }

/* ── Page Header ────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin: 0; }
.page-subtitle { color: var(--gray-500); font-size: .82rem; margin: 2px 0 0; }

/* ── Toast Alerts ───────────────────────────────────────── */
.alert-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .88rem;
    font-weight: 500;
    animation: slideDown .3s ease;
}
.alert-toast.success {
    background: var(--success-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-toast.warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    color: #92400e;
}
.alert-toast i { font-size: 1rem; }
.alert-toast span { flex: 1; }
.alert-toast button {
    background: transparent; border: none; cursor: pointer;
    color: inherit; opacity: .6; padding: 2px;
}
.alert-toast button:hover { opacity: 1; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Stat Cards ─────────────────────────────────────────── */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.stat-card .stat-icon {
    position: absolute; top: 18px; right: 20px;
    font-size: 2.2rem; opacity: .25;
}
.stat-card .stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    font-weight: 600;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}
.stat-card .stat-sub {
    font-size: .75rem;
    opacity: .8;
}
.stat-orange  { background: linear-gradient(135deg, #ff6b00, #ff9800); }
.stat-blue    { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.stat-green   { background: linear-gradient(135deg, #065f46, #10b981); }
.stat-purple  { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.stat-teal    { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.stat-rose    { background: linear-gradient(135deg, #9f1239, #f43f5e); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header-custom {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}
.card-header-custom h6 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.card-header-icon {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem;
}
.icon-orange { background: var(--saffron-light); color: var(--saffron); }
.icon-blue   { background: var(--info-light);    color: var(--info); }
.icon-green  { background: var(--success-light); color: var(--success); }
.icon-purple { background: var(--purple-light);  color: var(--purple); }
.icon-red    { background: var(--danger-light);  color: var(--danger); }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}
.data-table thead th {
    padding: 11px 14px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 12px 14px;
    font-size: .85rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--saffron-100); }
.data-table tfoot td {
    padding: 12px 14px;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
    font-weight: 700;
    font-size: .85rem;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}
.badge-confirmed { background: var(--success-light); color: #065f46; }
.badge-pending   { background: var(--warning-light); color: #92400e; }
.badge-mode      { background: var(--info-light);    color: #1e40af; }

/* Donation code */
.donation-code {
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Form Styles ─────────────────────────────────────────── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.form-section {
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.form-section:last-child { border-bottom: none; }
.section-heading {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--saffron);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--saffron-light);
}
.form-footer {
    padding: 20px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-label {
    font-size: .83rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
    display: block;
}
.form-label .required { color: var(--danger); }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    padding: 9px 13px;
    font-size: .88rem;
    color: var(--gray-700);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.form-control:focus, .form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255,107,0,.1);
    outline: none;
}
.form-control[readonly], .form-control:disabled {
    background: var(--gray-50);
    color: var(--gray-400);
    cursor: not-allowed;
}
.input-group { display: flex; }
.input-group .input-group-text {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-right: none;
    padding: 9px 12px;
    font-size: .88rem;
    color: var(--gray-500);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.field-note {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 4px;
}
.text-danger.small, .field-error { font-size: .75rem; color: var(--danger); margin-top: 4px; display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { border-radius: var(--radius-sm); font-size: .87rem; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; }
.btn-primary   { background: linear-gradient(135deg, var(--saffron), #ff9800); color: #fff; box-shadow: 0 2px 8px rgba(255,107,0,.3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--saffron-dark), #fb8c00); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,.35); color:#fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-outline   { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-600); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-outline-primary { background: transparent; border: 1.5px solid var(--saffron); color: var(--saffron); }
.btn-outline-primary:hover { background: var(--saffron); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 12px 28px; font-size: .96rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Auth Page ───────────────────────────────────────────── */
.auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}
.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), #ff9800);
}
.login-brand { text-align: center; margin-bottom: 36px; }
.login-brand .brand-circle {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(255,107,0,.35);
    animation: float 3s ease-in-out infinite;
}
.login-brand h4 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.login-brand p { color: var(--gray-500); font-size: .82rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ── Receipt ─────────────────────────────────────────────── */
.receipt-wrapper { max-width: 780px; margin: 0 auto; }
.receipt-paper {
    background: var(--white);
    border: 2px solid var(--saffron);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.receipt-paper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--saffron), #ff9800, var(--saffron));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.receipt-org { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.receipt-logo {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255,107,0,.3);
}
.receipt-org-info h5 { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.receipt-org-info p { font-size: .78rem; color: var(--gray-500); margin: 1px 0; }
.receipt-title-bar {
    background: linear-gradient(90deg, var(--saffron), #ff9800);
    color: #fff;
    text-align: center;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: .2em;
    font-size: .88rem;
    margin: 20px 0;
}
.receipt-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.receipt-meta-item small { display: block; font-size: .7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.receipt-meta-item strong { font-size: .92rem; color: var(--gray-800); }
.receipt-donor {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--gray-200);
}
.receipt-donor-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 12px; }
.receipt-donor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-pair small { font-size: .7rem; color: var(--gray-400); display: block; }
.info-pair span  { font-size: .88rem; color: var(--gray-700); font-weight: 500; }
.receipt-amount-box {
    background: var(--saffron-light);
    border: 2px solid #ffcc80;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 18px 0;
}
.receipt-amount-box .big-amount { font-size: 2.4rem; font-weight: 900; color: var(--saffron); line-height: 1; }
.receipt-amount-box .amount-words { font-size: .84rem; color: var(--gray-600); margin-top: 6px; }
.receipt-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-300);
}
.seal-box { text-align: center; }
.seal-ring {
    width: 80px; height: 80px;
    border: 2px dashed var(--saffron);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--saffron);
    font-size: .58rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 auto 6px;
}
.receipt-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ── Dashboard Charts ────────────────────────────────────── */
.chart-container { position: relative; height: 240px; }

/* ── Sidebar Overlay (mobile) ────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
}
.sidebar-overlay.visible { display: block; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w) !important;
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .content-area { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
    .sidebar, .topbar, .receipt-actions,
    .main-wrapper > header, nav { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .receipt-paper { box-shadow: none; border: 1px solid #ccc; }
    body { background: #fff; }
}

/* ── Misc ────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-400);
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 14px; opacity: .3; }
.empty-state p { font-size: .9rem; }
.text-saffron { color: var(--saffron) !important; }
.bg-saffron   { background: var(--saffron) !important; }
.fw-500       { font-weight: 500 !important; }
.fw-600       { font-weight: 600 !important; }
.fw-700       { font-weight: 700 !important; }

/* Confirm detail boxes */
.confirm-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.confirm-header {
    background: linear-gradient(135deg, var(--saffron), #ff9800);
    color: #fff;
    padding: 18px 24px;
}
.confirm-header h5 { font-size: 1rem; font-weight: 700; margin: 0; }
.confirm-body { padding: 24px; }
.confirm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.confirm-item label { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 3px; }
.confirm-item span  { font-size: .9rem; font-weight: 600; color: var(--gray-800); }
.confirm-amount-display { font-size: 2.2rem; font-weight: 900; color: var(--success); }
.confirm-warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: .84rem;
    color: #92400e;
    margin: 16px 0;
}
.confirm-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex; gap: 12px;
}

/* QR Section */
.upi-section {
    background: var(--saffron-100);
    border: 1px dashed var(--saffron);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.upi-section h6 { color: var(--saffron); font-weight: 700; margin-bottom: 10px; }

/* Donation code badge header */
.code-badge {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
}
