/* ========================================
   PANEL ADMINISTRATIVO - ESTILOS
   100% OPTIMIZADO PARA MÓVIL
   ======================================== */

/* ========================================
   LOGIN SCREEN
   ======================================== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.login-container {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid rgba(212, 168, 75, 0.5);
    border-radius: 25px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(212, 168, 75, 0.2);
}

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

.login-logo i {
    font-size: 3.5rem;
    color: #d4a84b;
    margin-bottom: 15px;
    display: block;
}

.login-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #d4a84b;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.login-logo p {
    color: #b0b0b0;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.login-form {
    margin-bottom: 25px;
}

.login-input-group {
    margin-bottom: 25px;
    text-align: left;
}

.login-input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.login-input-group label i {
    color: #d4a84b;
}

.login-input-group input {
    width: 100%;
    padding: 18px 20px;
    background: #0a0a0a;
    border: 2px solid rgba(212, 168, 75, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.login-input-group input::placeholder {
    color: #5a5a5a;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.login-input-group input:focus {
    outline: none;
    border-color: #d4a84b;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

.login-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #d4a84b 0%, #e8c574 50%, #d4a84b 100%);
    border: none;
    border-radius: 12px;
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.4);
}

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

.login-error {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.5);
    border-radius: 10px;
    color: #ff4757;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
}

.login-back:hover {
    color: #d4a84b;
    background: rgba(212, 168, 75, 0.1);
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-logo i {
        font-size: 2.8rem;
    }
    
    .login-logo h1 {
        font-size: 1.7rem;
    }
    
    .login-input-group input {
        padding: 15px 18px;
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Variables CSS */
:root {
    --primary-gold: #d4a84b;
    --primary-gold-light: #e8c574;
    --primary-gold-dark: #b8912e;
    --bg-black: #0a0a0a;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --bg-sidebar: #0d0d0d;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --text-light-gray: #8a8a8a;
    --success-green: #25d366;
    --danger-red: #ff4757;
    --warning-orange: #ffa502;
    --info-blue: #3498db;
    --shadow-gold: rgba(212, 168, 75, 0.3);
    --gradient-gold: linear-gradient(135deg, #d4a84b 0%, #e8c574 50%, #d4a84b 100%);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-sidebar);
    border-top: 2px solid var(--primary-gold);
    z-index: 1000;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-item i {
    font-size: 1.4rem;
}

.mobile-nav-item.active {
    color: var(--primary-gold);
    background: rgba(212, 168, 75, 0.15);
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

/* ========================================
   SIDEBAR (DESKTOP)
   ======================================== */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(212, 168, 75, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
}

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

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.3rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

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

.nav-item:hover {
    background: rgba(212, 168, 75, 0.1);
    color: var(--text-white);
}

.nav-item.active {
    background: rgba(212, 168, 75, 0.15);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.nav-item i {
    font-size: 1.2rem;
    width: 25px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(212, 168, 75, 0.2);
}

.back-to-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(212, 168, 75, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 10px;
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-menu:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: var(--bg-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.date-display i {
    color: var(--primary-gold);
}

.order-counter-display {
    background: var(--gradient-gold);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-counter-display .counter-label {
    font-size: 0.75rem;
    color: var(--bg-black);
    font-weight: 500;
}

.order-counter-display .counter-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-black);
    font-family: 'Courier New', monospace;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    display: none;
    padding: 20px;
    flex: 1;
    padding-bottom: 100px;
}

.content-section.active {
    display: block;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.orders {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info-blue);
}

.stat-icon.revenue {
    background: rgba(37, 211, 102, 0.2);
    color: var(--success-green);
}

.stat-icon.today {
    background: rgba(255, 165, 2, 0.2);
    color: var(--warning-orange);
}

.stat-icon.average {
    background: rgba(212, 168, 75, 0.2);
    color: var(--primary-gold);
}

.stat-info {
    min-width: 0;
    flex: 1;
}

.stat-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ========================================
   CHARTS
   ======================================== */
.charts-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.chart-card.full-width {
    width: 100%;
}

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

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

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

.chart-select {
    background: var(--bg-dark);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

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

/* ========================================
   ORDERS TABLE
   ======================================== */
.recent-orders-card,
.orders-full-table {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.view-all {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--primary-gold-light);
}

.orders-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-table th {
    background: rgba(212, 168, 75, 0.1);
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.orders-table td {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.orders-table tbody tr:hover {
    background: rgba(212, 168, 75, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.enviado {
    background: rgba(37, 211, 102, 0.2);
    color: var(--success-green);
}

.status-badge.pendiente {
    background: rgba(255, 165, 2, 0.2);
    color: var(--warning-orange);
}

.status-badge.completado {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info-blue);
}

.action-btn {
    background: none;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
}

/* ========================================
   MOBILE ORDER CARDS
   ======================================== */
.mobile-orders-list {
    display: none;
}

.order-card-mobile {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

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

.order-card-number {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1rem;
}

.order-card-name {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-top: 3px;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.order-card-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.order-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.order-card-actions .action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
}

/* ========================================
   FILTERS
   ======================================== */
.section-header-bar {
    margin-bottom: 20px;
}

.filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 120px;
}

.filter-group label {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.filter-group select,
.filter-group input {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--text-white);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
}

.filter-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:not(.clear) {
    background: var(--gradient-gold);
    color: var(--bg-black);
}

.filter-btn.clear {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
}

.filter-btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   REPORTS
   ======================================== */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

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

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

.report-date,
.report-select {
    background: var(--bg-dark);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.report-content {
    margin-bottom: 15px;
}

.report-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-stat:last-child {
    border-bottom: none;
}

.report-stat .label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.report-stat .value {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 600;
}

.export-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: var(--primary-gold);
    color: var(--bg-black);
}

/* ========================================
   SETTINGS
   ======================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.settings-card.danger-zone {
    border-color: rgba(255, 71, 87, 0.3);
}

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

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

.settings-card.danger-zone h3 i {
    color: var(--danger-red);
}

.settings-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.settings-input-group {
    margin-bottom: 15px;
}

.settings-input-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.settings-input-group input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--text-white);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.settings-btn.primary {
    background: var(--gradient-gold);
    color: var(--bg-black);
}

.settings-btn.danger {
    background: transparent;
    border: 1px solid var(--danger-red);
    color: var(--danger-red);
}

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

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-item .label {
    color: var(--text-gray);
}

.info-item .value {
    color: var(--text-white);
    font-weight: 500;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    padding: 18px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-gold);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--bg-black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 35px;
    height: 35px;
    background: var(--bg-black);
    border: none;
    color: var(--primary-gold);
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

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

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row .label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.detail-row .value {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-items {
    background: rgba(212, 168, 75, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.detail-items h4 {
    color: var(--primary-gold);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

/* Mobile (default) */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: none;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .date-display {
        display: none;
    }

    .order-counter-display {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.1rem;
    }

    .stat-info p {
        font-size: 0.75rem;
    }

    .chart-container {
        min-height: 220px;
    }

    /* Hide desktop table, show mobile cards */
    .orders-table-container {
        display: none;
    }

    .mobile-orders-list {
        display: block;
        padding: 15px;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .content-section {
        padding: 15px;
        padding-bottom: 100px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .charts-row {
        flex-direction: row;
    }

    .charts-row .chart-card:first-child {
        flex: 1.5;
    }

    .charts-row .chart-card:last-child {
        flex: 1;
    }

    .reports-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        min-height: 300px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-light);
}

/* ========================================
   SAFE AREA FOR MOBILE
   ======================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .content-section {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}
