/* ==========================================
   PIZZERIA NAPOLETANA - ADMIN PANEL STYLES
   Ultra Professional Mobile-First Design
   ========================================== */

/* CSS Variables */
:root {
    --primary-red: #8B0000;
    --primary-red-dark: #6B0000;
    --primary-green: #006400;
    --primary-green-light: #228B22;
    --cream: #F5F5DC;
    --cream-light: #FFFEF0;
    --gold: #DAA520;
    --gold-light: #FFD700;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --bg-gray: #F8F9FA;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   LOGIN SCREEN - ULTRA PROFESSIONAL
   ========================================== */

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

.login-container {
    background: white;
    border-radius: 24px;
    padding: 50px 35px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
}

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

.login-logo i {
    font-size: 4.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
}

.login-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-logo p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

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

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

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.login-form .form-group label i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.login-form .form-group input {
    width: 100%;
    padding: 20px 25px;
    font-size: 1.3rem;
    border: 3px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    letter-spacing: 4px;
    background: var(--bg-gray);
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(139, 0, 0, 0.1);
    background: white;
}

.login-form .form-group input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    color: #aaa;
}

.login-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 20px;
    background: linear-gradient(145deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 0, 0, 0.5);
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-link:hover {
    background: var(--cream);
}

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

/* ==========================================
   ADMIN PANEL - MOBILE FIRST LAYOUT
   ========================================== */

.admin-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

/* ==========================================
   MOBILE HEADER - ALWAYS VISIBLE
   ========================================== */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red));
    z-index: 1001;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.menu-toggle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.95);
}

.mobile-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-refresh-mobile {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-refresh-mobile:active {
    background: rgba(255,255,255,0.25);
}

.btn-refresh-mobile:active i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================
   SIDEBAR - SLIDE OUT MENU
   ========================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1002;
    backdrop-filter: blur(3px);
}

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

.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    z-index: 1003;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

.sidebar.active {
    left: 0;
}

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

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

.logo i {
    font-size: 2.5rem;
    color: var(--gold-light);
}

.logo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    letter-spacing: 2px;
    font-weight: 700;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    display: block;
}

.sidebar-close {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.95);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    position: relative;
    font-size: 1.1rem;
}

.nav-item:active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-left-color: var(--gold-light);
}

.nav-item i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.nav-item span {
    font-weight: 600;
}

.badge {
    background: var(--warning);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: auto;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.back-to-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.back-to-menu:active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.btn-logout:active {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

.main-content {
    flex: 1;
    padding-top: 65px;
    width: 100%;
    min-height: 100vh;
}

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

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

/* Section Title */
.section-title {
    margin-bottom: 25px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-red);
    margin-bottom: 5px;
    font-weight: 700;
}

.section-title p {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================
   STATS CARDS - MOBILE OPTIMIZED
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-light);
}

.stat-card.green .stat-icon { background: linear-gradient(145deg, var(--success), #059669); }
.stat-card.blue .stat-icon { background: linear-gradient(145deg, var(--info), #2563EB); }
.stat-card.orange .stat-icon { background: linear-gradient(145deg, var(--warning), #D97706); }
.stat-card.purple .stat-icon { background: linear-gradient(145deg, #8B5CF6, #6D28D9); }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================
   CHARTS
   ========================================== */

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

.chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

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

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

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

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

/* ==========================================
   TABLE CARDS
   ========================================== */

.table-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 20px;
}

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

.table-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.table-header h3 i {
    color: var(--primary-red);
}

.table-header a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* ==========================================
   ORDERS SECTION
   ========================================== */

.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.filters-bar select,
.filters-bar input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: white;
    font-weight: 500;
    color: var(--text-dark);
}

.filters-bar select:focus,
.filters-bar input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

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

.order-card-header {
    padding: 18px 20px;
    background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red));
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 700;
    font-size: 1.15rem;
}

.order-customer-name {
    display: block;
    font-size: 1rem;
    color: var(--gold-light);
    margin-top: 5px;
    font-weight: 600;
}

.order-table {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
}

.order-card-body {
    padding: 18px 20px;
}

.order-items-list {
    margin-bottom: 0;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-card-footer {
    padding: 15px 20px;
    background: var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.order-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Status Badges */
.status {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.status.completed {
    background: #D1FAE5;
    color: #059669;
}

/* ==========================================
   REPORTS SECTION
   ========================================== */

.period-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

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

.period-tab:active {
    transform: scale(0.98);
}

.period-tab.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.report-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.report-stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.report-stat-card i {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 12px;
    display: block;
}

.report-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.report-stat-label {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.btn-generate-report {
    width: 100%;
    padding: 20px;
    background: linear-gradient(145deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.3);
}

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

/* ==========================================
   SETTINGS SECTION
   ========================================== */

.settings-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

.settings-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.settings-card h3 i {
    color: var(--primary-red);
    font-size: 1.3rem;
}

.counter-display {
    font-size: 2.2rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 4px;
    text-align: center;
    padding: 25px 20px;
    background: var(--cream);
    border-radius: 14px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.form-group input {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-save {
    width: 100%;
    padding: 16px 25px;
    background: var(--primary-green);
    color: var(--text-light);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

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

.btn-action {
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-action:last-child {
    margin-bottom: 0;
}

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

.btn-action i {
    font-size: 1.3rem;
}

.btn-action.primary {
    background: var(--info);
    color: var(--text-light);
}

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

.btn-action.danger {
    background: var(--danger);
    color: var(--text-light);
}

/* ==========================================
   MODALS
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    padding: 22px 20px;
    background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red));
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-modal {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

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

.modal-footer {
    padding: 20px;
    background: var(--cream);
}

.btn-complete {
    width: 100%;
    padding: 18px 30px;
    background: var(--success);
    color: var(--text-light);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

/* Confirm Modal */
.confirm-modal {
    text-align: center;
    padding: 40px 25px;
    border-radius: 24px;
    margin: auto 15px;
}

.confirm-icon {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: 20px;
}

.confirm-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.confirm-modal p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cancel,
.btn-confirm {
    width: 100%;
    padding: 18px 30px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-confirm {
    background: var(--danger);
    color: var(--text-light);
}

.btn-cancel:active,
.btn-confirm:active {
    transform: scale(0.98);
}

/* Report Preview */
.report-preview {
    max-width: 100%;
}

.report-content {
    font-size: 0.95rem;
}

.report-header-print {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-red);
}

.report-header-print h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-red);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.report-summary-item {
    background: var(--cream);
    padding: 18px 15px;
    border-radius: 12px;
}

.report-summary-item label {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.report-summary-item span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-print {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-red);
    color: var(--text-light);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

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

/* Empty States */
.empty-table,
.empty-orders {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.empty-table i,
.empty-orders i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

.empty-table p,
.empty-orders p {
    font-size: 1.1rem;
}

/* ==========================================
   TABLET & DESKTOP ENHANCEMENTS
   ========================================== */

@media (min-width: 768px) {
    .login-container {
        padding: 60px 50px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 18px;
        padding: 25px;
    }
    
    .stat-info {
        align-items: flex-start;
    }
    
    .report-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .orders-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filters-bar {
        flex-direction: row;
    }
    
    .filters-bar select,
    .filters-bar input {
        flex: 1;
    }
    
    .modal-content {
        max-width: 500px;
        border-radius: 24px;
        margin: auto;
    }
    
    .modal {
        align-items: center;
        padding: 20px;
    }
    
    .confirm-actions {
        flex-direction: row;
    }
    
    .content-section {
        padding: 30px;
    }
}

@media (min-width: 1024px) {
    .admin-panel {
        flex-direction: row;
    }
    
    .mobile-header {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        width: 280px;
    }
    
    .sidebar-close {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 280px;
        padding-top: 0;
    }
    
    .content-section {
        padding: 40px;
    }
    
    .orders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .sidebar,
    .mobile-header,
    .sidebar-overlay,
    .modal-footer,
    .modal-header button {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    
    .modal {
        position: static;
        background: none;
    }
    
    .modal-content {
        max-width: none;
        box-shadow: none;
        border-radius: 0;
    }
}
