/* ---------------------------------------------------
   Pinky 3.0 - Statistics Dashboard CSS
   Dark Neon Theme with Modern UI
--------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

/* ----- Theme Variables ----- */
:root {
    /* Background Colors */
    --bg-main: #050309;
    --bg-main-2: #080213;
    --bg-card: #12091c;
    --bg-card-soft: #190b27;
    --bg-panel: #140a20;
    --bg-gradient: linear-gradient(135deg, #050309 0%, #020007 40%, #050309 100%);
    
    /* Border Colors */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 57, 135, 0.6);
    --border-primary: rgba(255, 46, 146, 0.4);
    
    /* Primary Colors */
    --primary: #ff2e92;
    --primary-dark: #ff1a80;
    --primary-soft: rgba(255, 46, 146, 0.15);
    --primary-glow: 0 0 22px rgba(255, 46, 146, 0.6);
    --primary-gradient: linear-gradient(135deg, var(--primary), #ff63b4);
    
    /* Secondary Colors */
    --secondary: #19ffa3;
    --secondary-soft: rgba(25, 255, 163, 0.18);
    --secondary-gradient: linear-gradient(135deg, var(--secondary), #2dffb9);
    
    /* Text Colors */
    --text-main: #f9fafb;
    --text-soft: #9ca3af;
    --text-faint: #6b7280;
    --text-dark: #111827;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f97373;
    --info: #3b82f6;
    
    /* UI Elements */
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.9);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.95);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition-fast: 170ms ease-out;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Typography */
    --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Mono", "Segoe UI Mono", monospace;
}

/* ----- Global Styles ----- */
body {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 0% 0%, rgba(59, 12, 105, 0.8) 0, transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(255, 46, 146, 0.3) 0, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(36, 11, 54, 0.8) 0, transparent 60%),
        var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light {
    /* Additional styling for light mode if needed */
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ----- Login Page Styles ----- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 46, 146, 0.1) 0, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(25, 255, 163, 0.1) 0, transparent 40%),
        var(--bg-gradient);
}

.auth-card {
    background: radial-gradient(circle at top, #251138 0, #120818 50%, #08020f 100%);
    border-radius: var(--radius-xl);
    padding: 40px 35px;
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--border-strong);
    box-shadow: 
        var(--primary-glow),
        var(--shadow-soft),
        0 0 100px rgba(255, 46, 146, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(255, 46, 146, 0.22), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-title::before {
    content: "P";
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #ffe0f1 0, #ff2e92 40%, #b10b5c 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 46, 146, 0.9);
    flex-shrink: 0;
}

.app-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.small-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-faint);
    text-align: center;
}

/* ----- Form Elements ----- */
.auth-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 6px;
    display: block;
}

.field-input {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-main);
    transition: all var(--transition-fast);
    font-family: var(--font-main);
}

.field-input::placeholder {
    color: var(--text-faint);
}

.field-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 
        0 0 0 2px rgba(255, 46, 146, 0.3),
        inset 0 0 20px rgba(255, 46, 146, 0.1);
    transform: translateY(-2px);
}

.field-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ----- Buttons ----- */
.btn-primary,
.btn-secondary {
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 
        var(--shadow-medium),
        var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 46, 146, 0.8);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* ----- Alerts ----- */
.alert {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.7);
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.7);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.7);
}

/* ----- Dashboard Layout ----- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(8, 0, 20, 0.96), rgba(19, 3, 37, 0.96));
    border-bottom: 1px solid rgba(255, 46, 146, 0.35);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar .app-title {
    font-size: 1.3rem;
    text-transform: none;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(25, 255, 163, 0.45);
    background: rgba(10, 148, 98, 0.18);
    color: #a5f3fc;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.welcome {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ----- Dashboard Sections ----- */
.dashboard-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.dashboard-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.section-title {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-strong);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: var(--radius-pill);
}

/* ----- Filters Section ----- */
.filters-card {
    background: 
        radial-gradient(circle at top left, rgba(255, 46, 146, 0.25) 0, transparent 55%),
        radial-gradient(circle at bottom right, rgba(25, 255, 163, 0.18) 0, transparent 60%),
        linear-gradient(135deg, #13071f 0, #06010d 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.filters-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 46, 146, 0.05) 0, transparent 70%);
    pointer-events: none;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.filters-hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ----- Quick Stats ----- */
.quick-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-stat {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.quick-stat:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-1px);
}

.quick-stat.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 46, 146, 0.3);
}

/* ----- Metrics Grid ----- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-medium);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-label {
    color: var(--text-soft);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0.5rem 0;
    line-height: 1;
}

.metric-value.profit-positive {
    color: var(--success);
}

.metric-value.profit-negative {
    color: var(--danger);
}

.metric-card small {
    display: block;
    color: var(--text-faint);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ----- Chart Grid ----- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    background: var(--bg-panel);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
}

.panel:hover {
    border-color: rgba(255, 46, 146, 0.4);
    box-shadow: var(--shadow-large);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.pill {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-soft);
    white-space: nowrap;
}

.chart-container {
    height: 300px;
    width: 100%;
    position: relative;
}

/* ----- Tables ----- */
.table-wrapper {
    margin-top: 1rem;
    overflow: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--text-main);
    min-width: 800px;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(255, 46, 146, 0.35), rgba(11, 6, 20, 0.9));
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-strong);
    text-align: right;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
    text-align: right;
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

.data-table tbody tr:hover {
    background: rgba(255, 46, 146, 0.14);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ----- Loading States ----- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 3, 9, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid transparent;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 24px;
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 500;
}

/* ----- Floating Buttons ----- */
.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 
        var(--primary-glow),
        var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 0 30px rgba(255, 46, 146, 0.8),
        var(--shadow-medium);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn i {
    font-size: 1.3rem;
}

#clearCacheBtn {
    bottom: 100px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

#clearCacheBtn:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* ----- Animations ----- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 46, 146, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(255, 46, 146, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 46, 146, 0); 
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- Data Update Animation ----- */
.data-update {
    animation: fadeIn 0.5s ease;
}

/* ----- Filter Active State ----- */
.filter-active {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    animation: pulse 2s infinite;
}

/* ----- Status Indicators ----- */
.ftd-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    margin-right: 6px;
    vertical-align: middle;
}

.refill-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b5cf6;
    margin-right: 6px;
    vertical-align: middle;
}

.percentage {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ----- Chart Customization ----- */
.chart-tooltip {
    background: rgba(18, 9, 28, 0.95) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 12px !important;
}

.chart-tooltip .label {
    color: var(--text-soft) !important;
    font-size: 0.9rem !important;
}

.chart-tooltip .value {
    color: var(--text-main) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* ----- Utility Classes ----- */
.full-width {
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* ----- Responsive Design ----- */
@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .page {
        padding: 16px;
    }
    
    .dashboard-section {
        padding: 1.25rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .refresh-btn,
    #clearCacheBtn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    #clearCacheBtn {
        bottom: 80px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .filters-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .quick-stats {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .quick-stat {
        flex-shrink: 0;
    }
    
    .table-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ----- Print Styles ----- */
@media print {
    .refresh-btn,
    #clearCacheBtn,
    .topbar-right,
    .filters-card,
    .quick-stats {
        display: none !important;
    }
    
    .dashboard-section {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .metric-card,
    .panel {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .data-table {
        border: 1px solid #ccc;
    }
}