@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --app-bg: #eef4f7;
    --app-surface: rgba(255, 255, 255, 0.65);
    --app-surface-strong: rgba(255, 255, 255, 0.95);
    --app-text: #0f172a;
    --app-muted: #64748b;
    --app-border: rgba(255, 255, 255, 0.45);
    --app-primary: #0f766e;
    --app-primary-dark: #134e4a;
    --app-secondary: #1d4ed8;
    --app-accent: #ea580c;
    --app-success: #15803d;
    --app-warning: #b45309;
    --app-danger: #b91c1c;
    --sidebar-width: 292px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 15px 45px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 20px 60px rgba(15, 23, 42, 0.1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up,
.metric-card,
.chart-card,
.table-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.row > div:nth-child(1) > .metric-card { animation-delay: 0.05s; }
.row > div:nth-child(2) > .metric-card { animation-delay: 0.15s; }
.row > div:nth-child(3) > .metric-card { animation-delay: 0.25s; }
.row > div:nth-child(4) > .metric-card { animation-delay: 0.35s; }

.row > div:nth-child(1) > .chart-card, .row > div:nth-child(1) > .table-card { animation-delay: 0.2s; }
.row > div:nth-child(2) > .chart-card, .row > div:nth-child(2) > .table-card { animation-delay: 0.3s; }

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

@keyframes appBgGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.app-body {
    font-family: 'Manrope', sans-serif;
    color: var(--app-text);
    background: linear-gradient(-45deg, #eef4f7, #f8fbfd, #e0f2fe, #f0fdf4);
    background-size: 300% 300%;
    animation: appBgGradient 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

body.app-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 75%);
    opacity: 0.6;
}

body,
input,
select,
textarea,
button {
    font-family: 'Manrope', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.sidebar-brand-title,
.metric-value,
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
}

.min-w-0 {
    min-width: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.2);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.25rem;
    overflow-x: hidden;
}

.app-offcanvas {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    color: #e2e8f0;
    border-right: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.75rem 1.25rem;
}

.sidebar-brand-mark,
.avatar-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px rgba(20, 184, 166, 0.32);
    flex-shrink: 0;
}

.sidebar-brand-mark {
    font-size: 1.1rem;
}

.sidebar-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-brand-subtitle {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.84rem;
}

.sidebar-scroller {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

.sidebar-group {
    margin-bottom: 1.15rem;
}

.sidebar-group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(226, 232, 240, 0.45);
    margin: 0 0 0.65rem 0.35rem;
}

.sidebar-nav {
    gap: 0.38rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(226, 232, 240, 0.84);
    padding: 0.78rem 0.95rem;
    border-radius: 16px;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 1rem;
}

.sidebar-icon {
    transition: color var(--transition), transform var(--transition);
}
.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    transform: scale(1.15);
}

/* Colorful sidebar icon palette with gradients */
.text-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-amber { background: linear-gradient(135deg, #f59e0b, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-emerald { background: linear-gradient(135deg, #10b981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-orange { background: linear-gradient(135deg, #f97316, #ea580c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-pink { background: linear-gradient(135deg, #ec4899, #db2777); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-sky { background: linear-gradient(135deg, #0ea5e9, #0284c7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-lime { background: linear-gradient(135deg, #84cc16, #65a30d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-violet { background: linear-gradient(135deg, #a855f7, #9333ea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-fuchsia { background: linear-gradient(135deg, #d946ef, #c026d3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-green { background: linear-gradient(135deg, #22c55e, #16a34a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-red { background: linear-gradient(135deg, #ef4444, #dc2626); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    -webkit-text-fill-color: #fff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    transform: translateX(4px);
}

.sidebar-footer-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.35rem;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 253, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.page-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.page-title {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem);
    margin: 0;
    color: var(--app-text);
}

.page-subtitle {
    color: var(--app-muted);
    font-size: 0.95rem;
}

.topbar-chip,
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 999px;
}

.topbar-chip {
    padding: 0.7rem 1rem;
    background: rgba(15, 118, 110, 0.08);
    color: var(--app-primary-dark);
    font-weight: 600;
}

.user-chip {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.55rem 0.85rem;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.btn-white {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.app-content {
    position: relative;
}

.app-footer {
    padding: 0.2rem 0.15rem 0.4rem;
}

.page-section,
.panel-card,
.metric-card,
.chart-card,
.table-card,
.surface-card,
.auth-card,
.auth-panel,
.auth-preview {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform var(--transition), box-shadow var(--transition);
}

.page-section:hover,
.panel-card:hover,
.metric-card:hover,
.chart-card:hover,
.table-card:hover,
.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.panel-card,
.chart-card,
.table-card,
.surface-card {
    padding: 1.15rem;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    min-height: 145px;
}

.metric-card::after {
    content: '';
    position: absolute;
    inset: auto -1rem -1rem auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    pointer-events: none;
}

.metric-card.primary {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(6, 95, 70, 0.94));
    color: #fff;
}

.metric-card.secondary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(30, 64, 175, 0.94));
    color: #fff;
}

.metric-card.warning {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.95), rgba(180, 83, 9, 0.93));
    color: #fff;
}

.metric-card.neutral {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(51, 65, 85, 0.94));
    color: #fff;
}

.metric-card.accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(37, 99, 235, 0.94));
    color: #fff;
}

.metric-card.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(185, 28, 28, 0.94));
    color: #fff;
}

.metric-card.info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(14, 116, 144, 0.94));
    color: #fff;
}

.metric-card.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.96), rgba(21, 128, 61, 0.94));
    color: #fff;
}

.metric-card.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(109, 40, 217, 0.94));
    color: #fff;
}

.metric-card.teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.96), rgba(15, 118, 110, 0.94));
    color: #fff;
}

.metric-card.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(217, 119, 6, 0.94));
    color: #fff;
}

.metric-card.rose {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(190, 18, 60, 0.94));
    color: #fff;
}

.metric-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    opacity: 0.82;
}

.metric-value {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1;
    margin-top: 0.45rem;
    margin-bottom: 0.35rem;
}

.metric-footnote {
    color: inherit;
    opacity: 0.9;
    font-size: 0.92rem;
}

.metric-card .metric-icon,
.widget-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.metric-meta {
    color: rgba(255, 255, 255, 0.82);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 40%, #0f766e 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.hero-panel::before,
.hero-panel::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-panel::before {
    width: 260px;
    height: 260px;
    right: -60px;
    top: -80px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
}

.hero-panel::after {
    width: 180px;
    height: 180px;
    right: 130px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
}

.hero-title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    margin-bottom: 0.45rem;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.82);
    max-width: 62ch;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.soft-grid {
    display: grid;
    gap: 1rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.section-subtitle {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.table-card {
    overflow: hidden;
}

.table thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #475569;
    background: rgba(226, 232, 240, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.table tbody tr {
    transition: background var(--transition), transform var(--transition);
}

.table tbody tr:hover {
    background: rgba(15, 118, 110, 0.03);
}

.table td,
.table th {
    vertical-align: middle;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.28);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.form-label {
    font-weight: 600;
    color: #334155;
}

.input-group-text {
    background: rgba(226, 232, 240, 0.75);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: #0b5f59;
    --bs-btn-hover-border-color: #0b5f59;
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: rgba(15, 118, 110, 0.4);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.16);
}

.btn-light:hover {
    background: #fff;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.15) !important;
}

.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.18) !important;
}

.bg-secondary-subtle {
    background-color: rgba(100, 116, 139, 0.14) !important;
}

.text-success-emphasis {
    color: #047857 !important;
}

.text-danger-emphasis {
    color: #b91c1c !important;
}

.text-warning-emphasis {
    color: #b45309 !important;
}

.text-secondary-emphasis {
    color: #475569 !important;
}

.chart-card {
    min-height: 100%;
}

.chart-wrap {
    position: relative;
    min-height: 320px;
}

.chart-wrap canvas {
    max-height: 320px;
}

.list-group-item {
    border-color: rgba(148, 163, 184, 0.12);
}

.progress {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.progress-bar {
    border-radius: 999px;
}

.auth-shell {
    min-height: 100vh;
    padding: 1rem;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.16), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

.auth-grid {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.3rem;
}

.auth-preview,
.auth-card {
    padding: 1.5rem;
}

.auth-preview {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 35%, #0f766e 100%);
    color: #fff;
    min-height: 100%;
}

.auth-preview::before {
    content: '';
    position: absolute;
    inset: auto -100px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 72%);
}

.auth-preview::after {
    content: '';
    position: absolute;
    inset: -80px auto auto -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 72%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.auth-form-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.45rem;
}

.auth-form-copy {
    color: var(--app-muted);
    margin-bottom: 1.4rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.auth-feature-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.auth-feature-list .icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.auth-note {
    font-size: 0.92rem;
    color: rgba(15, 23, 42, 0.75);
}

.line-items-table thead th,
.line-items-table tbody td {
    white-space: nowrap;
}

.line-items-table .form-control,
.line-items-table .form-select {
    min-width: 120px;
}

.line-items-table .js-line-total {
    font-weight: 700;
}

.transaction-summary {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 24px;
    padding: 1rem;
}

.transaction-summary .summary-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.empty-state {
    padding: 2rem 1.25rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
}

/* Auth Layout */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-grid {
    width: 100%;
    max-width: 1200px;
    background: var(--app-surface-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--app-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-preview {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}

.auth-card {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-feature-list li:last-child {
    margin-bottom: 0;
}

.auth-feature-list .icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.page-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--app-primary);
    margin-bottom: 0.25rem;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--app-text);
}

@media (max-width: 1199.98px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .app-main {
        min-height: 100vh;
    }

    .app-topbar {
        padding: 1rem;
    }

    .panel-card,
    .chart-card,
    .table-card,
    .surface-card,
    .metric-card,
    .hero-panel,
    .auth-card,
    .auth-preview {
        border-radius: 22px;
    }
}

@media (max-width: 767.98px) {
    .app-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .metric-card {
        min-height: 132px;
    }

    .metric-value {
        font-size: 1.9rem;
    }

    .panel-card,
    .chart-card,
    .table-card,
    .surface-card,
    .metric-card,
    .hero-panel,
    .auth-card,
    .auth-preview {
        padding: 1rem;
    }

    .hero-panel {
        padding: 1.1rem;
    }

    .auth-shell {
        padding: 0.5rem;
    }

    .auth-grid {
        gap: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .topbar-chip {
        width: 100%;
        justify-content: center;
    }

    .user-chip {
        width: 100%;
        justify-content: space-between;
    }

    .btn-icon {
        width: 2.55rem;
        height: 2.55rem;
    }

    .sidebar-footer-card {
        padding: 0.9rem;
    }
}


/* Sidebar Collapse and Search */
.app-sidebar {
    transition: width 0.3s ease;
}
.app-sidebar.collapsed {
    width: 80px;
    min-width: 80px;
}
.app-sidebar.collapsed .sidebar-brand-title,
.app-sidebar.collapsed .sidebar-brand-subtitle,
.app-sidebar.collapsed .sidebar-group-label,
.app-sidebar.collapsed .sidebar-link span,
.app-sidebar.collapsed .sidebar-search,
.app-sidebar.collapsed .sidebar-brand-mark,
.app-sidebar.collapsed .sidebar-footer-card .min-w-0 {
    display: none !important;
}
.app-sidebar.collapsed .sidebar-scroller {
    overflow-y: hidden !important;
}
.app-sidebar.collapsed .sidebar-scroller::-webkit-scrollbar {
    display: none;
}
.app-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 0.75rem;
}
.app-sidebar.collapsed .sidebar-link i {
    margin-right: 0 !important;
    font-size: 1.25rem;
}
.app-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 1.25rem 0;
}
.app-sidebar.collapsed .sidebar-toggle-btn i::before {
    content: "\F285"; /* bi-chevron-right */
}
.app-sidebar.collapsed .sidebar-footer-card {
    justify-content: center;
}
.app-sidebar.collapsed .sidebar-footer-card .btn {
    display: none;
}
.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
