/* ===== CRAZY CANNOLI CHICK BRAND THEME ===== */
/* CSS Custom Properties for centralized theming */


:root {
    /* Brand Colors */
    --bg-primary: #000000;
    --bg-surface: #111111;
    --bg-surface-light: #1A1A1A;
    --accent-green: #0E6B3B;
    --accent-green-hover: #117F47;
    --accent-red: #C62828;
    --accent-red-hover: #D32F2F;
    --text-primary: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-color: #333333;
    --border-accent: var(--accent-green);
    
    /* Italian Flag Gradient */
    --italian-flag-gradient: linear-gradient(90deg, #009246 0%, #FFFFFF 50%, #CE2B37 100%);
    --italian-flag-gradient-simple: linear-gradient(90deg, #009246 0%, #FFFFFF 50%, #CE2B37 100%);
    --italian-flag-gradient-vertical: linear-gradient(180deg, #009246 0%, #FFFFFF 50%, #CE2B37 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-bold: 700;
    --font-weight-normal: 400;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
}

/* ===== BRAND ACCENT BARS ===== */
.brand-accent-bar {
    background: var(--italian-flag-gradient);
    height: 3px;
    width: 100%;
}

.brand-accent-border-left {
    border-left: 4px solid;
    border-image: var(--italian-flag-gradient) 1;
}

.brand-accent-border-bottom {
    border-bottom: 3px solid;
    border-image: var(--italian-flag-gradient) 1;
}

.brand-accent-border-top {
    border-top: 3px solid;
    border-image: var(--italian-flag-gradient) 1;
}

/* ===== REUSABLE BRAND ACCENT GRADIENT CLASSES ===== */
.brand-accent-gradient {
    background: linear-gradient(90deg, #0E6B3B 0%, #FFFFFF 50%, #C62828 100%);
}

.brand-accent-gradient-vertical {
    background: linear-gradient(180deg, #0E6B3B 0%, #FFFFFF 50%, #C62828 100%);
}

/* ===== ITALIAN FLAG VERTICAL ACCENT BARS ===== */
.accent-card {
    position: relative;
    overflow: hidden;
}

.accent-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--italian-flag-gradient-vertical);
    border-radius: inherit;
}

/* ===== ITALIAN FLAG GRADIENT BORDER UTILITY ===== */
.gradient-border {
    border: 3px solid transparent;
    border-image: var(--italian-flag-gradient) 1;
}

/* ===== GLOBAL STYLES ===== */
html {
    font-size: 16px; /* Reset to standard size */
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(14, 107, 59, 0.2);
}

/* Skip to content link for keyboard users */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    margin-top: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem; }

/* ===== GLOBAL TYPOGRAPHY UPGRADE ===== */
/* All small/secondary text scaled up for readability */

.small,
.text-muted,
.card p,
.card small,
.description,
.subtitle,
.form-text,
.table td,
.empty-state p,
.status-label,
.filter-label,
.email-preview,
.template-preview {
    font-size: 15px !important;
    line-height: 1.55;
    color: #bfc7cf; /* slightly brighter for readability */
}

/* Secondary text (labels/descriptions) */
.dashboard-card p,
.card-description,
.section-description,
.empty-state p {
    font-size: 15px !important;
}

/* Form + filter text */
input,
select,
textarea,
.filter-button,
.status-filter {
    font-size: 15px !important;
}

/* Table text */
table td,
table th {
    font-size: 15px !important;
}

/* Empty state text */
.empty-state h2 {
    font-size: 20px;
}

.empty-state p {
    font-size: 15px !important;
}

/* ===== HEADER & NAVIGATION ===== */
.header-wrapper,
.nav-wrapper {
    max-width: 1800px;
    margin: 0 auto;
}

header {
    background-color: var(--bg-surface);
    border-bottom: 3px solid;
    border-image: var(--italian-flag-gradient) 1;
    padding: 20px 24px; /* Reduced padding */
    text-align: center;
    position: relative;
}

.brand-logo {
    max-height: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    color: var(--accent-green);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

nav {
    background-color: var(--bg-surface-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-staff {
    display: flex;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    background-color: var(--accent-green);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.staff-login {
    background-color: var(--accent-red);
    font-size: 0.9rem;
}

.staff-login:hover {
    background-color: var(--accent-red-hover);
}

/* ===== MAIN CONTENT ===== */
main.page-shell {
    background-color: transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

/* ===== GLOBAL CARD GRID SYSTEM ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Standardized card sizing for all card types */
.card,
.dashboard-card,
.order-card,
.campaign-card,
.menu-card,
.customer-card {
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* Responsive breakpoints for card grid */
@media (max-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Full-width container support */
.main-content,
.container,
.page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 18px 20px; /* Reduced from var(--spacing-lg) */
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-body {
    padding: 18px 20px; /* Reduced from var(--spacing-lg) */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--italian-flag-gradient);
    z-index: -1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.card h3 {
    color: var(--accent-green);
    margin-bottom: var(--spacing-md);
}

.card a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--accent-green-hover);
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #FFFFFF !important;
}

/* Ensure any button with green background has white text */
button[style*="#0E6B3B"],
button[style*="background-color: var(--accent-green"],
button[style*="background-color: var(--accent-green)"],
.btn-primary,
.btn-success {
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
    background-color: var(--accent-green);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-secondary:disabled,
.btn:disabled {
    background-color: #333;
    color: #666;
    border-color: #444;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.btn-danger {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

.btn-danger:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

/* Outline button variants for dark theme */
.btn-outline-light {
    background-color: transparent !important;
    color: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
}

.btn-outline-light:hover {
    background-color: var(--bg-surface-light) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-green) !important;
}

/* Override Bootstrap for filter buttons specifically */
.filter-card .btn-outline-light,
.btn-group .btn-outline-light {
    background-color: transparent !important;
    color: #FFFFFF !important;
    border: 1px solid #555 !important;
}

.filter-card .btn-outline-light:hover,
.btn-group .btn-outline-light:hover {
    background-color: #1A1A1A !important;
    color: #FFFFFF !important;
    border-color: var(--accent-green) !important;
}

.btn-outline-success {
    background-color: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-outline-success:hover {
    background-color: var(--accent-green);
    color: var(--text-primary);
}

.btn-outline-warning {
    background-color: transparent;
    color: #FFC107;
    border: 1px solid #FFC107;
}

.btn-outline-warning:hover {
    background-color: #FFC107;
    color: var(--bg-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: #2196F3;
    border: 1px solid #2196F3;
}

.btn-outline-primary:hover {
    background-color: #2196F3;
    color: var(--text-primary);
}

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

.btn-outline-danger:hover {
    background-color: var(--accent-red);
    color: var(--text-primary);
}

/* Info button variant */
.btn-info {
    background-color: #2196F3;
    color: var(--text-primary);
}

.btn-info:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-info:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Button group for filter tabs */
.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 0 0 auto;
}

/* Filter card specific styling */
.filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* ===== FORMS ===== */
input, textarea, select {
    background-color: var(--bg-surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(14, 107, 59, 0.3);
}

label {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* ===== ALERTS ===== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
    border-image: var(--italian-flag-gradient) 1;
}

.alert-success {
    background-color: rgba(14, 107, 59, 0.1);
    border-left: 4px solid;
    border-image: var(--italian-flag-gradient) 1;
    color: var(--text-primary);
}

.alert-danger {
    background-color: rgba(198, 40, 40, 0.1);
    border-left-color: var(--accent-red);
    color: var(--text-primary);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #FFC107;
    color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-light));
    padding: 32px 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 0;
}

.hero-section h1 {
    color: var(--accent-green);
    font-size: 2.6rem; /* Reduced from 3rem */
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== EMAIL SIGNUP SECTION ===== */
.email-signup-section {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px minmax(0, 1.5fr) 340px;
    gap: 16px;
    padding: 32px 0;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar Columns */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Feed Column */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar Cards */
.sidebar-card {
    background-color: var(--bg-surface-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.sidebar-card h2 {
    color: var(--accent-green);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Featured Card */
.featured-card {
    background: linear-gradient(135deg, var(--bg-surface-light), rgba(14, 107, 59, 0.1));
}


.signup-card .form-group {
    margin-bottom: var(--spacing-md);
}

.signup-card label {
    font-size: 0.85rem;
}

.signup-card input {
    width: 100%;
    font-size: 0.9rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Feed Cards (Middle Column) */
.feed-card {
    background-color: var(--bg-surface-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}

.feed-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feed-card h2 {
    color: var(--accent-green);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.feed-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.feed-card.featured-feed {
    background: linear-gradient(135deg, var(--bg-surface-light), rgba(14, 107, 59, 0.15));
}

.feed-card.featured-feed h2 {
    font-size: 1.8rem;
}

/* Image Card */
.image-card {
    background: linear-gradient(135deg, var(--bg-surface-light), rgba(198, 40, 40, 0.1));
    border: 2px solid var(--accent-red);
}

.image-card h3 {
    color: var(--accent-red);
}

/* Tablet: Stack columns, show middle first */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 24px;
        gap: 24px;
    }

    .dashboard-main {
        grid-row: 1;
        order: 1;
    }

    .dashboard-sidebar-left {
        grid-row: 2;
        order: 2;
    }

    .dashboard-sidebar-right {
        grid-row: 3;
        order: 3;
    }
}

/* Mobile: Fully stacked, middle first */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .dashboard-main {
        order: 1;
    }

    .dashboard-sidebar-left {
        order: 2;
    }

    .dashboard-sidebar-right {
        order: 3;
    }

    .sidebar-card,
    .feed-card {
        padding: 16px;
    }

    .feed-card h2 {
        font-size: 1.3rem;
    }

    .feed-card.featured-feed h2 {
        font-size: 1.5rem;
    }

    .sidebar-card h3,
    .sidebar-card h2 {
        font-size: 1rem;
    }
}

/* ===== PAGE SHELL (GLOBAL LAYOUT CONTAINER) ===== */
.page-shell {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 32px 24px; /* Reduced from 40px */
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .page-shell {
        max-width: 1200px;
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 16px 12px;
    }
}


/* ===== EMAIL TEMPLATE GRID ===== */
.email-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .email-template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== UTILITY CLASSES ===== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.font-weight-bold {
    font-weight: var(--font-weight-bold) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

.py-5 { 
    padding-top: var(--spacing-xl) !important; 
    padding-bottom: var(--spacing-xl) !important; 
}

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    line-height: 1.4;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* ===== STANDARDIZED PAGE TITLES ===== */
.page-title-wrap {
    margin-bottom: 25px;
}

.page-title {
    display: inline-block;
    font-size: 24px; /* Reduced from 28px */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #0E6B3B, #FFFFFF, #C62828) 1;
}

.page-icon {
    margin-right: 10px;
    opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .brand-logo {
        max-height: 135px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    main {
        margin: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ===== CONSISTENT TEXT SIZING ===== */
/* Scoped override for small/secondary text - does not break component sizing */

.text-muted,
.small,
.description,
.subtitle,
.card-text,
.card p,
.dashboard-card p,
.template-preview,
.email-preview,
.campaign-card p,
.order-card p,
.menu-card p,
.customer-card p,
.empty-state p,
.filter-panel,
.filter-panel button,
.sidebar-option,
.status-label {
    font-size: 15px;
    line-height: 1.55;
}

/* Form elements should match but remain flexible */
input,
select,
textarea {
    font-size: 15px;
    line-height: 1.55;
}

/* Keep headings larger - do not override titles */
h1, h2, h3, .page-title, .card-title {
    font-size: revert;
}

/* ===== AVAILABILITY FEED STYLES ===== */
.availability-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.availability-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.availability-day-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.availability-day-card:hover {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-sm);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.day-name {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    font-size: 15px;
}

.day-date {
    color: var(--text-muted);
    font-size: 14px;
}

.availability-status {
    margin-bottom: var(--spacing-sm);
}

.availability-status.closed {
    opacity: 0.6;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-available {
    background-color: rgba(14, 107, 59, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.badge-limited {
    background-color: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.badge-full {
    background-color: rgba(198, 40, 40, 0.2);
    color: #EF5350;
    border: 1px solid #EF5350;
}

.badge-closed {
    background-color: rgba(176, 176, 176, 0.2);
    color: #B0B0B0;
    border: 1px solid #B0B0B0;
}

/* Slots List */
.slots-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.slot-time {
    color: var(--text-primary);
    font-size: 14px;
}

.slot-badge {
    font-size: 12px;
    padding: 2px 8px;
}

.more-slots {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
    margin-top: var(--spacing-xs);
}

.day-notes {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.availability-cta {
    margin-top: var(--spacing-md);
}

.no-availability {
    text-align: center;
    color: var(--text-muted);
    padding: var(--spacing-lg);
}

/* Responsive adjustments for availability feed */
@media (max-width: 768px) {
    .availability-day-card {
        padding: var(--spacing-sm);
    }
    
    .day-name {
        font-size: 14px;
    }
    
    .day-date {
        font-size: 13px;
    }
    
    .badge {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* ===== TOGGLE SWITCH FOR BOOLEAN FIELDS ===== */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1A5D32;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:focus + .slider {
    box-shadow: 0 0 1px #1A5D32;
}

/* Form field specific switch styling */
.form-group .switch-wrapper {
    margin-top: 5px;
}

.form-group .switch-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
}

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-toggle i {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown:focus-within .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #004D25;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    border: 2px solid #006B35;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #FFFFFF;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #006B35;
}

.nav-dropdown-menu a i {
    color: #0E6B3B;
}

.live-indicator {
    margin-left: auto;
    font-size: 0.8em;
    animation: pulse 2s infinite;
}

/* ===== FLASH SALES NAVIGATION ITEMS ===== */
.flash-sale-nav-item {
    background: linear-gradient(135deg, #0E6B3B 0%, #117F47 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.flash-sale-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 107, 59, 0.4);
}

.flash-sale-nav-item i {
    margin-right: 6px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(14, 107, 59, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(14, 107, 59, 0.8);
    }
}

/* ===== FLASH SALES SLIDESHOW ===== */
.flash-sales-slideshow {
    margin: 20px 0;
    background: #1A1A1A;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.slideshow-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0E6B3B 0%, #0C5A31 100%);
}

.slideshow-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #FFFFFF;
    padding: 40px;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 48px;
    margin: 0 0 16px 0;
    font-weight: 900;
}

.slide-content p {
    font-size: 18px;
    margin: 0 0 24px 0;
}

.slide-content .btn {
    display: inline-block;
    padding: 12px 32px;
    background: #FFFFFF;
    color: #0E6B3B;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.slide-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: #FFFFFF;
    transform: scale(1.2);
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slideshow-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slideshow-arrow {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slideshow-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
}

/* ============================================================================
   PHASE 2 RESPONSIVE NAVIGATION & DISPLAY UTILITIES
   ============================================================================ */

/* Mobile/Desktop Display Toggles */
.hide-mobile {
    display: inherit;
}

.hide-desktop {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .hide-desktop {
        display: inherit !important;
    }
}

@media (min-width: 1025px) {
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Staff-specific responsive rules */
@media (max-width: 1024px) {
    .desktop-staff-header,
    .desktop-staff-nav {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-staff-nav {
        display: none !important;
    }
}

/* Mobile Menu Additional Styles */
.mobile-menu-divider {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.mobile-menu-label {
    display: block;
    padding: 0.5rem 0;
}

.mobile-staff-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-green);
}

.mobile-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-staff-user-info {
    display: flex;
    flex-direction: column;
}

.mobile-staff-username {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-staff-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.mobile-staff-footer {
    background: var(--bg-surface-light);
}

.mobile-staff-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-logout {
    color: var(--accent-red) !important;
}

.mobile-menu-logout:hover {
    background: rgba(198, 40, 40, 0.1) !important;
}

/* Notification Badge */
.mobile-notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Image Skeleton Loading */
.image-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-surface-light) 25%,
        var(--bg-surface) 50%,
        var(--bg-surface-light) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.image-skeleton.loaded {
    animation: none;
    background: transparent;
}

/* Progressive Image Loading */
.progressive-image {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.progressive-image.blur {
    filter: blur(10px);
    opacity: 0.7;
}

.progressive-image.loaded {
    filter: blur(0);
    opacity: 1;
}

/* Image Error State */
.image-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Responsive Container Adjustments */
@media (max-width: 767px) {
    .page-shell {
        padding: 0.75rem !important;
    }
    
    main.page-shell {
        padding-top: 1rem !important;
    }
}

/* Better touch targets on mobile */
@media (max-width: 767px) {
    nav a,
    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}
