/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #153E90;
    --primary-light: #1e56c7;
    --primary-dark: #0e2a63;
    --secondary-color: #8E1600;
    --secondary-light: #b81e00;
    --accent-color: #548CA8;
    --accent-light: #7ab8d6;
    --background-color: #f0f2f5;
    --text-color: #1a1a2e;
    --text-muted: #6c757d;
    --white: #FFFFFF;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(21, 62, 144, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #153E90 0%, #1e56c7 50%, #8E1600 100%);
    --gradient-header: linear-gradient(135deg, #0e2a63 0%, #153E90 40%, #8E1600 100%);
    --gradient-card: linear-gradient(135deg, rgba(21, 62, 144, 0.03), rgba(142, 22, 0, 0.03));
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::selection {
    background: var(--primary-color);
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 130px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(21, 62, 144, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(142, 22, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER ==================== */
header {
    background: var(--gradient-header);
    color: var(--white);
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(21, 62, 144, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--warning), var(--primary-light), var(--secondary-color));
}

/* ==================== TYPOGRAPHY ==================== */
h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 62, 144, 0.35);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== MENU GRID ==================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.in-stock {
    color: #065f46;
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.out-of-stock {
    color: #991b1b;
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==================== CART ==================== */
.cart-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 20px;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition);
}

.cart-section:hover {
    box-shadow: var(--shadow-lg);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition-fast);
    border-radius: 8px;
    margin-bottom: 4px;
}

.cart-item:hover {
    background: #f8f9ff;
}

.cart-item:last-child {
    border-bottom: none;
}

/* ==================== ORDER STATUS CARDS ==================== */
.order-status-card {
    background: var(--white);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border-right: 5px solid #ccc;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    animation: cardSlideIn 0.4s ease forwards;
}

.order-status-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(-4px);
}

.status-pending {
    border-color: var(--warning);
    background: linear-gradient(to left, var(--warning-light), var(--white));
}

.status-approved {
    border-color: var(--success);
    background: linear-gradient(to left, var(--success-light), var(--white));
}

.status-rejected {
    border-color: var(--danger);
    background: linear-gradient(to left, var(--danger-light), var(--white));
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafbfc;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(21, 62, 144, 0.1);
    background: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

/* ==================== TABLES ==================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

th,
td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

th {
    background: var(--gradient-header);
    color: white;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

th:first-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

th:last-child {
    border-radius: var(--radius-lg) 0 0 0;
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: #f8faff;
}

tbody tr:nth-child(even) {
    background: #fafbfc;
}

tbody tr:nth-child(even):hover {
    background: #f0f4ff;
}

/* ==================== SIDEBAR ==================== */
.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
    font-size: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle:hover span:nth-child(1) {
    transform: translateX(-2px);
}

.menu-toggle:hover span:nth-child(3) {
    transform: translateX(2px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}

.sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar button {
    background: none;
    border: none;
    padding: 16px 25px;
    text-align: right;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-color);
    border-right: 4px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.sidebar button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to left, rgba(21, 62, 144, 0.08), transparent);
    transition: width 0.3s ease;
}

.sidebar button:hover::before {
    width: 100%;
}

.sidebar button:hover {
    color: var(--primary-color);
    border-right-color: var(--primary-light);
}

.sidebar button.active {
    background: linear-gradient(to left, rgba(21, 62, 144, 0.1), transparent);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: 700;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    color: #333;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    opacity: 0;
    animation: toastSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-right: 4px solid var(--primary-color);
    min-width: 300px;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

.toast.toast-success {
    border-right-color: var(--success);
    background: linear-gradient(to left, var(--success-light), var(--white));
}

.toast.toast-error {
    border-right-color: var(--danger);
    background: linear-gradient(to left, var(--danger-light), var(--white));
}

.toast.toast-warning {
    border-right-color: var(--warning);
    background: linear-gradient(to left, var(--warning-light), var(--white));
}

/* ==================== CUSTOM MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.modal-icon.success {
    background: var(--success-light);
}

.modal-icon.error {
    background: var(--danger-light);
}

.modal-icon.warning {
    background: var(--warning-light);
}

.modal-icon.info {
    background: var(--info-light);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.modal-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions .btn {
    min-width: 100px;
    padding: 10px 24px;
}

/* ==================== LOADING & SKELETON ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.skeleton-card {
    height: 120px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-line.short {
    width: 50%;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 140px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==================== ADMIN HEADER ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background-image: var(--gradient-card);
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.blue::before { background: var(--primary-color); }
.stat-card.green::before { background: var(--success); }
.stat-card.red::before { background: var(--danger); }
.stat-card.yellow::before { background: var(--warning); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== PASSWORD TOGGLE ==================== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 44px;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
    transition: var(--transition-fast);
    width: auto;
    height: auto;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* ==================== BADGE ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #1e40af; }

/* ==================== SEARCH BAR ==================== */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar input {
    padding-right: 44px;
    border-radius: 30px;
    background: var(--white);
    border: 2px solid #e2e8f0;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(21, 62, 144, 0.1);
}

.search-bar .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes toastSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cardSlideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==================== ANIMATED ELEMENTS ==================== */
.fade-in {
    animation: slideUp 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ==================== FOOTER ==================== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    text-align: center;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.app-footer a {
    transition: var(--transition-fast);
}

.app-footer a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ==================== HIDDEN TABS ==================== */
.tabs {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    h2 {
        font-size: 1.2rem;
    }

    body > .container,
    .main-content-wrapper {
        flex-direction: column !important;
        gap: 16px;
    }

    .cart-section {
        position: static !important;
        margin-bottom: 30px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card {
        padding: 14px;
    }

    .card h3 {
        font-size: 0.95rem;
    }

    .login-card {
        width: 92%;
        margin: 20px auto;
        padding: 24px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-header input {
        width: 100% !important;
    }

    #add-product-form > div {
        flex-direction: column;
        align-items: stretch !important;
    }

    #add-product-form button {
        margin-top: 8px;
        width: 100%;
    }

    th, td {
        padding: 10px;
        font-size: 0.82rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .toast {
        min-width: 250px;
        max-width: 320px;
    }

    .modal-box {
        padding: 24px;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}