/* Custom Styles for Curry Point */
:root {
    --primary-color: #d97706;
    --secondary-color: #059669;
    --accent-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #ca8a04;
    --info-color: #2563eb;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --header-footer-bg: #f8f9fa;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Header Styles */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
    background-color: var(--header-footer-bg) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Footer Styles */
footer {
    background-color: var(--header-footer-bg) !important;
    border-top: 1px solid #e5e7eb;
}

[data-bs-theme="dark"] footer {
    background-color: #1f2937 !important;
    border-top-color: #374151;
}

/* Main Content */
.main-content {
    margin-top: 76px;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
}

/* Menu Items */
.menu-item-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.category-veg {
    background-color: #16a34a !important;
    color: white !important;
}

.category-non-veg {
    background-color: #dc2626 !important;
    color: white !important;
}

.category-egg {
    background-color: #f59e0b !important;
    color: white !important;
}

.availability-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Order Summary */
.order-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: #374151;
}

.order-item-price {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

.floating-nav .btn {
    width: 60px;
    height: 60px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-nav .btn i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Dark Theme */
[data-bs-theme="dark"] {
    --bs-body-bg: #111827;
    --bs-body-color: #f9fafb;
}

[data-bs-theme="dark"] .card {
    background-color: #1f2937;
    border-color: #374151;
}

[data-bs-theme="dark"] .menu-item:hover {
    background-color: #374151;
}

[data-bs-theme="dark"] .menu-item-card {
    background-color: #1f2937;
    border-color: #374151;
}

[data-bs-theme="dark"] .navbar {
    background-color: #1f2937 !important;
    border-bottom-color: #374151;
}

/* Toast Dark Theme */
.toast-dark {
    background-color: #374151 !important;
    color: #f9fafb !important;
}

.toast-dark .toast-header {
    background-color: #4b5563 !important;
    color: #f9fafb !important;
    border-bottom-color: #6b7280 !important;
}

.toast-dark .btn-close {
    filter: invert(1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 1rem;
    z-index: 1055;
}

@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .toast {
        width: 100% !important;
    }
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #b45309;
    border-color: #b45309;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Mobile Theme Toggle */
@media (max-width: 768px) {
    .mobile-theme-toggle {
        display: block !important;
    }
    
    .desktop-theme-toggle {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-theme-toggle {
        display: none !important;
    }
    
    .desktop-theme-toggle {
        display: block !important;
    }
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.25);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* PWA Styles */
.app-header {
    -webkit-app-region: drag;
}

.app-header .navbar-nav {
    -webkit-app-region: no-drag;
}

/* Print Styles */
@media print {
    .navbar,
    .floating-nav,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Professional Enhancements */
.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

[data-bs-theme="dark"] .card-title {
    color: var(--light-color);
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-color), #b45309);
    border: none;
}

.summary-card .card-body {
    color: white;
}

.delivery-summary-card {
    background: linear-gradient(135deg, var(--info-color), #1d4ed8);
    border: none;
}

.delivery-summary-card .card-body {
    color: white;
}

/* Enhanced Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Notification Bar */
.notification-bar {
    background-color: var(--warning-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0;
}

.notification-bar .btn-close {
    filter: invert(1);
}

/* Hide the native show/hide password icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-password-toggle-button {
    display: none !important;
}