/* ============================================
   THEME VARIABLES - FIXED
   ============================================ */
:root {
    /* Light Theme (Default) - FIXED CONTRAST */
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #e2e8f0;
    --bg-dark: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-glow: #94a3b8;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-main: linear-gradient(135deg, #6C3CE1 0%, #EC4899 100%);
    --gradient-card: linear-gradient(135deg, rgba(108, 60, 225, 0.05) 0%, rgba(236, 72, 153, 0.02) 100%);
    --accent: #059669;
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    --accent-orange: #d97706;
    --primary: #6C3CE1;
    --primary-light: #7C3AED;
    --primary-dark: #5B21B6;
    --secondary: #EC4899;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;
    --sidebar-width: 240px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
}

/* Dark Theme - FIXED */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-dark: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-glow: #475569;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 8px 25px rgba(108, 60, 225, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --gradient-card: linear-gradient(135deg, rgba(108, 60, 225, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
    --accent: #10b981;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    background: var(--bg-primary);
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-brand span,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-email {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 16px 0;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
    font-size: 20px;
}

.sidebar.collapsed .sidebar-user {
    padding: 12px 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-user-avatar {
    width: 36px;
    height: 36px;
}

.sidebar-brand {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
}

.sidebar-brand a {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand a i {
    font-size: 24px;
}

.sidebar-brand span {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 12px 8px;
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-link i {
    width: 20px;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-link:hover i {
    color: var(--primary-light);
}

.sidebar-link.active {
    background: rgba(108, 60, 225, 0.08);
    color: var(--text-primary);
}

.sidebar-link.active i {
    color: var(--primary-light);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--gradient-main);
    border-radius: 0 4px 4px 0;
}

.sidebar-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 1px 10px;
}

.sidebar-link .badge.badge-notification {
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius-full);
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 700;
}

.sidebar-link .badge.badge-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--accent);
    margin-left: auto;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.sidebar-footer .sidebar-link {
    flex: 1;
    justify-content: center;
    padding: 8px;
    font-size: 12px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed);
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-title span {
    color: var(--text-muted);
    font-weight: 400;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 24px;
    flex: 1;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.page-header h1 i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .text-muted {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card h2, .card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.card h2 i, .card h3 i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    margin-bottom: 0;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.stat-change.positive {
    color: var(--accent);
    background: rgba(5, 150, 105, 0.1);
}

.stat-change.negative {
    color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.welcome-banner h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.welcome-banner .text-muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.welcome-actions .btn-primary,
.welcome-actions .btn-secondary {
    width: auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.form-group label i {
    margin-right: 6px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    padding: 12px 28px;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.35);
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-small {
    padding: 4px 14px;
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.btn-success {
    background: var(--accent);
}
.btn-danger {
    background: var(--accent-red);
}
.btn-warning {
    background: var(--accent-orange);
}
.btn-info {
    background: var(--accent-blue);
}

/* ============================================
   TRANSACTIONS
   ============================================ */
.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.tx-description {
    font-weight: 500;
    color: var(--text-primary) !important;
}

.tx-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.tx-date {
    color: var(--text-muted) !important;
    font-size: 12px;
}

.tx-amount {
    font-weight: 700;
    font-size: 15px;
}

.tx-amount.positive {
    color: var(--accent);
}

.tx-amount.negative {
    color: var(--accent-red);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-admin {
    background: rgba(108, 60, 225, 0.12);
    color: var(--primary-light);
}

.badge-user {
    background: rgba(108, 60, 225, 0.08);
    color: var(--text-secondary);
}

.badge-active {
    background: rgba(5, 150, 105, 0.12);
    color: var(--accent);
}

.badge-pending {
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent-orange);
}

.badge-completed {
    background: rgba(5, 150, 105, 0.12);
    color: var(--accent);
}

.badge-rejected {
    background: rgba(220, 38, 38, 0.12);
    color: var(--accent-red);
}

.badge-approved {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
}

.badge-reversed {
    background: rgba(108, 60, 225, 0.12);
    color: var(--primary-light);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert i {
    font-size: 18px;
}

.alert.success {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
    color: var(--accent);
}

.alert.success i {
    color: var(--accent);
}

.alert.error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--accent-red);
}

.alert.error i {
    color: var(--accent-red);
}

.alert.info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
}

.alert.info i {
    color: var(--accent-blue);
}

/* ============================================
   ACTION GRID
   ============================================ */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.action-card i {
    font-size: 22px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
}

.action-card span {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   ACCOUNT DETAILS
   ============================================ */
.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    background: var(--bg-card-hover);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.detail-item label {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.detail-item .highlight {
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   SPENDING BREAKDOWN
   ============================================ */
.spending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.spending-item:last-child {
    border-bottom: none;
}

.spending-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-card-hover);
    border-radius: 10px;
    overflow: hidden;
}

.spending-bar .fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.spending-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 80px;
}

.spending-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    text-align: right;
}

/* ============================================
   INCOME BREAKDOWN
   ============================================ */
.income-item {
    background: var(--bg-card-hover);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.income-item .income-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.income-item .income-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.income-item .income-percentage {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   AI INSIGHTS
   ============================================ */
.ai-insight-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.ai-insight-card:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.ai-insight-card i {
    font-size: 16px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.ai-insight-card .insight-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-insight-card .insight-text strong {
    color: var(--text-primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ============================================
   FILTER CARD
   ============================================ */
.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.filter-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .btn-secondary {
    width: auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.pagination-list li a,
.pagination-list li span {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.pagination-list li a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.pagination-list li.active a {
    background: var(--gradient-main);
    border-color: var(--primary);
    color: white;
}

.pagination-list li span {
    border-color: transparent;
    cursor: default;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-center {
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }
    
    .sidebar .sidebar-brand span,
    .sidebar .sidebar-link span,
    .sidebar .sidebar-section-title,
    .sidebar .sidebar-user-name,
    .sidebar .sidebar-user-email {
        display: none;
    }
    
    .sidebar .sidebar-brand {
        justify-content: center;
        padding: 16px 0;
    }
    
    .sidebar .sidebar-link {
        justify-content: center;
        padding: 12px;
    }
    
    .sidebar .sidebar-link i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .sidebar .sidebar-user {
        padding: 12px 0;
        justify-content: center;
    }
    
    .sidebar .sidebar-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar .sidebar-brand span,
    .sidebar .sidebar-link span,
    .sidebar .sidebar-section-title,
    .sidebar .sidebar-user-name,
    .sidebar .sidebar-user-email {
        display: block;
    }
    
    .sidebar .sidebar-brand {
        justify-content: flex-start;
        padding: 16px 20px;
    }
    
    .sidebar .sidebar-link {
        justify-content: flex-start;
        padding: 10px 14px;
    }
    
    .sidebar .sidebar-link i {
        margin-right: 12px;
        font-size: 16px;
    }
    
    .sidebar .sidebar-user {
        padding: 16px 20px;
        justify-content: flex-start;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        padding: 0 16px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .account-details {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .top-header {
        height: 56px;
    }
    
    .page-title {
        font-size: 15px;
    }
    
    .page-content {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
}