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

:root {
    --primary: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    
    --secondary: #dc004e;
    --secondary-light: #ff4081;
    --secondary-dark: #9a0036;
    
    --success: #4caf50;
    --success-light: #4caf50;
    --success-dark: #4caf50;
    
    --warning: #000000;
    --warning-light: #ffc947;
    --warning-dark: #c66900;
    
    --info: #2196f3;
    --info-light: #6ec6ff;
    --info-dark: #0069c0;
    
    --error: #f44336;
    --error-light: #ff7961;
    --error-dark: #ba000d;
    

    --background: #f5f5f5;
    --surface: #ffffff;
    --surface-dark: #f8f9fa;
    
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-disabled: rgba(0, 0, 0, 0.38);
    --text-on-primary: #ffffff;
    
    --divider: rgba(0, 0, 0, 0.12);
    --border: rgba(0, 0, 0, 0.23);
    
    --elevation-0: none;
    --elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --elevation-2: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    --elevation-3: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
    --elevation-4: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
    --elevation-6: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
    --elevation-8: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
    
    --font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

        main {
            margin-top: 60px; 
            min-height: calc(100vh - 76px - 200px); 
        }

.dashboard-header {
    background-color: var(--surface);
    box-shadow: var(--elevation-1);
    padding: var(--spacing-md) var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--divider);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.restaurant-info {
    display: flex;
    flex-direction: column;
}

.restaurant-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.restaurant-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--success);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: var(--radius-round);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mui-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-1);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mui-card:hover {
    box-shadow: var(--elevation-3);
    border-color: var(--primary-light);
}

.mui-card-content {
    padding: var(--spacing-lg);
}

.mui-card-header {
    padding: var(--spacing-lg);
    padding-bottom: 0;
}

.mui-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.mui-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
}

.stat-icon-container {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-container.primary {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary);
}

.stat-icon-container.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.stat-icon-container.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.stat-icon-container.info {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.stat-change {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

.orders-container {
    margin-bottom: var(--spacing-xl);
}

.order-card {
    border-left: 4px solid var(--primary);
    margin-bottom: var(--spacing-md);
}

.order-card.pending {
    border-left-color: var(--warning);
}

.order-card.processing {
    border-left-color: var(--info);
}

.order-card.completed {
    border-left-color: var(--success);
}

.order-card.delivering {
    border-left-color: var(--secondary);
}

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

.order-id {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.order-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-details {
    margin-bottom: var(--spacing-md);
}

.order-items {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.order-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.mui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 36px;
}

.mui-button:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.mui-button-contained {
    background-color: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--elevation-2);
}

.mui-button-contained:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--elevation-4);
}

.mui-button-contained.success {
    background-color: var(--success);
}

.mui-button-contained.success:hover {
    background-color: var(--success-dark);
}

.mui-button-contained.warning {
    background-color: var(--warning);
}

.mui-button-contained.warning:hover {
    background-color: var(--warning-dark);
}

.mui-button-outlined {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.mui-button-outlined:hover {
    background-color: rgba(25, 118, 210, 0.04);
    border-color: var(--primary);
}

.mui-button-text {
    background-color: transparent;
    color: var(--primary);
    border: none;
}

.mui-button-text:hover {
    background-color: rgba(25, 118, 210, 0.04);
}

.quick-actions {
    margin-bottom: var(--spacing-lg);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    text-align: center;
    gap: var(--spacing-md);
}

.action-button .material-icons {
    font-size: 2rem;
}

.progress-container {
    margin-top: var(--spacing-lg);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.progress-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, var(--warning), var(--warning-light));
}

.progress-fill.success {
    background: linear-gradient(90deg, var(--success), var(--success-light));
}


.kitchen-status {
    padding: var(--spacing-lg);
}

.status-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
}

.status-dot.available {
    background-color: var(--success);
}

.status-dot.busy {
    background-color: var(--warning);
}

.status-dot.full {
    background-color: var(--error);
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .header-actions {
        justify-content: flex-end;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mui-card-content {
        padding: var(--spacing-md);
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .mui-button {
        width: 100%;
    }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

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

.d-flex { display: flex; }

.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mb-4 {
    margin-top: 30px;
}

.dark-mode body {
    color: #e2e8f0;
}

.navbar.navbar-dark.bg-primary {
    background-color: #588157 !important; 
}

footer.bg-primary {
    background-color: #588157 !important; 
}

.dark-mode .navbar.navbar-dark.bg-primary,
.dark-mode footer.bg-primary {
    background-color: #588157 !important; 
}

.dark-mode main {
    background-color: #1a202c !important;
}

.dark-mode .bg-primary:not(.navbar):not(footer):not(.navbar-dark) {
    background-color: #4a5568 !important;
}

.dark-mode .card, 
.dark-mode .bg-white {
    background-color: #2d3748 !important;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .text-dark {
    color: #e2e8f0 !important;
}

.dark-mode .text-light {
    color: #cbd5e0 !important;
}

.dark-mode .border {
    border-color: #4a5568 !important;
}

.dark-mode .form-control {
    background-color: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .breadcrumb {
    background-color: #2d3748;
}

.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

.col-lg-4 {
    margin-top: -30px !important;
}

:root {
    --settings-btn-bg: #f3f4f6;        
    --settings-btn-text: #374151;       
    --settings-btn-hover: #e9e9e9; 
    --badge-bg-color: rgba(68, 128, 92, 0.1);
    --badge-text-color: #14532d;
    --badge-border-color: rgba(108, 224, 170, 0);
    --courier-badge-bg: rgb(216, 255, 230);
    --courier-badge-text: #166534;
    --courier-badge-border: transparent;
}

.dark-mode {
    --settings-btn-bg: #4b5563;         
    --settings-btn-text: #f3f4f6;       
    --settings-btn-hover: #6b7280;
    --badge-bg-color: #14532d; 
    --badge-text-color: rgb(108, 224, 170); 
    --badge-border-color: rgba(108, 224, 170, 0);
    --courier-badge-bg: #166534;
    --courier-badge-text: rgb(216, 255, 230);
    --courier-badge-border: transparent;
}
:root {

    --orders-bg: #dbeafe;     
    --orders-icon: #2563eb;   
    
    --revenue-bg: #dcfce7;     
    --revenue-icon: #16a34a;   
    
    --rating-bg: #fef9c3;      
    --rating-icon: #ca8a04;    
    
    --time-bg: #f3e8ff;        
    --time-icon: #9333ea;      
}

.dark-mode {
    --orders-bg: #2564eb83;      
    --orders-icon: #dbeafeb7;   
    
    --revenue-bg: #16a34a83;     
    --revenue-icon: #dcfce7bd;  
    
    --rating-bg: #ca8b047e;      
    --rating-icon: #fef9c3bd;    
    
    --time-bg: #9233ea85;        
    --time-icon: #f3e8ffb9;     
}

.dark-mode header,
.dark-mode footer,
.dark-mode .navbar-dark,
.dark-mode footer.bg-primary {
    background-color: #588157 !important;
}

.stocks-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.stocks-header {
    text-align: center;
    margin-bottom: 40px;
}

.stocks-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.stocks-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stock-card-promo {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stock-card-promo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stock-promo-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.stock-promo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.stock-promo-date {
    font-weight: 600;
    font-size: 1rem;
}

.stock-promo-content {
    padding: 30px 25px;
}

.stock-promo-title {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.stock-promo-subtitle {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 25px;
    font-weight: 600;
}

.stock-promo-description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.stock-promo-description p {
    margin-bottom: 15px;
}

.stock-promo-conditions {
    background: #f8f9fa;
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.promo-condition {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
    align-items: baseline;
}

.promo-condition:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.condition-amount {
    font-weight: 700;
    color: #ff6b6b;
    min-width: 100px;
    font-size: 1.1rem;
}

.condition-dish {
    color: #333;
    flex: 1;
    font-size: 1rem;
}

.promo-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 10px;
    background: #fff8e1;
    border-radius: 5px;
    border-left: 3px solid #ffd54f;
}

.stock-promo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.promo-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-order-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.promo-order-btn:hover {
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .stocks-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stocks-header h2 {
        font-size: 2rem;
    }
    
    .stock-promo-content {
        padding: 20px;
    }
    
    .stock-promo-title {
        font-size: 1.5rem;
    }
    
    .stock-promo-subtitle {
        font-size: 1.3rem;
    }
    
    .stock-promo-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .promo-order-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stocks-page {
        padding: 15px;
    }
    
    .stock-promo-header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stock-promo-conditions {
        padding: 15px;
    }
    
    .promo-condition {
        flex-direction: column;
        gap: 5px;
    }
    
    .condition-amount {
        min-width: auto;
    }
}



:root {
    --category-card-bg: rgba(255, 255, 255, 0.03);
    --category-card-border: rgba(85, 85, 85, 0.17);
    --category-text: #000000;
    
    --category-1-bg: rgba(76, 175, 80, 0.1);
    --category-1-icon: #4caf50;
    
    --category-2-bg: rgba(255, 152, 0, 0.1);
    --category-2-icon: #ea580c;
    
    --category-3-bg: rgba(244, 67, 54, 0.1);
    --category-3-icon: #f44336;
    
    --category-4-bg: #dbeafe;
    --category-4-icon: #2563eb;
    
    --category-5-bg: rgba(156, 39, 176, 0.1);
    --category-5-icon: #9c27b0;
    
    --category-6-bg: rgba(76, 175, 80, 0.1);
    --category-6-icon: #4caf50;
}

.dark-mode {
    --category-text: #ffffff;
    
    --category-1-bg: #14532d;
    --category-1-icon: #81c784;
    
    --category-2-bg: #7c2d12;
    --category-2-icon: #fb923c;
    
    --category-3-bg: #7f1d1d;
    --category-3-icon: #ef5350;
    
    --category-4-bg: #1e3a8a;
    --category-4-icon: #60a5fa;
    
    --category-5-bg: rgba(156, 39, 176, 0.3);
    --category-5-icon: #ba68c8;
    
    --category-6-bg: #14532d;
    --category-6-icon: #81c784;
}

.material-input {
    border-radius: 15px;
    border: 2px solid rgba(94, 49, 49, 0);
    background: transparent;
    font-size: 16px;
    padding: 8px 0;
    width: 50%;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-input:focus {
        border: 2px solid #4caf50;
}

.material-input:focus {
    outline: none;
}

.material-input:focus {
    outline: none;
}

.material-input-container.focused .position-absolute > div {
    transform: scaleX(1);
}

.material-button.accent {
    background: #bc6c25;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 120px;
    margin-right: 5px;
}

.material-button.accent:hover {
    background: rgb(209, 85, 2);
}

.material-card {
    border-radius: 15px;
    width: 90%;
}

:root {
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --divider: rgba(0, 0, 0, 0.12);
    --surface: #ffffff;
}

.dark-mode {
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --divider: rgba(255, 255, 255, 0.12);
    --surface: #1a202c;
}

.hero-overlay {
    background: #588157b3;
    transition: background-color 0.3s ease;
}

.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.dark-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.05);
}

.filter-restaurant {
    border-radius: 15px;
}

.filter-restaurant-input1 {
    width: 100px
}

.dark-mode .dropdown-filter {
    border-color: var(--divider) !important;
    background-color: black;
    color: var(--text-primary) !important;
}

.dark-mode .dropdown-filter option {
    background-color: var(--surface) !important;
    color: var(--text-primary) !important;
}

.dark-mode .position-absolute i.fa-chevron-down {
    color: var(--text-secondary) !important;
}

.dropdown-filter:hover {
    border-color: var(--text-secondary) !important;
}

.dropdown-filter:focus {
    outline: none;
    border-color: #588157 !important;
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.15) !important;
}

.menu-page {
    padding: 16px;
}

.restaurant-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    margin-bottom: 16px;
    overflow: hidden;
}

.restaurant-header-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .restaurant-header-content {
        flex-direction: row;
        align-items: center;
    }
}

.restaurant-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .restaurant-image {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.restaurant-info {
    flex: 1;
}

.restaurant-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
}

.restaurant-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

.restaurant-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.stat-item i {
    margin-right: 4px;
    color: #666;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;
    }
}

.categories-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .categories-sidebar {
        width: 25%;
        min-width: 220px;
    }
}

.categories-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    padding: 16px;
    position: sticky;
    top: 20px;
}

.categories-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}

.category-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.category-link:hover {
    background: rgba(0,0,0,0.04);
}

.dishes-container {
    flex: 1;
    width: 100%;
}

@media (min-width: 1024px) {
    .dishes-container {
        width: 75%;
    }
}

.category-section {
    margin-bottom: 24px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
}

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

@media (min-width: 768px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dish-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.24);
    padding: 12px;
    border: 1px;
    transition: all 0.3s;
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.dish-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dish-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.dish-content {
    flex: 1;
    min-width: 0;
}

.dish-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.dish-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 16px;
    font-weight: bold;
    color: #6ca06c;
}

.add-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background-color: #588157;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
}

.add-btn:hover {
    background-color: rgb(53, 126, 52);
}

.add-btn i {
    font-size: 20px;
}

.dark-mode .category-link {
    color: #e0e0e0;
}

.dark-mode .category-link:hover {
    background: rgba(255,255,255,0.1);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-display i {
    color: #ffc107;
}

.restaurant-header-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.restaurant-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}

.restaurant-info {
    flex: 1;
}

.restaurant-header-row {
    margin-bottom: 15px;
}

.restaurant-header-row h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.restaurant-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.compact-form {
    max-width: 320px;
}

.compact-rating-input {
    margin-bottom: 10px;
}

.star-input-10-compact {
    display: flex;
    flex-direction: row;
    gap: 2px;
    margin-bottom: 3px;
}

.compact-star {
    cursor: pointer;
    font-size: 16px;
    color: #ddd;
    transition: all 0.2s;
    padding: 0;
}

.compact-star:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.star-input-10-compact input[type="radio"]:checked ~ .compact-star i,
.star-input-10-compact input[type="radio"]:checked + .compact-star ~ .compact-star i {
    color: #ddd;
}

.star-input-10-compact input[type="radio"]:checked + .compact-star i,
.star-input-10-compact .compact-star:hover i,
.star-input-10-compact .compact-star:hover ~ .compact-star i {
    color: #ffc107;
}

.rating-scale-compact {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.compact-comment-input {
    display: flex;
    gap: 5px;
    align-items: center;
}

.compact-comment-textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px !important;
    padding: 6px 8px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    resize: none !important;
    transition: border-color 0.2s;
}

.compact-comment-textarea:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.compact-submit-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.compact-submit-btn:hover {
    background: #c82333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.review-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-user {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

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

.review-content {
    margin: 8px 0;
    flex: 1;
}

.review-content p {
    margin: 0;
    line-height: 1.4;
}

.review-dish {
    padding: 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
    margin-top: 8px;
    font-size: 13px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.reviews-link {
    display: block;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    margin-top: 8px;
    color: #dc3545 !important;
    text-decoration: none !important;
    font-size: 14px;
}

.reviews-link:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
}

.alert {
    padding: 8px 12px !important;
    border-radius: 5px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.restaurant-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

:root {
    --order-status-bg: #fed7aa;
    --order-status-text: #7c2d12;
    --order-status-icon: #7c2d12;
}

.dark-mode {
    --order-status-bg: #7c2d12;
    --order-status-text: #fed7aa;
    --order-status-icon: #fed7aa;
}

.invalid-feedback {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 12 12\' width=\'12\' height=\'12\' fill=\'none\' stroke=\'%23dc3545\'%3e%3ccircle cx=\'6\' cy=\'6\' r=\'4.5\'/%3e%3cpath stroke-linejoin=\'round\' d=\'M5.8 3.6h.4L6 6.5z\'/%3e%3ccircle cx=\'6\' cy=\'8.2\' r=\'.6\' fill=\'%23dc3545\' stroke=\'none\'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 12 12\' width=\'12\' height=\'12\' fill=\'none\' stroke=\'%23dc3545\'%3e%3ccircle cx=\'6\' cy=\'6\' r=\'4.5\'/%3e%3cpath stroke-linejoin=\'round\' d=\'M5.8 3.6h.4L6 6.5z\'/%3e%3ccircle cx=\'6\' cy=\'8.2\' r=\'.6\' fill=\'%23dc3545\' stroke=\'none\'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

[data-theme="dark"] .profile-input,
.dark-theme .profile-input {
    color: var(--text-primary, #ffffff) !important;
    background-color: var(--input-bg, rgba(55, 65, 81, 0.25)) !important;
    border-color: var(--input-border, rgba(75, 85, 99, 0.56)) !important;
}

[data-theme="dark"] .bg-white,
.dark-theme .bg-white {
    background-color: var(--card-bg, #1f2937) !important;
}

[data-theme="dark"] .text-dark,
.dark-theme .text-dark {
    color: var(--text-primary, #ffffff) !important;
}

[data-theme="dark"] .text-muted,
.dark-theme .text-muted {
    color: var(--text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .border,
.dark-theme .border {
    border-color: var(--border-color, #374151) !important;
}

select.form-control {
    background-color: var(--input-bg, rgba(248, 249, 250, 0.25)) !important;
    color: var(--text-primary, #000000) !important;
    border: 1px solid var(--input-border, rgba(224, 224, 224, 0.56)) !important;
}

select.form-control option {
    background-color: var(--input-bg, white) !important;
    color: var(--text-primary, #000000) !important;
    padding: 8px 12px !important;
}

select.form-control:focus {
    border-color: #588157 !important;
    box-shadow: 0 0 0 2px rgba(88, 129, 87, 0.2) !important;
}

select.form-control option:hover {
    background-color: var(--primary-light, rgba(88, 129, 87, 0.1)) !important;
}

select.form-control option:checked {
    background-color: var(--primary-light, rgba(88, 129, 87, 0.2)) !important;
    font-weight: 500 !important;
}

.btn.p-2:hover {
    background-color: rgba(248, 249, 250, 0.25) !important;
}

.delivery-type-select:focus {
    border-color: #588157 !important;
    box-shadow: 0 0 0 2px rgba(88, 129, 87, 0.2) !important;
    outline: none !important;
}

.text-danger:hover {
    opacity: 0.8;
}

.bucket-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    outline: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn:hover {
    opacity: 0.8;
}

.bucket-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
}
        
.bucket-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6b00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
        
.nav-link.active {
    position: relative;
    font-weight: 500;
}
        
        .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}
        
@media (max-width: 991.98px) {
    .nav-item .nav-link .nav-text {
        display: inline;
    }
    
    .navbar-nav {
        align-items: flex-start !important;
        padding-top: 10px;
    }
}
        
@media (max-width: 767.98px) {
    .nav-item .nav-link .nav-text {
        display: none;
    }
    
    .nav-item .nav-link i {
        font-size: 1.2rem;
        margin-right: 0 !important;
    }
            
    .bucket-link {
        gap: 0;
    }
}
        
.theme-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(88, 129, 87, 0.7);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(88, 129, 87, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(88, 129, 87, 0);
        }
    }
    
    @keyframes pulse-orange {
        0% {
            box-shadow: 0 0 0 0 rgba(188, 108, 37, 0.7);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(188, 108, 37, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(188, 108, 37, 0);
        }
    }
    
    .pulse-circle {
        animation: pulse 2s infinite;
    }
    
    input[type="radio"]:checked {
        background-color: #588157 !important;
    }
    
    input[type="radio"]:focus {
        outline: 2px solid #588157;
        outline-offset: 2px;
    }
    
    .text-secondary-custom {
        color: var(--text-secondary, rgba(0, 0, 0, 0.6)) !important;
    }
    
    .text-primary-custom {
        color: var(--text-primary, #000000) !important;
    }