/* ============================================
   PANEL ADMINISTRATIVO - RESTAURANTE
   Diseño Ultra Profesional 100% Móvil
   ============================================ */

:root {
    --primary-dark: #0a0a0a;
    --primary-medium: #111111;
    --accent-dark: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-card-hover: #252525;
    
    --gold: #c9a227;
    --gold-light: #e6c84d;
    --gold-dark: #9a7b0a;
    --gradient-gold: linear-gradient(135deg, #9a7b0a 0%, #c9a227 50%, #e6c84d 100%);
    
    --white: #ffffff;
    --cream: #f8f6f0;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #666666;
    --text-dark: #1a1a1a;
    
    --blue: #2196f3;
    --green: #4caf50;
    --orange: #ff9800;
    --red: #f44336;
    --purple: #9c27b0;
    
    --border-color: #2a2a2a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 5px 25px rgba(201, 162, 39, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.login-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 25px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    border: 1px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.login-logo h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.login-form label i {
    margin-right: 8px;
    color: var(--gold);
}

.login-form input {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
}

.error-message {
    display: block;
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ============================================
   ADMIN APP
   ============================================ */
.admin-app {
    min-height: 100vh;
    padding-bottom: 20px;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    border-bottom: 1px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.menu-toggle, .logout-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-toggle:active, .logout-btn:active {
    background: rgba(201, 162, 39, 0.1);
}

.mobile-header h1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gold);
}

.sidebar.active {
    transform: translateX(0);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo i {
    font-size: 1.5rem;
}

.close-sidebar {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-left: 3px solid transparent;
}

.nav-item:active {
    background: rgba(201, 162, 39, 0.1);
}

.nav-item.active {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    border-left-color: var(--gold);
}

.nav-item i {
    width: 24px;
    font-size: 1.1rem;
}

.badge {
    background: var(--red);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-footer p {
    margin: 5px 0;
}

.sidebar-footer i {
    color: var(--gold);
    margin-right: 5px;
}

/* Main Content */
.main-content {
    padding: 75px 15px 20px;
    min-height: 100vh;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.stat-card.blue { border-left: 4px solid var(--blue); }
.stat-card.green { border-left: 4px solid var(--green); }
.stat-card.orange { border-left: 4px solid var(--orange); }
.stat-card.purple { border-left: 4px solid var(--purple); }

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card.blue .stat-icon { background: rgba(33, 150, 243, 0.15); color: var(--blue); }
.stat-card.green .stat-icon { background: rgba(76, 175, 80, 0.15); color: var(--green); }
.stat-card.orange .stat-icon { background: rgba(255, 152, 0, 0.15); color: var(--orange); }
.stat-card.purple .stat-icon { background: rgba(156, 39, 176, 0.15); color: var(--purple); }

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   CHART CARD
   ============================================ */
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.chart-header {
    margin-bottom: 15px;
}

.chart-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header h3 i {
    color: var(--gold);
}

.chart-container {
    height: 200px;
    position: relative;
}

/* ============================================
   RECENT ORDERS
   ============================================ */
.recent-orders-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border-color);
}

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

.card-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--gold);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   ORDER CARD
   ============================================ */
.order-card {
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 15px;
    border-left: 4px solid var(--gold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card:active {
    transform: scale(0.98);
}

.order-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-id {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pendiente {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.order-status.completado {
    background: rgba(76, 175, 80, 0.15);
    color: var(--green);
}

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

.order-customer {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.order-table {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}

/* ============================================
   FILTERS
   ============================================ */
.filters-container {
    margin-bottom: 15px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab.active {
    background: var(--gradient-gold);
    color: var(--text-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.filter-tab span {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.filter-date {
    display: flex;
}

.filter-date input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-date input:focus {
    border-color: var(--gold);
    outline: none;
}

/* Orders List Mobile */
.orders-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orders-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.orders-empty i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--gold);
    opacity: 0.4;
}

/* ============================================
   SEARCH SECTION - Búsqueda Avanzada de Órdenes
   ============================================ */
.search-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 25px;
}

.search-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Búsqueda Rápida por Número */
.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.search-label {
    display: block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-label i {
    margin-right: 8px;
}

.search-input-row {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    background: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--gold);
    outline: none;
    letter-spacing: 4px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.search-input.search-order-number {
    letter-spacing: 5px;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 1rem;
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
}

.search-btn-compact {
    width: 60px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Botón Ver Todos */
.btn-view-all-orders {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--gold);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.btn-view-all-orders:hover {
    background: rgba(201, 162, 39, 0.1);
}

.btn-view-all-orders:active {
    transform: scale(0.98);
}

/* Búsqueda Avanzada */
.search-advanced {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.search-advanced-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-advanced-header:hover {
    background: var(--bg-card-hover);
}

.search-advanced-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-advanced-header span i {
    color: var(--gold);
}

.search-advanced-header > i {
    transition: transform 0.3s ease;
    color: var(--gold);
}

.search-advanced-header.active > i {
    transform: rotate(180deg);
}

.search-advanced-body {
    display: none;
    padding: 20px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--primary-dark);
}

.search-advanced-body.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-field {
    margin-bottom: 15px;
}

.search-field label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.search-field label i {
    color: var(--gold);
    margin-right: 8px;
    width: 16px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--gold);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c9a227' 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 15px center;
    padding-right: 40px;
}

.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-search-advanced {
    flex: 2;
    padding: 14px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-search-advanced:active {
    transform: scale(0.98);
}

.btn-search-clear {
    flex: 1;
    padding: 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-search-clear:active {
    transform: scale(0.98);
}

/* Resultados de Búsqueda */
.search-results-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--gold);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.search-results-header {
    background: var(--gradient-gold);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-header span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.btn-clear-results {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:active {
    background: var(--bg-card-hover);
}

.search-result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.search-result-item-id {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

.search-result-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-result-item-info span {
    display: block;
    margin-top: 3px;
}

.search-result-item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}

/* Sin Resultados */
.search-not-found {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.search-not-found i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-not-found p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.search-not-found span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   REPORTS
   ============================================ */
.report-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.report-tab {
    flex: 1;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.report-tab.active {
    background: var(--gradient-gold);
    color: var(--text-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.report-summary .summary-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.report-summary .summary-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.summary-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-export {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: #43a047;
}

.btn-export:active {
    transform: scale(0.98);
}

/* ============================================
   SETTINGS
   ============================================ */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.settings-card h3 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-display {
    text-align: center;
    padding: 25px;
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.counter-display span {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 3px;
}

.btn-action {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.btn-action {
    background: var(--gradient-gold);
    color: var(--text-dark);
}

.btn-action.warning {
    background: var(--orange);
    color: white;
}

.btn-action.primary {
    background: var(--blue);
    color: white;
}

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

.btn-action:active {
    transform: scale(0.98);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--gradient-gold);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.close-modal {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-info {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.detail-row i {
    color: var(--gold);
    width: 20px;
}

.detail-items {
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.modal-footer {
    padding: 15px 20px 20px;
}

.btn-complete {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-complete:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-complete:active:not(:disabled) {
    transform: scale(0.98);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .filter-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
