/* =========================================================
   MAKTABAPRO - Library Management SaaS
   Design: "Karatasi ya Maktaba" - paper & book-cloth palette
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Palette: paper, book-cloth green, leather amber, gilt gold */
    --cream: #F4EFE3;
    --cream-deep: #ECE4D2;
    --paper: #FDFBF5;
    --paper-warm: #FAF6EB;
    --ink: #2C2A24;
    --ink-soft: #5B5648;
    --ink-faint: #8C8672;
    --border: #E2D9C2;
    --border-soft: #EDE6D4;

    --cloth-green: #5C7256;
    --cloth-green-dark: #46583F;
    --cloth-green-light: #EDF1E9;

    --leather: #A15A32;
    --leather-dark: #7F4526;
    --leather-light: #F6E9DD;

    --gilt: #B8935A;
    --gilt-light: #F5EEDF;

    --danger: #A24B42;
    --danger-light: #F7E7E3;
    --warn: #B9822E;
    --warn-light: #FAF0DC;
    --success: #5C7A52;
    --success-light: #EBF1E6;
    --info: #4A6B7A;
    --info-light: #E7F0F2;

    --shadow-sm: 0 1px 3px rgba(44, 42, 36, 0.06), 0 1px 2px rgba(44,42,36,0.04);
    --shadow-md: 0 4px 14px rgba(44, 42, 36, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 42, 36, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --sidebar-w: 264px;
    --topbar-h: 68px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0;
}

a { color: var(--cloth-green-dark); text-decoration: none; }
a:hover { color: var(--leather-dark); }

.mono { font-family: 'IBM Plex Mono', monospace; }

::selection { background: var(--gilt-light); color: var(--ink); }

/* Scrollbar - subtle */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #3E4C3A 0%, #46583F 55%, #3B4936 100%);
    display: flex; flex-direction: column;
    z-index: 100;
    box-shadow: 2px 0 18px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
}
.sidebar::before {
    /* subtle "book spine" texture ridge */
    content: '';
    position: absolute; top: 0; bottom: 0; left: 0; width: 6px;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 14px);
}

.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand .brand-mark {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gilt);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; color: #3E4C3A;
    flex-shrink: 0;
}
.sidebar-brand .brand-name { color: #F4EFE3; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
.sidebar-brand .brand-sub { color: rgba(244,239,227,0.55); font-size: 11.5px; margin-top: 1px; }

.sidebar-tenant {
    margin: 14px 18px; padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-tenant .tname { color: #F4EFE3; font-size: 13px; font-weight: 600; line-height: 1.3; }
.sidebar-tenant .tplan { color: var(--gilt); font-size: 11px; margin-top: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 14px 20px; }
.sidebar-section-label {
    color: rgba(244,239,227,0.4); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.09em; font-weight: 600; margin: 18px 10px 8px;
}
.sidebar-nav a.nav-link {
    display: flex; align-items: center; gap: 12px;
    color: rgba(244,239,227,0.78);
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 13.8px; font-weight: 500; margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
}
.sidebar-nav a.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.sidebar-nav a.nav-link:hover { background: rgba(255,255,255,0.08); color: #FDFBF5; }
.sidebar-nav a.nav-link.active {
    background: var(--gilt); color: #3E4C3A; font-weight: 600;
}
.sidebar-nav a.nav-link.active svg { opacity: 1; }
.nav-badge {
    margin-left: auto; background: var(--leather); color: #fff;
    font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}

.sidebar-footer-mini {
    padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(244,239,227,0.4); font-size: 11px;
}

.main-wrap { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h);
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.topbar-crumb { color: var(--ink-faint); font-size: 12.5px; margin-top: 1px; }
.sidebar-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); color: var(--ink);
}
.sidebar-toggle:hover { background: var(--cream-deep); }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 20px; padding: 8px 16px; width: 260px;
}
.topbar-search input {
    border: none; background: transparent; outline: none;
    font-size: 13.5px; width: 100%; color: var(--ink); font-family: 'Inter', sans-serif;
}
.topbar-search svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }

.topbar-icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--cream); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; color: var(--ink-soft);
}
.topbar-icon-btn:hover { background: var(--cream-deep); }
.topbar-icon-btn svg { width: 17px; height: 17px; }
.notif-dot {
    position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
    background: var(--leather); border-radius: 50%; border: 2px solid var(--paper);
}

.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 24px; }
.user-chip:hover { background: var(--cream); }
.avatar-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px; font-family: 'Fraunces', serif;
    flex-shrink: 0;
}
.user-chip .uname { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.user-chip .urole { font-size: 11px; color: var(--ink-faint); }

.page-content { padding: 26px 30px 50px; flex: 1; }

.app-footer {
    padding: 18px 30px; border-top: 1px solid var(--border);
    color: var(--ink-faint); font-size: 12.5px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.app-footer a { color: var(--ink-soft); }

/* =========================================================
   CARDS & STAT WIDGETS
   ========================================================= */
.card {
    background: var(--paper); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border-soft);
}
.card-header h3 { font-size: 16.5px; }
.card-body { padding: 20px 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat-card {
    background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 22px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card .stat-value { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; line-height: 1; }
.stat-card .stat-label { color: var(--ink-faint); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.stat-card .stat-trend { font-size: 11.5px; margin-top: 10px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-trend.flat { color: var(--ink-faint); }

.icon-bg-green { background: var(--cloth-green-light); color: var(--cloth-green-dark); }
.icon-bg-amber { background: var(--leather-light); color: var(--leather-dark); }
.icon-bg-gold  { background: var(--gilt-light); color: var(--gilt); }
.icon-bg-info  { background: var(--info-light); color: var(--info); }
.icon-bg-danger{ background: var(--danger-light); color: var(--danger); }

/* =========================================================
   TABLE (Excel-like)
   ========================================================= */
.table-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border-soft);
}
.table-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 9px 14px; min-width: 260px; flex: 1; max-width: 340px;
}
.table-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 13.5px; font-family: 'Inter', sans-serif; }
.table-search svg { width: 15px; height: 15px; color: var(--ink-faint); }

.excel-scroll { overflow-x: auto; }
table.excel-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.excel-table thead th {
    background: var(--cream-deep); color: var(--ink-soft);
    text-align: left; padding: 11px 16px; font-weight: 600; font-size: 11.5px;
    text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border); border-right: 1px solid var(--border-soft);
    white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
table.excel-table thead th:last-child { border-right: none; }
table.excel-table tbody td {
    padding: 11px 16px; border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft);
    color: var(--ink); vertical-align: middle;
}
table.excel-table tbody td:last-child { border-right: none; }
table.excel-table tbody tr:hover { background: var(--paper-warm); }
table.excel-table tbody tr:nth-child(even) { background: rgba(236, 228, 210, 0.25); }
table.excel-table tbody tr:nth-child(even):hover { background: var(--paper-warm); }
.row-index { color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; font-size: 12px; }

.table-empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.table-empty svg { width: 46px; height: 46px; margin-bottom: 12px; opacity: 0.4; }
.table-empty .empty-title { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink-soft); margin-bottom: 4px; }

.table-pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; gap: 10px;
}
.pagination-info { color: var(--ink-faint); font-size: 12.5px; }
.pagination-btns { display: flex; gap: 5px; }
.page-btn {
    min-width: 32px; height: 32px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--paper); color: var(--ink-soft);
    font-size: 12.5px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-weight: 600; padding: 0 8px;
}
.page-btn:hover:not(:disabled) { background: var(--cream-deep); }
.page-btn.active { background: var(--cloth-green); color: #fff; border-color: var(--cloth-green); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; transition: all 0.15s; font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--cloth-green); color: #fff; }
.btn-primary:hover { background: var(--cloth-green-dark); }
.btn-amber { background: var(--leather); color: #fff; }
.btn-amber:hover { background: var(--leather-dark); }
.btn-outline { background: var(--paper); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { background: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--cream); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8a3d35; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-icon { padding: 8px; width: 34px; height: 34px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

.action-icon-btn {
    width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
    background: var(--paper); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--ink-soft); margin-right: 4px;
}
.action-icon-btn svg { width: 14px; height: 14px; }
.action-icon-btn:hover { background: var(--cream); color: var(--ink); }
.action-icon-btn.danger:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-control, select.form-control, textarea.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--paper); font-size: 13.8px; color: var(--ink); font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--cloth-green); box-shadow: 0 0 0 3px var(--cloth-green-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

.input-icon-wrap { position: relative; }
.input-icon-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); }
.input-icon-wrap .form-control { padding-left: 40px; }

/* =========================================================
   BADGES
   ========================================================= */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-green .badge-dot { background: var(--success); }
.badge-amber { background: var(--warn-light); color: var(--warn); }
.badge-amber .badge-dot { background: var(--warn); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-red .badge-dot { background: var(--danger); }
.badge-gray { background: var(--cream-deep); color: var(--ink-faint); }
.badge-gray .badge-dot { background: var(--ink-faint); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-info .badge-dot { background: var(--info); }

/* =========================================================
   LOGIN / HOMEPAGE
   ========================================================= */
.auth-shell {
    min-height: 100vh; display: flex; background: var(--cream);
}
.auth-visual {
    flex: 1.1; background: linear-gradient(155deg, #46583F 0%, #3B4936 45%, #2E3A2A 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 52px 56px; position: relative; overflow: hidden; color: #F4EFE3;
}
.auth-visual::after {
    content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); pointer-events: none;
}
.auth-visual::before {
    content: ''; position: absolute; right: -60px; bottom: -220px; width: 420px; height: 420px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); pointer-events: none;
}
.auth-visual .brand { display: flex; align-items: center; gap: 12px; }
.auth-visual .brand-mark { width: 44px; height: 44px; border-radius: 11px; background: var(--gilt); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: #3E4C3A; }
.auth-visual .brand-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.auth-visual .headline { font-family: 'Fraunces', serif; font-size: 40px; line-height: 1.18; font-weight: 600; max-width: 480px; margin: 60px 0 18px; position: relative; z-index: 1; }
.auth-visual .sub { color: rgba(244,239,227,0.65); font-size: 14.5px; max-width: 420px; line-height: 1.6; position: relative; z-index: 1; }
.auth-visual .quote-mark { font-family: 'Fraunces', serif; font-size: 60px; color: var(--gilt); opacity: 0.55; line-height: 0.5; }
.auth-visual .foot-note { color: rgba(244,239,227,0.4); font-size: 12px; position: relative; z-index: 1; }

.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-box { width: 100%; max-width: 400px; }
.auth-form-box h2 { font-size: 27px; margin-bottom: 6px; }
.auth-form-box .lead { color: var(--ink-faint); font-size: 14px; margin-bottom: 30px; }
.auth-tabs { display: flex; gap: 6px; background: var(--cream-deep); padding: 4px; border-radius: 10px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-faint); cursor: pointer; }
.auth-tabs button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* =========================================================
   MODAL / DRAWER
   ========================================================= */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(44,42,36,0.45); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px);
}
.modal-overlay.show { display: flex; }
.modal-box { background: var(--paper); border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-box.modal-lg { max-width: 800px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.modal-head h3 { font-size: 18px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 10px; }

/* =========================================================
   ALERTS / TOASTS
   ========================================================= */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 13.5px; margin-bottom: 18px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-light); color: #3D5636; }
.alert-danger { background: var(--danger-light); color: #7A362F; }
.alert-warn { background: var(--warn-light); color: #8A611F; }
.alert-info { background: var(--info-light); color: #33505C; }

#toastHost { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast-item { background: var(--ink); color: var(--paper); padding: 13px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 240px; animation: toastIn 0.25s ease; }
.toast-item.success { background: #3D5636; }
.toast-item.danger { background: #7A362F; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   EMPTY / PLACEHOLDER STATES (faded)
   ========================================================= */
.placeholder-block { color: var(--ink-faint); }
.skeleton { background: linear-gradient(90deg, var(--cream-deep) 25%, var(--border-soft) 50%, var(--cream-deep) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =========================================================
   MISC
   ========================================================= */
.divider-dotted { border: none; border-top: 1.5px dotted var(--border); margin: 20px 0; }
.text-faint { color: var(--ink-faint); }
.text-soft { color: var(--ink-soft); }
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}

.progress-bar { height: 7px; background: var(--cream-deep); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--cloth-green); border-radius: 10px; }

.tab-pills { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-pills a { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-pills a.active { color: var(--cloth-green-dark); border-color: var(--cloth-green); }

/* Responsive */
@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .topbar-search { display: none; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .auth-visual { display: none; }
    .page-content { padding: 18px 16px 40px; }
    .topbar { padding: 0 16px; }
}
