/* Dashboard Premium Styles */

/* ===== DASHBOARD VARIABLES ===== */
:root {
    /* Dashboard Colors */
    --dashboard-primary: #0f172a;
    --dashboard-secondary: #1e293b;
    --dashboard-accent: #3b82f6;
    --dashboard-accent-light: #60a5fa;
    --dashboard-success: #10b981;
    --dashboard-warning: #f59e0b;
    --dashboard-danger: #ef4444;
    
    /* Background Gradients */
    --bg-gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --bg-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
    --bg-gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    /* Shadows */
    --shadow-card: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-page {
    background: var(--bg-gradient-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.dashboard-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.dashboard-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* ===== NAVIGATION ===== */
.dashboard-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dashboard-primary);
}

.nav-brand i {
    color: var(--dashboard-accent);
    font-size: 1.75rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Breadcrumbs */
.nav-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}
.nav-breadcrumbs .crumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
}
.nav-breadcrumbs i { color: var(--dashboard-accent); }

/* Account Switcher */
.account-switcher {
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--dashboard-primary);
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(0,0,0,0.06);
    color: var(--dashboard-primary);
    transition: var(--transition-smooth);
}
.sidebar-toggle:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.12);
    color: var(--dashboard-accent);
}

.webtrader-btn {
    background: var(--bg-gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}
.webtrader-btn:hover { box-shadow: var(--shadow-glow); }

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--bg-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dashboard-primary);
    font-size: 0.95rem;
}

.user-status {
    font-size: 0.8rem;
    color: var(--dashboard-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--dashboard-danger);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--dashboard-danger);
    color: white;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* alineado con ancho del .sidebar */
    gap: 0;
    max-width: 100%;
}

.dashboard-layout .dashboard-main {
    max-width: unset;
    margin: 0;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.dashboard-sidebar {
    position: relative;
    height: calc(100vh - 80px);
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(0,0,0,0.08);
    padding: 1rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--dashboard-primary);
}

.manager-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
}
.manager-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-gradient-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}
.manager-info { flex: 1; }
.manager-label { font-size: 0.75rem; color: #64748b; }
.manager-name { font-weight: 700; color: var(--dashboard-primary); }
.manager-email { font-size: 0.85rem; color: #475569; }
.manager-actions { margin-top: 0.5rem; }

.action-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: none;
    background: rgba(59, 130, 246, 0.12);
    color: var(--dashboard-accent);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.action-btn-small:hover { transform: translateY(-2px); }

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: var(--dashboard-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.menu-item:hover { background: rgba(59, 130, 246, 0.08); }
.menu-item.active { background: rgba(59, 130, 246, 0.15); color: var(--dashboard-accent); }
.menu-item.active { box-shadow: inset 2px 0 0 var(--dashboard-accent); }
.menu-item i { color: #64748b; }

/* Responsive Sidebar */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 72px;
        height: calc(100vh - 72px);
        width: 280px;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        z-index: 200;
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }
    .dashboard-page.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }
    /* Header layout adjustments */
    .nav-brand { order: 1; }
    .nav-actions { order: 2; width: 100%; justify-content: space-between; }
    .nav-user { order: 3; }
    .user-avatar { width: 36px; height: 36px; }
    .logout-btn { padding: 0.5rem; }
    .webtrader-btn { padding: 0.6rem 0.9rem; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== WELCOME SECTION ===== */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-gradient-card);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-content h1 {
    margin: 0 0 0.5rem 0;
}

.welcome-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.greeting {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--bg-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 0.95rem;
}

.action-btn.primary {
    background: var(--bg-gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dashboard-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-btn.secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-gradient-card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-accent);
    border-radius: 24px 24px 0 0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dashboard-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.stat-value.positive { color: var(--dashboard-success); }
.stat-value.negative { color: var(--dashboard-danger); }

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive { color: var(--dashboard-success); }
.stat-change.negative { color: var(--dashboard-danger); }
.stat-change.neutral { color: #64748b; }

/* Stat Card Specific Styles */
.balance-card .stat-chart {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 40px;
    opacity: 0.3;
}

.accounts-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.account-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
}

.account-type {
    font-weight: 600;
    color: var(--dashboard-accent);
    text-transform: uppercase;
}

.account-balance {
    font-weight: 600;
    color: var(--dashboard-primary);
}

.profit-indicator {
    margin-top: 1rem;
}

.indicator-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.indicator-fill {
    height: 100%;
    background: var(--bg-gradient-accent);
    border-radius: 3px;
    transition: width 1s ease-out;
}

.trades-activity {
    margin-top: 1rem;
}

.activity-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--dashboard-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

/* ===== ACCOUNTS SECTION ===== */
.accounts-section {
    background: var(--bg-gradient-card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dashboard-primary);
    margin: 0;
}

.section-title i {
    color: var(--dashboard-accent);
}

.section-actions {
    display: flex;
    gap: 0.75rem;
}

.filter-btn, .refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--dashboard-accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover, .refresh-btn:hover {
    background: var(--dashboard-accent);
    color: white;
    transform: translateY(-2px);
}

.refresh-btn {
    padding: 0.75rem;
}

.refresh-btn:hover i {
    animation: spin 0.5s ease-in-out;
}

/* ===== ACCOUNTS TABLE ===== */
.accounts-table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accounts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.accounts-table thead {
    background: var(--bg-gradient-accent);
    color: white;
}

.accounts-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accounts-table th i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.accounts-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.accounts-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

.account-row {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accounts-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.account-type-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.type-icon {
    width: 35px;
    height: 35px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-accent);
}

.type-name {
    font-weight: 600;
    color: var(--dashboard-primary);
}

.account-number {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--dashboard-primary);
}

.currency-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-flag {
    font-size: 1.2rem;
}

.currency-code {
    font-weight: 600;
    color: var(--dashboard-primary);
}

.balance-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dashboard-primary);
}

.balance-bar {
    width: 100px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.balance-fill {
    height: 100%;
    background: var(--bg-gradient-accent);
    border-radius: 2px;
    transition: width 1s ease-out;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dashboard-success);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dashboard-danger);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--dashboard-warning);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn-small {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.action-btn-small.view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--dashboard-accent);
}

.action-btn-small.trade {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dashboard-success);
}

.action-btn-small.settings {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.action-btn-small:hover {
    transform: translateY(-2px) scale(1.1);
}

.action-btn-small.view:hover {
    background: var(--dashboard-accent);
    color: white;
}

.action-btn-small.trade:hover {
    background: var(--dashboard-success);
    color: white;
}

.action-btn-small.settings:hover {
    background: #6b7280;
    color: white;
}

/* ===== MARKET TICKER ===== */
.market-ticker {
    background: var(--bg-gradient-card);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    animation: slideInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dashboard-primary);
}

.ticker-header i {
    color: var(--dashboard-accent);
}

.ticker-content {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.ticker-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ticker-item .symbol {
    font-weight: 700;
    color: var(--dashboard-primary);
    font-size: 0.85rem;
}

.ticker-item .price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dashboard-primary);
}

.ticker-item .change {
    font-size: 0.8rem;
    font-weight: 600;
}

.ticker-item .change.positive {
    color: var(--dashboard-success);
}

.ticker-item .change.negative {
    color: var(--dashboard-danger);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-main {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .welcome-section {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .ticker-content {
        gap: 1rem;
    }
    
    .user-details {
        display: none;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .accounts-section {
        padding: 1rem;
    }
    
    .accounts-table th,
    .accounts-table td {
        padding: 1rem 0.75rem;
    }
}

/* ===== DOCUMENTS SECTION ===== */
.documents-section { background: var(--bg-gradient-card); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(20px); margin-bottom: 3rem; }
.documents-table-container { overflow-x: auto; border-radius: 16px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.documents-table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.documents-table thead { background: var(--bg-gradient-accent); color: white; }
.documents-table th, .documents-table td { padding: 1rem 1.25rem; }
.doc-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.doc-badge.pending { background: rgba(245, 158, 11, 0.12); color: var(--dashboard-warning); }
.doc-badge.verified { background: rgba(16, 185, 129, 0.12); color: var(--dashboard-success); }
.upload-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: rgba(59,130,246,0.1); color: var(--dashboard-accent); border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; cursor: pointer; }

/* ===== SUPPORT SECTION ===== */
.support-section { background: var(--bg-gradient-card); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(20px); margin-bottom: 3rem; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.support-card { background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 1.25rem; text-align: center; box-shadow: var(--shadow-card); }
.support-card i { color: var(--dashboard-accent); font-size: 1.6rem; }
.support-card h3 { margin: 0.5rem 0; color: var(--dashboard-primary); }
.support-card p { color: #64748b; }

/* ===== VERIFICATION SECTION ===== */
.verification-section { background: var(--bg-gradient-card); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(20px); margin-bottom: 3rem; }
.verification-progress { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.progress-bar { flex: 1; height: 8px; background: rgba(0,0,0,0.1); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--bg-gradient-accent); width: 0; transition: width 1s ease; }
.progress-label { font-size: 0.9rem; color: #64748b; }
.verification-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.step { display: flex; gap: 0.75rem; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 1rem; align-items: center; }
.step-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(59,130,246,0.1); color: var(--dashboard-accent); display: flex; align-items: center; justify-content: center; }
.step.pending { box-shadow: var(--shadow-card); }

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    position: fixed;
    left: 0;
    top: 72px;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 150;
    display: none;
}
.dashboard-page.sidebar-open .sidebar-overlay { display: block; }

/* Placeholder sections hidden */
.placeholder-section { display: none; }