/* Design System - Sistema de Gestão de Faturas da Fazenda */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Prevent Alpine.js flicker */
[x-cloak] { display: none !important; }

/* Hide legacy sidebar – use hamburger drawer */
.app-sidebar {
    display: none !important;
}

/* Ensure hamburger button always visible */
.hamburger-btn {
    display: flex !important;
}

/* Ensure main wrapper occupies full width */
.main-wrapper {
    margin-left: 0 !important;
}

:root {
    --bg-primary: #f0fdfa; /* Light teal/cyan tinted background */
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(14, 165, 233, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #1E3A8A; /* Dark blue */
    --primary-hover: #1A2F71; /* Darker hover */
    --primary-glow: rgba(30, 58, 138, 0.35);
    --accent: #8b5cf6; /* Keep existing accent */
    --success: #16A34A; /* Green for payments */
    --success-bg: rgba(22, 163, 74, 0.15);
    --warning: #F59E0B; /* Yellow for pendências */
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #DC2626; /* Red for dívidas */
    --danger-bg: rgba(220, 38, 38, 0.15);
    --sidebar-width: 280px;
    --card-radius: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   APP SHELL — Sidebar + Main
   ============================================ */

/* Desktop Sidebar */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform var(--transition-speed);
}
.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 16px;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.sidebar-brand-icon {
    font-size: 24px;
    color: var(--primary);
}
.sidebar-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Nav links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.93rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}
.nav-link:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary);
}
.nav-link.active {
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary);
    font-weight: 600;
}
.nav-link-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Sidebar footer */
.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.logout-btn {
    color: var(--danger);
}
.logout-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.page-content {
    padding: 24px;
    flex: 1;
}

/* ============================================
   APP HEADER (top bar)
   ============================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}
.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-avatar {
    font-size: 1.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1;
    transition: color var(--transition-speed);
}
.header-avatar:hover { color: var(--primary); }

/* ============================================
   HAMBURGER BUTTON (mobile only)
   ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background var(--transition-speed);
}
.hamburger-btn:hover { background: rgba(14,165,233,0.1); }
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.active { transform: translateX(0); }
.drawer-inner {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}
.drawer-close-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Overlay */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 250;
    backdrop-filter: blur(2px);
}
.drawer-overlay.active { display: block; }

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
    .app-sidebar { display: none; }
    .main-wrapper { margin-left: 0; margin-bottom: 56px; }
    .hamburger-btn { display: flex; }
    .page-content { padding: 16px; }
    .app-header { padding: 0 16px; }
}




/* Responsive Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Dashboard Grid (cards & charts) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

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

/* Table responsive - scroll horizontally on mobile, but keep columns formatted nicely */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Force minimum width on mobile so it doesn't squish */
}

.custom-table th,
.custom-table td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap; /* Prevent ugly line breaks within table cells on mobile */
    font-size: 14px;
}

/* Ensure canvas elements are responsive and don't overflow */
canvas {
    max-width: 100% !important;
}



/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: calc(100% - var(--sidebar-width));
}

/* Header Area */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* Dev Profile Switcher */
.dev-switcher {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-switcher-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-switcher-btns {
    display: flex;
    gap: 4px;
}

.btn-switch-role {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.btn-switch-role:hover {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.btn-switch-role.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Notifications Bell */
.notification-bell-container {
    position: relative;
    cursor: pointer;
}

.notification-bell {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-speed);
}

.notification-bell:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* Dropdown de Notificações */
.notification-dropdown {
    position: absolute;
    right: 0;
    top: 50px;
    width: 360px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 120;
    padding: 16px;
    display: none;
}

.notification-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-item.lida {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.notification-item p {
    font-size: 13px;
    line-height: 1.4;
}

.notification-item span {
    font-size: 10px;
    color: var(--text-muted);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.stat-card:hover .stat-icon {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

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

.stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Charts and Main Section */
/* Responsive Dashboard Grid for mobile */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-card {
        max-height: none; /* allow auto height on small screens */
    }
}

/* Enhanced Notification Dropdown styling */
.notification-dropdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
}
.notification-dropdown .notification-item {
    background: var(--bg-glass);
    border-left: 4px solid var(--primary);
    transition: background var(--transition-speed);
}
.notification-dropdown .notification-item:hover {
    background: var(--primary-glow);
    color: #fff;
}


.dashboard-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-success:hover {
    background: var(--success);
    color: white;
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.btn-whatsapp:hover {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
}

/* Alert / Toast Messages */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.custom-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* State Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pago {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-pendente {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.badge-cancelado {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.badge-ativo {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-inativo {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.badge-manutencao {
    background-color: var(--warning-bg);
    color: var(--warning);
}

/* Invoice Creation Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-speed);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255,255,255,0.05);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Item List Manager for Invoice Form */
.items-manager {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
    animation: slideDown 0.2s ease-out;
}

.item-total-display {
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.invoice-total-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
}

.invoice-total-summary h3 {
    font-size: 18px;
    color: var(--text-secondary);
}

.invoice-total-summary span {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Login Page Styling */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
                var(--bg-primary);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-header i {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-credentials-info {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.login-credentials-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.login-credentials-info td {
    padding: 4px 0;
}

.login-credentials-info code {
    background: rgba(255,255,255,0.05);
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--text-secondary);
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media(max-width: 768px) {
    .mobile-only {
        display: inline-flex !important;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 25px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 16px;
    }
    
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .topbar-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .item-row {
        grid-template-columns: 1fr;
        gap: 12px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .page-title h1 {
        font-size: 22px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 400;
    padding: 0 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 60px;
}

.bottom-nav-link i {
    font-size: 18px;
}

.bottom-nav-link.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* Pagination Overrides */
.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    align-items: center;
}

.page-item .page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}
