/* ============================================
   LAB EQUIPMENT SYSTEM — Fully Responsive UI
   PSHS Green & Gold Theme · Matched to Logo
   ============================================ */

/* ============================================
   PSHS COLOR PALETTE
   ============================================ */
:root {
    --pshs-green-dark:  #0f4a1e;
    --pshs-green:       #1a6b2e;
    --pshs-green-mid:   #237a37;
    --pshs-green-light: #2d8a3e;
    --pshs-gold:        #f0b90b;
    --pshs-gold-dark:   #d4a017;
    --pshs-gold-soft:   #fef3c7;
    --pshs-red:         #c8102e;
    --pshs-cream:       #fef9ec;
    --pshs-bg:          #f7f8f5;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--pshs-bg);
    color: #1e293b;
    line-height: 1.55;
    font-size: clamp(13px, 1.2vw, 14px);
    overflow-x: hidden;
}

a {
    color: var(--pshs-green);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { text-decoration: underline; }

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 32px);
    background:
        radial-gradient(circle at 20% 20%, rgba(240, 185, 11, .18) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(45, 138, 62, .18) 0%, transparent 45%),
        linear-gradient(135deg, #0a3616 0%, #0f4a1e 55%, #1a6b2e 100%);
}

.auth-card {
    background: #fff;
    padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 36px);
    border-radius: 16px;
    box-shadow:
        0 25px 60px rgba(15, 74, 30, .3),
        0 0 0 1px rgba(255, 255, 255, .05);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pshs-green), var(--pshs-gold), var(--pshs-green));
}

.auth-card-wide {
    max-width: 560px;
}

.auth-logo {
    font-size: clamp(32px, 8vw, 44px);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}

.auth-card h1 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    text-align: center;
    color: var(--pshs-green-dark);
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.auth-card .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 28px;
}

.auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #334155;
    letter-spacing: -.1px;
}

.auth-card input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all .15s ease;
    background: #f8fafc;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--pshs-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 107, 46, .12);
}

.auth-card button[type="submit"] {
    margin-top: 24px;
    width: 100%;
}

.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--pshs-green);
    font-weight: 600;
}

/* ============================================
   FORM ROW
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

/* ============================================
   PASSWORD WRAP + TOGGLE
   ============================================ */
.password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.password-wrap input {
    padding-right: 48px;
    width: 100%;
    display: block;
}

.pw-toggle {
    position: absolute !important;
    right: 10px;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1;
    color: #94a3b8;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 2;
    box-shadow: none !important;
    transition: color .15s ease;
}

.pw-toggle:hover {
    color: var(--pshs-green);
}

/* ============================================
   SIDEBAR — DEEP GREEN
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 256px;
    background: linear-gradient(180deg, #0a3616 0%, #0f4a1e 55%, #145a24 100%);
    color: #d5e6d8;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(15, 74, 30, .25);
}

.sidebar-brand {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(240, 185, 11, .18);
}

.sidebar-brand a {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.2px;
    text-decoration: none;
}

.sidebar-brand a:hover { text-decoration: none; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

.sidebar-section {
    padding: 16px 22px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pshs-gold);
    font-weight: 700;
    opacity: .9;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: rgba(255, 255, 255, .85);
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s ease;
    position: relative;
    min-height: 44px;
}

.sidebar-link:hover {
    background: rgba(240, 185, 11, .12);
    color: #fff;
    text-decoration: none;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(45, 138, 62, .5) 0%, rgba(45, 138, 62, .15) 100%);
    color: #fff;
    border-left-color: var(--pshs-gold);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pshs-gold);
    box-shadow: 0 0 12px var(--pshs-gold);
}

.sidebar-link .icon {
    width: 20px;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-footer {
    border-top: 1px solid rgba(240, 185, 11, .18);
    padding: 16px;
    background: rgba(0, 0, 0, .18);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(240, 185, 11, .15);
}

.sidebar-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pshs-gold) 0%, var(--pshs-gold-dark) 100%);
    color: var(--pshs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240, 185, 11, .4);
}

.sidebar-user .user-info {
    min-width: 0;
    overflow: hidden;
}

.sidebar-user .user-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    color: var(--pshs-gold);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all .15s ease;
    min-height: 44px;
}

.sidebar-logout:hover {
    background: rgba(200, 16, 46, .2);
    color: #fecaca;
    text-decoration: none;
}

.sidebar-logout .icon {
    width: 20px;
    text-align: center;
}

/* ============================================
   MOBILE SIDEBAR & BACKDROP
   ============================================ */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--pshs-green);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 74, 30, .35);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 74, 30, .5);
    z-index: 90;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 256px;
    margin-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}

.container {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 28px) clamp(14px, 3vw, 24px);
}

.footer {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

/* ============================================
   HEADINGS
   ============================================ */
h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--pshs-green-dark);
    letter-spacing: -.4px;
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--pshs-green-dark);
    letter-spacing: -.3px;
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 12px;
}

h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 10px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: #fff;
    border-radius: 14px;
    padding: clamp(16px, 3vw, 26px);
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 16px rgba(15, 74, 30, .05);
    border: 1px solid #eef2f0;
    margin-bottom: 22px;
    transition: box-shadow .2s ease;
}

.card:hover {
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .08),
        0 8px 24px rgba(15, 74, 30, .08);
}

.card-center { text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--pshs-green-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 74, 30, .08);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pshs-green) 0%, var(--pshs-green-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(26, 107, 46, .3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pshs-green-dark) 0%, #0a3616 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 107, 46, .4);
    border-color: transparent;
}

.btn-gold {
    background: linear-gradient(135deg, var(--pshs-gold) 0%, var(--pshs-gold-dark) 100%);
    color: var(--pshs-green-dark);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(240, 185, 11, .35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--pshs-gold-dark) 0%, #b8880f 100%);
    color: var(--pshs-green-dark);
    box-shadow: 0 4px 12px rgba(240, 185, 11, .45);
    border-color: transparent;
}

.btn-danger {
    background: linear-gradient(135deg, var(--pshs-red) 0%, #991b1b 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(200, 16, 46, .25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(200, 16, 46, .35);
}

.btn-block { width: 100%; }

/* ============================================
   TABLE
   ============================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #eef2f0;
    margin-bottom: 22px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.table-responsive .table {
    border: none;
    box-shadow: none;
}

.table th,
.table td {
    padding: 13px 16px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    background: #f0f6f1;
    font-weight: 700;
    color: #3f5c48;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid #d5e6d8;
}

.table tr:last-child td { border-bottom: none; }

.table tr:hover td {
    background: #f7faf8;
}

.table code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    min-height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: all .15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--pshs-green);
    box-shadow: 0 0 0 4px rgba(26, 107, 46, .12);
    background: #fff;
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 6px;
    color: #334155;
    letter-spacing: -.1px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.alert-error   { background: #fef2f2; color: #991b1b; border-color: var(--pshs-red); }
.alert-success { background: #f0fdf4; color: #166534; border-color: var(--pshs-green-light); }
.alert-info    { background: var(--pshs-cream); color: #92400e; border-color: var(--pshs-gold); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--pshs-gold-dark); }

/* ============================================
   STATS CARDS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.stat {
    background: #fff;
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 16px rgba(15, 74, 30, .05);
    border: 1px solid #eef2f0;
    transition: all .2s ease;
}

.stat .num {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--pshs-green);
    line-height: 1;
    letter-spacing: -1px;
}

.stat .label {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
}

.stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}

.stat-link:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(15, 74, 30, .08),
        0 12px 32px rgba(15, 74, 30, .12);
    text-decoration: none;
}

.stat-link::after {
    content: '→';
    position: absolute;
    top: 14px;
    right: 16px;
    color: #cbd5e1;
    font-size: 15px;
    transition: all .15s ease;
}

.stat-link:hover::after {
    color: var(--pshs-green);
    transform: translateX(4px);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .2px;
    line-height: 1.4;
    white-space: nowrap;
}

.badge.pending   { background: var(--pshs-gold-soft); color: #92400e; }
.badge.released  { background: #dcfce7; color: #166534; }
.badge.returned  { background: #dcfce7; color: #166534; }
.badge.rejected  { background: #fee2e2; color: #991b1b; }
.badge.cancelled { background: #e2e8f0; color: #475569; }
.badge.expired   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.badge.available   { background: #dcfce7; color: #166534; }
.badge.borrowed    { background: #dbeafe; color: #1e40af; }
.badge.maintenance { background: var(--pshs-gold-soft); color: #92400e; }
.badge.retired     { background: #e2e8f0; color: #475569; }
.badge.reserved    { background: var(--pshs-gold-soft); color: #92400e; border: 1px solid #fde68a; }

/* ============================================
   QR / SCANNER
   ============================================ */
#reader {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 74, 30, .15);
}

#qrcode {
    display: inline-block;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(15, 74, 30, .1);
    max-width: 100%;
}

#qrcode img {
    margin: 0 auto;
}

.qr-instruction {
    color: #64748b;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.6;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 74, 30, .6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 28px);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15, 74, 30, .35);
    animation: modal-in .2s ease;
    border-top: 4px solid var(--pshs-gold);
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-box h3 { margin-top: 0; }

.modal-box textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all .15s ease;
    cursor: pointer;
}

.tab:hover {
    color: var(--pshs-green);
    text-decoration: none;
}

.tab.active {
    color: var(--pshs-green);
    border-bottom-color: var(--pshs-green);
    font-weight: 700;
}

.tab-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

.tab.active .tab-count {
    background: #dcfce7;
    color: #166534;
}

/* ============================================
   OVERVIEW CARDS
   ============================================ */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--pshs-bg);
    padding: 16px 0;
    margin: 20px 0;
    box-shadow: 0 4px 12px -8px rgba(15, 74, 30, .2);
}

.overview-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 16px rgba(15, 74, 30, .05);
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid #eef2f0;
}

.overview-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(15, 74, 30, .08),
        0 12px 32px rgba(15, 74, 30, .12);
    border-color: #cbd5e1;
}

.overview-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 74, 30, .15);
}

.overview-icon.icon-case  { background: linear-gradient(135deg, var(--pshs-green-light), var(--pshs-green)); }
.overview-icon.icon-parts { background: linear-gradient(135deg, var(--pshs-gold), var(--pshs-gold-dark)); color: var(--pshs-green-dark); }

.overview-body { min-width: 0; }

.overview-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    font-weight: 700;
}

.overview-value {
    font-size: clamp(24px, 3.5vw, 30px);
    font-weight: 800;
    color: var(--pshs-green-dark);
    line-height: 1.1;
    margin: 4px 0;
    letter-spacing: -1px;
}

.overview-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================
   COLLAPSIBLE GROUP SECTIONS
   ============================================ */
.group-section {
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 16px rgba(15, 74, 30, .05);
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #eef2f0;
}

.group-header {
    padding: 16px 22px;
    background: #f7faf8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background .15s ease;
}

.group-header:hover {
    background: #eef6f0;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--pshs-green-dark);
}

.group-icon { font-size: 20px; }

.group-count {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
}

.group-arrow {
    color: #64748b;
    font-size: 12px;
    transition: transform .25s ease;
}

.group-section.collapsed .group-arrow {
    transform: rotate(180deg);
}

.group-body {
    padding: 0;
    max-height: 6000px;
    transition: max-height .35s ease;
    overflow: hidden;
}

.group-section.collapsed .group-body {
    max-height: 0;
}

.group-body .table {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    border: none;
}

.group-section.highlighted {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 1px 3px rgba(15, 74, 30, .05);
        border-color: #eef2f0;
    }
    20% {
        box-shadow: 0 0 0 5px rgba(240, 185, 11, .4);
        border-color: var(--pshs-gold);
    }
    100% {
        box-shadow: 0 1px 3px rgba(15, 74, 30, .05);
        border-color: #eef2f0;
    }
}

.hidden { display: none !important; }

details summary {
    user-select: none;
    font-weight: 600;
    cursor: pointer;
}

details summary:hover {
    color: var(--pshs-green);
}

/* ============================================
   2-COLUMN LAYOUT (Browse page)
   ============================================ */
.browse-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.browse-main { min-width: 0; }

.browse-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 16px rgba(15, 74, 30, .05);
    border: 1px solid #eef2f0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.browse-sidebar h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--pshs-green-dark);
    font-weight: 700;
}

.browse-sidebar .sidebar-hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.5;
}

.browse-sidebar label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #334155;
    letter-spacing: -.1px;
}

.browse-sidebar input,
.browse-sidebar textarea,
.browse-sidebar select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    transition: all .15s ease;
}

.browse-sidebar textarea {
    resize: vertical;
    min-height: 70px;
}

.browse-sidebar .btn {
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.sidebar-summary {
    background: linear-gradient(135deg, #eef6f0, #dcfce7);
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    border: 1px solid #bbf7d0;
}

.sidebar-summary .count {
    font-size: 26px;
    font-weight: 800;
    color: var(--pshs-green);
    line-height: 1;
    display: block;
    letter-spacing: -1px;
}

.sidebar-summary .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--pshs-green-dark);
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

.sidebar-selected-list {
    margin-top: 14px;
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.sidebar-selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: 8px;
    color: #334155;
    background: #f7faf8;
    margin-bottom: 6px;
    border: 1px solid #eef2f0;
    font-weight: 500;
}

.sidebar-selected-item .remove {
    color: var(--pshs-red);
    cursor: pointer;
    font-weight: 800;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1;
    transition: all .15s ease;
}

.sidebar-selected-item .remove:hover {
    color: #991b1b;
    transform: scale(1.2);
}

/* ============================================
   NOTIFICATION BELL & DROPDOWN
   ============================================ */
.notif-bar {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.notif-dropdown-wrap { position: relative; }

.notif-bell {
    background: #fff;
    border: 1.5px solid #eef2f0;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    position: relative;
    box-shadow:
        0 1px 3px rgba(15, 74, 30, .05),
        0 4px 12px rgba(15, 74, 30, .08);
    transition: all .2s ease;
    padding: 0;
}

.notif-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 74, 30, .15);
    border-color: var(--pshs-gold);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, var(--pshs-red));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    border: 2px solid var(--pshs-bg);
    line-height: 1;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(380px, 90vw);
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 20px 60px rgba(15, 74, 30, .2),
        0 0 0 1px rgba(226, 232, 240, .6);
    z-index: 99999;
    overflow: hidden;
    max-height: calc(100vh - 100px);
    flex-direction: column;
}

.notif-dropdown.active {
    display: flex;
    animation: notif-in .2s ease;
}

@keyframes notif-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #f7faf8;
    font-size: 14px;
    font-weight: 700;
    color: var(--pshs-green-dark);
    flex-shrink: 0;
}

.notif-header a {
    font-size: 12px;
    font-weight: 600;
    color: var(--pshs-green);
}

.notif-body {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.notif-item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #f8fafc;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

.notif-item:hover {
    background: #f7faf8;
    text-decoration: none;
}

.notif-item.unread {
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 3px solid var(--pshs-green);
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pshs-green-dark);
    margin-bottom: 4px;
}

.notif-msg {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
    line-height: 1.45;
}

.notif-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.notif-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #f7faf8;
    font-size: 13px;
    flex-shrink: 0;
}

.notif-footer a {
    font-weight: 700;
    color: var(--pshs-green);
}

/* ============================================
   NOTIFICATION PAGE — Filter tabs
   ============================================ */
.notif-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.notif-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.notif-tab:hover {
    border-color: var(--pshs-gold);
    text-decoration: none;
    color: var(--pshs-green-dark);
}

.notif-tab.active {
    background: var(--pshs-green);
    color: #fff;
    border-color: var(--pshs-green);
    box-shadow: 0 4px 12px rgba(26, 107, 46, .3);
}

.notif-tab.active .notif-tab-count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.notif-tab-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.gap-1 { gap: 8px; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (min-width: 1440px) {
    .container {
        max-width: 1380px;
    }
}

@media (max-width: 1024px) {
    .browse-layout {
        grid-template-columns: 1fr 300px;
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
    }

    .container {
        padding-top: 68px;
    }

    .browse-layout {
        grid-template-columns: 1fr;
    }

    .browse-sidebar {
        position: static;
        max-height: none;
    }

    .notif-bar {
        padding-top: 12px;
    }
}

@media (max-width: 640px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-grid {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .notif-dropdown {
        position: fixed;
        top: 60px;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .flex-between {
        flex-direction: column;
        align-items: stretch;
    }

    .flex-between > * {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .btn {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ============================================
   COLORED TOP HEADER — GREEN GRADIENT
   ============================================ */
.top-header {
    background: linear-gradient(135deg, var(--pshs-green-dark) 0%, var(--pshs-green) 55%, var(--pshs-green-light) 100%);
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(15, 74, 30, .25);
    position: relative;
    z-index: 55;
    margin-top: 0;
}

.top-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pshs-gold-dark), var(--pshs-gold), var(--pshs-gold-dark));
}

.top-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-header-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 185, 11, .3);
    flex-shrink: 0;
}

.top-header-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.top-header-subtitle {
    font-size: 12px;
    color: var(--pshs-gold);
    margin-top: 2px;
    letter-spacing: .3px;
    font-weight: 600;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    border: 1px solid rgba(240, 185, 11, .25);
}

.avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pshs-gold) 0%, var(--pshs-gold-dark) 100%);
    color: var(--pshs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240, 185, 11, .4);
}

.top-header-user-info {
    min-width: 0;
}

.top-header-user-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.top-header-user-role {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--pshs-gold);
    margin-top: 1px;
    font-weight: 700;
}

.top-header .notif-bell {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(240, 185, 11, .3) !important;
    color: #fff !important;
    box-shadow: none !important;
    width: 44px;
    height: 44px;
}

.top-header .notif-bell:hover {
    background: rgba(240, 185, 11, .25) !important;
    transform: translateY(-2px);
}

.top-header .notif-badge {
    background: var(--pshs-red);
    border: 2px solid var(--pshs-green-dark);
}

.top-header + .container {
    padding-top: 24px;
}

@media (max-width: 900px) {
    .top-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .top-header-right {
        justify-content: flex-end;
    }

    .top-header-title {
        font-size: 15px;
    }

    .top-header-user-info {
        display: none;
    }

    .top-header-user {
        padding: 4px;
    }
}

@media (max-width: 500px) {
    .top-header-logo {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .top-header-title {
        font-size: 14px;
    }

    .top-header-subtitle {
        font-size: 11px;
    }
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown-wrap {
    position: relative;
}

.top-header-user {
    cursor: pointer;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(240, 185, 11, .25);
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s ease, transform .15s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: auto;
    margin: 0;
}

.top-header-user:hover {
    background: rgba(240, 185, 11, .22);
    transform: translateY(-1px);
}

.top-header-user:focus {
    outline: none;
}

.user-chevron {
    color: var(--pshs-gold);
    font-size: 11px;
    margin-left: 2px;
    transition: transform .2s ease;
}

.user-dropdown-wrap .user-dropdown.active ~ .top-header-user .user-chevron,
.user-dropdown.active + .user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(15, 74, 30, .2),
        0 0 0 1px rgba(226, 232, 240, .6);
    z-index: 99999;
    overflow: hidden;
    animation: user-dropdown-in .2s ease;
    border-top: 3px solid var(--pshs-gold);
    max-height: calc(100vh - 100px);
    flex-direction: column;
}

.user-dropdown.active {
    display: flex;
}

@keyframes user-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--pshs-green-dark) 0%, var(--pshs-green) 100%);
    border-bottom: 1px solid rgba(240, 185, 11, .2);
    flex-shrink: 0;
}

.avatar-md {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pshs-gold) 0%, var(--pshs-gold-dark) 100%);
    color: var(--pshs-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240, 185, 11, .4);
    border: 2px solid rgba(255, 255, 255, .3);
}

.user-dropdown-info {
    min-width: 0;
    overflow: hidden;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--pshs-gold);
    font-weight: 700;
    margin-top: 2px;
}

.user-dropdown-menu {
    padding: 6px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
    position: relative;
}

.user-menu-item:hover {
    background: var(--pshs-cream);
    color: var(--pshs-green-dark);
    text-decoration: none;
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.menu-badge {
    margin-left: auto;
    background: var(--pshs-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
}

.user-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 8px;
}

.user-menu-logout {
    color: var(--pshs-red) !important;
}

.user-menu-logout:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

@media (max-width: 500px) {
    .user-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }
}

/* ============================================
   SIDEBAR BRAND LOGO + TOP HEADER LOGO IMG
   ============================================ */
.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    flex-shrink: 0;
}

.top-header-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .brand-logo { width: 30px; height: 30px; }
    .top-header-logo-img { width: 34px; height: 34px; }
}
/* ============================================
   GLOBAL TEXT SIZE — Increase for readability
   ============================================ */

/* Base font size — bigger */
html {
    font-size: 16px !important;  /* dating 14px */
}

body {
    font-size: 15px !important;  /* dating clamp(13px, 1.2vw, 14px) */
    line-height: 1.6 !important;
}

/* Headings — bigger */
h1 {
    font-size: clamp(22px, 3.2vw, 28px) !important;
}

h2 {
    font-size: clamp(20px, 2.8vw, 24px) !important;
}

h3 {
    font-size: clamp(17px, 2.2vw, 19px) !important;
}

h4 {
    font-size: 16px !important;
}

/* Tables — bigger text */
.table th,
.table td {
    font-size: 14px !important;
    padding: 14px 16px !important;
}

.table th {
    font-size: 12.5px !important;
}

/* Forms — bigger inputs and labels */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    font-size: 15px !important;
    padding: 12px 16px !important;
    min-height: 46px !important;
}

label {
    font-size: 14px !important;
}

/* Buttons — bigger */
.btn {
    font-size: 14.5px !important;
    padding: 11px 20px !important;
    min-height: 44px !important;
}

/* Sidebar — bigger text */
.sidebar-link {
    font-size: 14.5px !important;
    padding: 13px 22px !important;
}

.sidebar-section {
    font-size: 11px !important;
}

.sidebar-user .user-name {
    font-size: 14px !important;
}

.sidebar-user .user-role {
    font-size: 11px !important;
}

/* Top header — bigger text */
.top-header-title {
    font-size: 17px !important;
}

.top-header-subtitle {
    font-size: 13px !important;
}

.top-header-user-name {
    font-size: 14px !important;
}

.top-header-user-role {
    font-size: 11.5px !important;
}

/* Dropdown menu — bigger */
.user-menu-item {
    font-size: 14.5px !important;
    padding: 11px 16px !important;
}

.user-dropdown-name {
    font-size: 15px !important;
}

.user-dropdown-role {
    font-size: 12px !important;
}

/* Alerts — bigger */
.alert {
    font-size: 14.5px !important;
    padding: 14px 18px !important;
}

/* Badges — slightly bigger */
.badge {
    font-size: 12.5px !important;
    padding: 5px 12px !important;
}

/* Stats */
.stat .num {
    font-size: clamp(28px, 4.2vw, 36px) !important;
}

.stat .label {
    font-size: 12.5px !important;
}

/* QR instructions */
.qr-instruction {
    font-size: 14px !important;
}

/* Small text like help text */
small {
    font-size: 12.5px !important;
}

/* Notifications */
.notif-title {
    font-size: 14px !important;
}

.notif-msg {
    font-size: 13px !important;
}

.notif-time {
    font-size: 12px !important;
}

/* Code text */
code {
    font-size: 13px !important;
}

/* ============================================
   MOBILE — Adjust for small screens
   ============================================ */
@media (max-width: 900px) {
    body {
        font-size: 14.5px !important;
    }

    h1 { font-size: 22px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 17px !important; }

    .table th,
    .table td {
        font-size: 13.5px !important;
        padding: 12px 14px !important;
    }

    .btn {
        font-size: 14px !important;
        padding: 10px 18px !important;
    }

    .sidebar-link {
        font-size: 14px !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px !important;
    }

    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 16px !important; }

    .table th,
    .table td {
        font-size: 13px !important;
        padding: 11px 12px !important;
    }

    .btn {
        font-size: 13.5px !important;
        padding: 10px 16px !important;
    }
}
/* ============================================
   GLOBAL TEXT SIZE — Bigger for readability
   ============================================ */

/* Base */
html {
    font-size: 16px;
}

body {
    font-size: 15px !important;
    line-height: 1.6;
}

/* Headings */
h1 { font-size: 28px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 20px !important; }
h4 { font-size: 17px !important; }

/* Tables — bigger */
.table th,
.table td {
    font-size: 15px !important;
    padding: 14px 16px !important;
}

.table th {
    font-size: 13px !important;
    letter-spacing: .8px;
}

/* Table code (asset numbers) */
.table code {
    font-size: 14px !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    font-size: 15px !important;
    padding: 12px 16px !important;
    min-height: 46px;
}

label {
    font-size: 14.5px !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    font-size: 15px !important;
    padding: 12px 22px !important;
    min-height: 46px;
}

/* Sidebar */
.sidebar-link {
    font-size: 15px !important;
    padding: 14px 22px !important;
}

.sidebar-section {
    font-size: 11.5px !important;
    padding: 18px 22px 8px;
}

.sidebar-user .user-name {
    font-size: 14.5px !important;
}

.sidebar-user .user-role {
    font-size: 11.5px !important;
}

.sidebar-brand a {
    font-size: 18px !important;
}

.sidebar-logout {
    font-size: 14.5px !important;
}

/* Top header */
.top-header-title {
    font-size: 18px !important;
}

.top-header-subtitle {
    font-size: 13.5px !important;
}

.top-header-user-name {
    font-size: 14.5px !important;
}

.top-header-user-role {
    font-size: 12px !important;
}

/* User dropdown */
.user-menu-item {
    font-size: 15px !important;
    padding: 12px 16px !important;
}

.user-dropdown-name {
    font-size: 15px !important;
}

.user-dropdown-role {
    font-size: 12px !important;
}

.user-dropdown {
    width: 280px !important;
}

/* Alerts */
.alert {
    font-size: 14.5px !important;
    padding: 14px 18px !important;
}

/* Badges */
.badge {
    font-size: 12.5px !important;
    padding: 4px 12px !important;
}

/* Stats */
.stat .num {
    font-size: 36px !important;
}

.stat .label {
    font-size: 13px !important;
}

/* QR / Instructions */
.qr-instruction {
    font-size: 14.5px !important;
}

/* Small help text */
small {
    font-size: 13px !important;
}

/* Section titles */
.sidebar-section {
    font-size: 11.5px !important;
}

/* Notifications */
.notif-title {
    font-size: 15px !important;
}

.notif-msg {
    font-size: 14px !important;
}

.notif-time {
    font-size: 12.5px !important;
}

.notif-header {
    font-size: 15px !important;
}

/* Code */
code {
    font-size: 13.5px !important;
}

/* Browse page specific */
.browse-overview-label {
    font-size: 11.5px !important;
}

.browse-overview-value {
    font-size: 18px !important;
}

.browse-overview-sub {
    font-size: 12.5px !important;
}

.browse-search-input {
    font-size: 16px !important;
}

.browse-search-info {
    font-size: 13px !important;
}

/* Sidebar summary (browse page) */
.sidebar-summary .count {
    font-size: 32px !important;
}

.sidebar-summary .label {
    font-size: 12.5px !important;
}

.sidebar-selected-item {
    font-size: 14px !important;
}

/* Section locked (browse page) */
.section-locked-input {
    font-size: 16px !important;
    padding: 12px 40px 12px 16px !important;
    min-height: 46px;
}

.section-note {
    font-size: 12.5px !important;
}

/* Footer */
.footer {
    font-size: 13px !important;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    body {
        font-size: 14.5px !important;
    }

    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }

    .table th,
    .table td {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }

    .btn {
        font-size: 14.5px !important;
        padding: 11px 18px !important;
    }

    .sidebar-link {
        font-size: 14.5px !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px !important;
    }

    h1 { font-size: 22px !important; }
    h2 { font-size: 19px !important; }
    h3 { font-size: 17px !important; }

    .table th,
    .table td {
        font-size: 13.5px !important;
        padding: 11px 12px !important;
    }

    .btn {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
}