/* Global layout (v2) */
:root { font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

.layout { min-height: 100vh; position: relative; }

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: -1.5rem;
    z-index: 101;
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    align-items: center;
    justify-content: right;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--accent);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    font-size: 18px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Don't block clicks when inactive */
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Block clicks when sidebar is open */
}

.sidebar { 
    background: var(--sidebar); 
    color: var(--sidebar-foreground); 
    display: flex; 
    flex-direction: column; 
    padding: 1.25rem; 
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: clamp(220px, 18vw, 320px);
    overflow: hidden;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Mobile sidebar behavior */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 102; /* Above sidebar and overlay */
        pointer-events: auto; /* Ensure button is always clickable */
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay:not(.active) {
        pointer-events: none !important; /* Ensure inactive overlay doesn't block clicks */
    }
    
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
        z-index: 100; /* Above overlay */
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem;
        padding-top: 4rem; /* Space for mobile menu button */
        z-index: 1; /* Clickable when sidebar is closed */
        position: relative; /* Ensure z-index works */
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0.75rem;
        padding-top: 4rem;
    }
}

.sidebar .brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-shrink: 0; }
.sidebar .brand .logo { width: 40px; height: 40px; object-fit: contain; }
.sidebar nav { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.sidebar .nav-section { margin-top: 1.25rem; }
.sidebar .nav-section:first-child { margin-top: 0; }
.sidebar .nav-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-foreground);
    opacity: 0.6;
    padding: 0.5rem 0.75rem 0.4rem 0.75rem;
    margin-bottom: 0.25rem;
}
.sidebar a { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.6rem 0.75rem; 
    border-radius: 0.5rem; 
    color: var(--sidebar-foreground); 
    text-decoration: none; 
    margin-bottom: 0.25rem; 
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}
.sidebar a:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.sidebar a.active { background: var(--sidebar-primary); color: var(--sidebar-primary-foreground); }
.sidebar .footer { 
    flex-shrink: 0; 
    margin-top: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 0.75rem; 
    padding-top: 1rem; 
    border-top: 1px solid var(--sidebar-border); 
    padding-bottom: 1.5rem;
}
.sidebar .user { display: flex; align-items: center; gap: 0.75rem; }
.sidebar .avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-xs); overflow: hidden; padding: 2px; }
.sidebar .avatar-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
}

.content { 
    background: var(--card); 
    color: var(--card-foreground); 
    padding: 1.5rem 1.75rem; 
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Ensure content is above overlay when sidebar is closed */
}

/* Desktop: add sidebar margin when sidebar is visible */
@media (min-width: 1025px) {
    .content {
    margin-left: calc(clamp(220px, 18vw, 320px) + 1.5rem);
        width: calc(100% - clamp(220px, 18vw, 320px) - 1.5rem);
}
}
.card {
    background: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    box-sizing: border-box;
}

/* Buttons + form controls */
button, select, input { font-family: inherit; box-sizing: border-box; max-width: 100%; }
.btn { 
    padding: .7rem .9rem; 
    border-radius: var(--radius); 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: var(--shadow); 
    transition: filter .15s ease, transform .06s ease; 
    border: none; 
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ring); }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 90%, transparent); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--primary); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in oklch, var(--secondary) 80%, transparent); }
.btn-success { background: #10b981; color: #ecfdf5; }
.btn-success:hover { background: color-mix(in oklch, #10b981 85%, transparent); }
.btn-danger { background: #ef4444; color: #fef2f2; }
.btn-danger:hover { background: color-mix(in oklch, #ef4444 85%, transparent); }
.btn-danger:focus-visible { box-shadow: 0 0 0 3px #ef4444; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: .4rem .7rem; font-size: 12px; border-radius: calc(var(--radius) - 2px); }
select { padding: .4rem .7rem; border: 1px solid var(--input); border-radius: var(--radius); background: var(--card); color: var(--card-foreground); }

/* Icon-only action buttons (shared across v2) */
.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s ease, transform .06s ease, filter .15s ease;
    padding: 0;
}
.icon-btn:hover { background: var(--accent); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn--primary { color: var(--primary); }
.icon-btn--success { color: #10b981; }
.icon-btn--warning { color: #f59e0b; }
.icon-btn--danger { color: #dc2626; }
.icon-btn--muted { color: var(--muted-foreground); }

/* Responsive grid utilities */
.responsive-grid-1 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.responsive-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.responsive-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.responsive-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* Responsive grid breakpoints */
@media (max-width: 1024px) {
    .responsive-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .responsive-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .responsive-grid-4,
    .responsive-grid-3,
    .responsive-grid-2 { grid-template-columns: 1fr; }
}

/* Dashboard specific responsive grids */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-charts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

@media (max-width: 768px) {
    .dashboard-charts-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Dashboard responsive improvements */
@media (max-width: 640px) {
    /* Stat cards - reduce padding and font sizes on mobile */
    .dashboard-stats-grid .card {
        padding: 1rem !important;
    }
    
    .dashboard-stats-grid .card > div:first-child > div:first-child {
        font-size: 11px !important;
    }
    
    .dashboard-stats-grid .card > div:first-child > div:nth-child(2) {
        font-size: 24px !important;
        line-height: 1.1 !important;
    }
    
    .dashboard-stats-grid .card > div:last-child i {
        font-size: 24px !important;
    }
    
    .dashboard-stats-grid .badge {
        font-size: 10px !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .dashboard-stats-grid .badge i {
        font-size: 8px !important;
        margin-right: 3px !important;
    }
    
    /* Chart cards - responsive padding and heights */
    .dashboard-charts-grid .card,
    .dashboard-charts-grid-2 .card {
        padding: 0.75rem !important;
    }
    
    .dashboard-charts-grid .card > div[style*="height:220px"],
    .dashboard-charts-grid .card > div[style*="height:240px"],
    .dashboard-charts-grid-2 .card > div[style*="height:200px"] {
        height: 180px !important;
    }
    
    /* Chart control buttons - smaller on mobile */
    .dashboard-charts-grid .btn-sm,
    .dashboard-charts-grid-2 .btn-sm {
        font-size: 11px !important;
        padding: 0.35rem 0.5rem !important;
    }
    
    /* Chart headers - smaller text */
    .dashboard-charts-grid .card > div:first-child > div:first-child,
    .dashboard-charts-grid-2 .card > div:first-child {
        font-size: 14px !important;
    }
    
    .dashboard-charts-grid .card > div:first-child > div:first-child > div:first-child {
        font-size: 13px !important;
    }
    
    .dashboard-charts-grid .card > div:first-child > div:first-child > div:last-child {
        font-size: 11px !important;
    }
    
    /* Recent Users/Tokens sections */
    .dashboard-charts-grid-2 .card > div:first-child {
        font-size: 14px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .dashboard-charts-grid-2 .card a {
        font-size: 11px !important;
    }
}

/* Tablet adjustments for dashboard */
@media (min-width: 641px) and (max-width: 1024px) {
    .dashboard-stats-grid .card {
        padding: 1.1rem !important;
    }
    
    .dashboard-stats-grid .card > div:first-child > div:nth-child(2) {
        font-size: 26px !important;
    }
    
    .dashboard-stats-grid .card > div:last-child i {
        font-size: 28px !important;
    }
    
    .dashboard-charts-grid .card > div[style*="height:220px"],
    .dashboard-charts-grid .card > div[style*="height:240px"] {
        height: 200px !important;
    }
}

/* Filters grid (v2 forms) */
.filters-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: .75rem; 
    align-items: end; 
}

@media (max-width: 640px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Users page specific layout to match 4-column toolbar */
.filters-grid-users { 
    display: grid; 
    grid-template-columns: 1fr 220px 220px 160px; 
    gap: .75rem; 
    align-items: end; 
}
.filters-grid-users > * { min-width: 0; }

@media (max-width: 1024px) { 
    .filters-grid-users { 
        grid-template-columns: 1fr 1fr; 
    } 
}

@media (max-width: 640px) { 
    .filters-grid-users { 
        grid-template-columns: 1fr; 
    } 
}

/* Responsive table wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-wrapper table {
    min-width: 600px; /* Minimum width before scrolling kicks in */
    width: 100%;
}

@media (max-width: 640px) {
    .table-wrapper table {
        min-width: 800px; /* Wider minimum on mobile to show more columns */
    }
    
    .table-wrapper table th,
    .table-wrapper table td {
        font-size: 11px;
        padding: 0.5rem 0.6rem;
    }
}

/* Responsive page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header h1 {
        font-size: 20px !important;
    }
    
    .page-header > div {
        width: 100%;
    }
    
    .page-header select,
    .page-header button {
        width: 100%;
    }
}

/* Login page */
.login-shell { 
    width: 100%; 
    max-width: 440px; 
    position: relative; 
    box-sizing: border-box;
}
.login-card { 
    width: 100%; 
    background: var(--card); 
    color: var(--card-foreground); 
    border: 1px solid var(--border); 
    border-radius: calc(var(--radius) + 4px); 
    box-shadow: var(--shadow-xl); 
    padding: 2.25rem; 
    backdrop-filter: blur(6px); 
    overflow: hidden; 
    box-sizing: border-box;
}
.login-bg { 
    margin: 0; 
    min-height: 100vh; 
    background: radial-gradient(1200px 600px at 10% -10%, var(--sidebar) 0%, transparent 60%), radial-gradient(1000px 500px at 110% 110%, var(--accent) 0%, transparent 60%), var(--background); 
    color: var(--foreground); 
    display: grid; 
    place-items: center; 
    padding: 1.25rem; 
    box-sizing: border-box;
}
.login-headline { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 0 1.25rem 0; 
}
.login-headline h2 { 
    margin: 0; 
    font-weight: 800; 
    letter-spacing: .01em; 
    font-size: 28px; 
}
.login-field { 
    position: relative; 
}
.login-field input { 
    width: 100%; 
    box-sizing: border-box; 
    padding: .9rem 1rem .9rem 2.6rem; 
    border: 1px solid var(--input); 
    border-radius: calc(var(--radius) + 2px); 
    background: var(--card); 
    color: var(--card-foreground); 
    transition: box-shadow .15s, border-color .15s; 
    font-size: 15px; 
}
.login-field input:focus { 
    outline: 0; 
    border-color: var(--ring); 
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 20%, transparent); 
}
.login-field .icon { 
    position: absolute; 
    left: .65rem; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--muted-foreground); 
    font-size: 14px; 
}
.login-support { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 1rem; 
    flex-wrap: wrap; 
    gap: 0.75rem; 
}
.login-support label { 
    display: flex; 
    align-items: center; 
    gap: .5rem; 
    font-size: 13px; 
    cursor: pointer; 
}
.login-support a { 
    color: var(--sidebar-primary); 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600; 
    white-space: nowrap; 
}
.login-support a:hover { 
    text-decoration: underline; 
}
.login-footer-note { 
    text-align: center; 
    margin-top: 1.25rem; 
    font-size: 12px; 
    color: var(--muted-foreground); 
}
.login-hover-card { 
    position: absolute; 
    inset: -8px; 
    border-radius: calc(var(--radius) + 6px); 
    background: linear-gradient(180deg, color-mix(in oklch, var(--ring) 18%, transparent), transparent); 
    z-index: -1; 
    filter: blur(14px); 
    opacity: .4; 
}

.login-form-grid {
    display: grid;
    gap: 1.1rem;
}

.login-submit-btn {
    width: 100%;
    font-size: 15px;
    border-radius: calc(var(--radius) + 4px);
    margin-top: 0.5rem;
}

.login-support input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: oklch(0.5854 0.2041 277.1173);
    flex-shrink: 0;
}

/* Toast notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal styles */
.modal,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .modal,
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 1rem;
        max-height: calc(100vh - 2rem);
        border-radius: var(--radius);
    }
}

.modal-content input,
.modal-content textarea,
.modal-content select,
.modal-content button {
    box-sizing: border-box;
    max-width: 100%;
}

/* Responsive button groups */
.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .btn-group {
        width: 100%;
    }
    
    .btn-group button,
    .btn-group select {
        flex: 1;
        min-width: 0;
    }
}

/* Toast container responsive */
@media (max-width: 640px) {
    #toast-container-top-right,
    #toast-container-bottom-right {
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Login page responsive */
@media (max-width: 640px) {
    .login-bg {
        padding: 1rem;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .login-shell {
        max-width: 100%;
        width: 100%;
    }
    
    .login-card {
        padding: 1.5rem;
        border-radius: var(--radius);
    }
    
    .login-headline {
        margin-bottom: 1rem;
    }
    
    .login-headline h2 {
        font-size: 24px;
    }
    
    .login-field input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.85rem 1rem 0.85rem 2.5rem;
    }
    
    .login-support {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .login-support label {
        width: 100%;
    }
    
    .login-support a {
        width: 100%;
        text-align: left;
    }
    
    .login-footer-note {
        font-size: 11px;
        margin-top: 1rem;
    }
    
    .login-hover-card {
        inset: -4px;
    }
}

@media (max-width: 375px) {
    .login-bg {
        padding: 0.75rem;
        padding-top: 1.5rem;
    }
    
    .login-card {
        padding: 1.25rem;
    }
    
    .login-headline h2 {
        font-size: 22px;
    }
    
    .login-field input {
        padding: 0.8rem 0.9rem 0.8rem 2.4rem;
        font-size: 16px;
    }
    
    .login-field .icon {
        left: 0.6rem;
        font-size: 13px;
    }
    
    .login-form-grid {
        gap: 1rem;
    }
    
    .login-submit-btn {
        font-size: 14px;
        padding: 0.85rem 1rem;
    }
}

/* Ensure login form doesn't overflow on any screen */
.login-form-grid {
    width: 100%;
    box-sizing: border-box;
}

.login-form-grid input,
.login-form-grid button {
    box-sizing: border-box;
}

/* Ensure form controls stay within cards */
.card input,
.card select,
.card textarea {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* Responsive card content */
.card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure cards with tables handle overflow properly */
.card > .table-wrapper {
    margin: -1.25rem;
    padding: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Legacy support: ensure cards with overflow:auto work with table-wrapper */
.card[style*="overflow:auto"] {
    overflow: visible;
}

/* Responsive pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .pagination {
        justify-content: center;
    }
    
    .pagination button,
    .pagination select {
        font-size: 12px;
        padding: 0.4rem 0.6rem;
    }
}

/* Responsive modal content grids (for dynamically generated content) */
.modal-content [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .modal-content [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .modal-content [style*="grid-template-columns: repeat(3, 1fr)"],
    .modal-content [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Responsive device report cards in modals */
    .modal-content [style*="display:flex"][style*="justify-content:space-between"] {
        flex-wrap: wrap !important;
    }
    
    .modal-content [style*="flex-wrap:nowrap"] {
        flex-wrap: wrap !important;
    }
    
    /* Balance adjustment buttons */
    .modal-content .btn-sm {
        font-size: 11px !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    /* Modal button groups */
    .modal-content [style*="display:flex"][style*="justify-content:flex-end"] {
        flex-direction: column !important;
    }
    
    .modal-content [style*="display:flex"][style*="justify-content:flex-end"] button {
        width: 100% !important;
    }
}

/* Responsive typography */
h1 {
    font-size: 24px;
}

@media (max-width: 640px) {
    h1 {
        font-size: 20px;
    }
}

/* Responsive chart containers */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Ensure buttons wrap on mobile */
@media (max-width: 640px) {
    .btn-sm {
        font-size: 11px;
        padding: 0.35rem 0.6rem;
    }
}

/* Utility text classes (to match v1 naming) */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.font-medium { font-weight: 600; }
.text-gray-500 { color: var(--muted-foreground); }
.text-gray-900 { color: var(--foreground); }


