/* ============================================
   GLOBAL STYLES - Restaurant Ordering System
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --primary-dark: #d62839;
    --secondary-color: #f77f00;
    --success-color: #06a77d;
    --warning-color: #ffb703;
    --danger-color: #d62839;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-12 { width: 100%; padding: 0 0.5rem; }
.col-6 { width: 50%; padding: 0 0.5rem; }
.col-4 { width: 33.333%; padding: 0 0.5rem; }
.col-3 { width: 25%; padding: 0 0.5rem; }

/* Cards - Fluent Design System */
.card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-body {
    padding: 0;
}

.card-footer {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Buttons - Global Consistent Styling */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #e67000;
    color: #ffffff;
}

.btn-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.btn-success:hover {
    background-color: #058a6a;
    color: #ffffff;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #e6a500;
    color: #ffffff;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b82231;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

/* Tables - Global Consistent Styling */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background-color: var(--dark-color);
    color: #ffffff;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

/* Page Navigation */
.page-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.page-nav a {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.page-nav a:hover,
.page-nav a.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

/* ============================================
   ALERT SYSTEM STYLES
   ============================================ */

/* In-Page Alert Container */
.page-alerts-container {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

/* In-Page Alert */
.page-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    background-color: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition);
}

.page-alert-show {
    opacity: 1;
    transform: translateY(0);
}

.page-alert-hide {
    opacity: 0;
    transform: translateY(-10px);
}

.page-alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.page-alert-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.page-alert-message {
    flex: 1;
}

.page-alert-dismiss {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex-shrink: 0;
}

.page-alert-dismiss:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

/* In-Page Alert Types */
.page-alert-success {
    border-color: var(--success-color);
    color: #155724;
    background-color: #d4edda;
}

.page-alert-success i {
    color: var(--success-color);
}

.page-alert-error {
    border-color: var(--danger-color);
    color: #721c24;
    background-color: #f8d7da;
}

.page-alert-error i {
    color: var(--danger-color);
}

.page-alert-warning {
    border-color: var(--warning-color);
    color: #856404;
    background-color: #fff3cd;
}

.page-alert-warning i {
    color: var(--warning-color);
}

.page-alert-info {
    border-color: #0c5460;
    color: #0c5460;
    background-color: #d1ecf1;
}

.page-alert-info i {
    color: #0c5460;
}

/* Floating Notification Container */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

/* Floating Notification */
.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: all;
    min-width: 300px;
}

.notification-show {
    opacity: 1;
    transform: translateX(0);
}

.notification-hide {
    opacity: 0;
    transform: translateX(400px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
}

.notification-dismiss {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-dismiss:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Notification Types */
.notification-success {
    border-color: var(--success-color);
    color: #155724;
    background-color: #d4edda;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-color: var(--danger-color);
    color: #721c24;
    background-color: #f8d7da;
}

.notification-error i {
    color: var(--danger-color);
}

.notification-warning {
    border-color: var(--warning-color);
    color: #856404;
    background-color: #fff3cd;
}

.notification-warning i {
    color: var(--warning-color);
}

.notification-info {
    border-color: #0c5460;
    color: #0c5460;
    background-color: #d1ecf1;
}

.notification-info i {
    color: #0c5460;
}

/* Confirmation Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}

.confirm-overlay-show {
    opacity: 1;
}

.confirm-overlay-hide {
    opacity: 0;
}

.confirm-dialog {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.confirm-overlay-show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.confirm-dialog-header i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.confirm-dialog-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.confirm-dialog-body {
    padding: 1.5rem;
}

.confirm-dialog-body p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.confirm-dialog-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-color);
}

.confirm-dialog-footer .btn {
    min-width: 100px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }

    .confirm-dialog {
        width: 95%;
        margin: 1rem;
    }

    .confirm-dialog-footer {
        flex-direction: column-reverse;
    }

    .confirm-dialog-footer .btn {
        width: 100%;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    background-color: var(--text-muted);
    color: #ffffff;
}

.badge-primary { background-color: var(--primary-color); }
.badge-success { background-color: var(--success-color); }
.badge-warning { background-color: var(--warning-color); }
.badge-danger { background-color: var(--danger-color); }

/* Product Cards */
.product-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
    overflow: hidden;
}

/* Product Image Badges - Overlay badges on product images */
.product-image-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.product-badge i {
    font-size: 0.7rem;
}

.product-badge-vegetarian {
    background: linear-gradient(135deg, #06a77d 0%, #04d98b 100%);
}

.product-badge-spicy {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
}

.product-badge-new {
    background: linear-gradient(135deg, #ffb703 0%, #ffd60a 100%);
    color: var(--dark-color);
}

.product-badge-popular {
    background: linear-gradient(135deg, #f77f00 0%, #ffb703 100%);
}

.product-badge-chicken {
    background: linear-gradient(135deg, #ff9a56 0%, #ffad56 100%);
}

.product-badge-meat {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

/* Responsive badges */
@media (max-width: 768px) {
    .product-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    .product-badge i {
        font-size: 0.65rem;
    }
    
    .product-image-badges {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.4rem;
    }
}

/* Menu Filter Tags */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: #ffffff;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-tag.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.filter-tag i {
    font-size: 0.875rem;
}

.filter-tag-vegetarian.active {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #06a77d 0%, #04d98b 100%);
    color: #ffffff;
}

.filter-tag-spicy.active {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    color: #ffffff;
}

.filter-tag-chicken.active {
    background: linear-gradient(135deg, #ff9a56 0%, #ffad56 100%);
    border-color: #ff9a56;
    color: #ffffff;
}

.filter-tag-meat.active {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-color: #8b4513;
    color: #ffffff;
}

/* Product card filtering */
.col-4.hidden {
    display: none;
}

@media (max-width: 768px) {
    .menu-filters {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-weight-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    background-color: var(--secondary-color);
    color: #ffffff;
    margin-left: 0.25rem;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Cart */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.quantity-btn:hover {
    color: var(--primary-dark);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.cart-summary {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 2rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row:last-child {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Order Status */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-preparing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-ready {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .col-6,
    .col-4,
    .col-3 {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    .page-header {
        padding: 2rem 0;
    }
}

/* Extras Section */
#extras-section .btn-outline {
    text-align: left;
    padding: 0.75rem 1rem;
}

#extras-section .btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

#extras-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1rem;
    }

    .product-body {
        padding: 1rem;
    }
    
    #extras-section .row {
        flex-direction: column;
    }
    
    #extras-section .col-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

/* Restaurant Status Button */
.restaurant-status-btn {
    margin: 0;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.restaurant-status-btn.restaurant-open {
    background-color: var(--success-color);
    color: #ffffff;
}

.restaurant-status-btn.restaurant-open:hover {
    background-color: #058a6a;
    color: #ffffff;
}

.restaurant-status-btn.restaurant-closed {
    background-color: var(--danger-color);
    color: #ffffff;
}

.restaurant-status-btn.restaurant-closed:hover {
    background-color: #b82231;
    color: #ffffff;
}

.restaurant-status-btn i {
    margin-right: 0.5rem;
}

/* POS Modal Styles */
.pos-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.pos-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pos-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 1400px;
    max-height: calc(100vh - 2rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}

.pos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: #ffffff;
}

.pos-modal-header h2 {
    margin: 0;
    color: #ffffff;
}

.pos-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.pos-modal-close:hover {
    opacity: 0.7;
}

.pos-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pos-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
    overflow: hidden;
    min-height: 400px;
}

.pos-products-section {
    overflow-y: auto;
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    min-height: 0;
    flex: 1;
}

.pos-products-section::-webkit-scrollbar {
    width: 8px;
}

.pos-products-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pos-products-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.pos-products-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.pos-category-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pos-category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.pos-category-btn:hover,
.pos-category-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.pos-product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.pos-product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.pos-product-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.pos-product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.pos-cart-section {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    min-height: 0;
    flex: 1;
}

.pos-cart-section::-webkit-scrollbar {
    width: 8px;
}

.pos-cart-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pos-cart-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.pos-cart-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.pos-cart-header {
    margin-bottom: 1rem;
}

.pos-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.pos-cart-items {
    flex: 1;
    margin-bottom: 1rem;
    min-height: 200px;
    overflow-y: auto;
    max-height: calc(100vh - 500px);
}

.pos-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.pos-cart-item-info {
    flex: 1;
}

.pos-cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pos-cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.pos-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.pos-cart-item-quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.pos-cart-item-quantity-btn:hover {
    color: var(--primary-dark);
}

.pos-cart-item-quantity-value {
    min-width: 30px;
    text-align: center;
}

.pos-cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.pos-cart-item-remove:hover {
    color: var(--primary-dark);
}

.pos-cart-total {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pos-total-row:last-child {
    border-bottom: none;
}

.pos-total-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--border-color);
}

.pos-customer-info {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.pos-customer-info h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pos-customer-info .form-group {
    margin-bottom: 1rem;
}

.pos-customer-info .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.pos-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pos-cart-item-edit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pos-cart-item-edit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.pos-ingredient-item {
    transition: var(--transition);
}

.pos-ingredient-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

/* Customer and Ingredient Modals - Smaller modals */
.pos-modal-content[style*="max-width: 600px"],
.pos-modal-content[style*="max-width: 700px"] {
    max-width: 95% !important;
    max-height: calc(100vh - 2rem) !important;
    margin: 1rem !important;
    height: auto;
}

.pos-modal-content[style*="max-width: 600px"] .pos-modal-body,
.pos-modal-content[style*="max-width: 700px"] .pos-modal-body {
    overflow-y: auto !important;
    max-height: calc(100vh - 150px) !important;
    padding: 1.5rem !important;
    min-height: 0;
}

/* Ingredient modal specific - ensure content area is scrollable */
#pos-ingredient-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

#pos-ingredient-content::-webkit-scrollbar {
    width: 6px;
}

#pos-ingredient-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#pos-ingredient-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

#pos-ingredient-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (max-width: 1024px) {
    .pos-modal.active {
        padding: 0.5rem;
    }

    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: calc(100vh - 250px);
        min-height: 300px;
    }

    .pos-products-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 300px;
        min-height: 200px;
    }

    .pos-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 1rem);
        margin: 0.5rem;
    }

    .pos-modal-content[style*="max-width: 600px"],
    .pos-modal-content[style*="max-width: 700px"] {
        max-width: 100% !important;
        margin: 0.5rem !important;
    }

    .pos-modal-content[style*="max-width: 600px"] .pos-modal-body,
    .pos-modal-content[style*="max-width: 700px"] .pos-modal-body {
        max-height: calc(100vh - 120px) !important;
        padding: 1rem !important;
    }

    #pos-ingredient-content {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 768px) {
    .pos-modal.active {
        padding: 0.25rem;
    }

    .pos-modal-header {
        padding: 1rem;
    }

    .pos-modal-header h2 {
        font-size: 1.1rem;
    }

    .pos-container {
        max-height: calc(100vh - 200px);
        min-height: 250px;
    }

    .pos-products-section {
        max-height: 250px;
        padding: 1rem;
    }

    .pos-cart-section {
        padding: 1rem;
    }

    .pos-modal-content {
        max-height: calc(100vh - 0.5rem);
        margin: 0.25rem;
        border-radius: var(--border-radius);
    }

    .pos-modal-content[style*="max-width: 600px"] .pos-modal-body,
    .pos-modal-content[style*="max-width: 700px"] .pos-modal-body {
        max-height: calc(100vh - 100px) !important;
        padding: 0.75rem !important;
    }

    #pos-ingredient-content {
        max-height: calc(100vh - 200px);
    }

    .pos-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .pos-product-card {
        padding: 0.75rem;
    }

    .pos-product-name {
        font-size: 0.9rem;
    }

    .pos-product-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pos-modal.active {
        padding: 0;
    }

    .pos-modal-content {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .pos-modal-header {
        padding: 0.75rem;
    }

    .pos-modal-header h2 {
        font-size: 1rem;
    }

    .pos-container {
        max-height: calc(100vh - 150px);
        min-height: 200px;
    }

    .pos-products-section {
        max-height: 200px;
        padding: 0.75rem;
    }

    .pos-cart-section {
        padding: 0.75rem;
    }

    .pos-modal-content[style*="max-width: 600px"] .pos-modal-body,
    .pos-modal-content[style*="max-width: 700px"] .pos-modal-body {
        max-height: calc(100vh - 80px) !important;
        padding: 0.75rem !important;
    }

    #pos-ingredient-content {
        max-height: calc(100vh - 150px);
    }

    .pos-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .pos-category-filter {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .pos-category-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Step Indicator / Breadcrumb Navigation */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0 1rem;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    position: relative;
}

.checkout-steps a.step {
    cursor: pointer;
    transition: var(--transition);
}

.checkout-steps a.step:hover .step-number {
    transform: scale(1.1);
}

.checkout-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.checkout-steps .step.completed::after {
    background-color: var(--success-color);
}

.checkout-steps .step.active::after {
    background-color: var(--primary-color);
}

.checkout-steps .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background: var(--light-color);
    padding: 0 1rem;
}

.checkout-steps .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.checkout-steps .step.active .step-number {
    background-color: var(--primary-color);
    color: #ffffff;
}

.checkout-steps .step.completed .step-number {
    background-color: var(--success-color);
    color: #ffffff;
}

.checkout-steps .step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.checkout-steps .step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-steps .step.completed .step-label {
    color: var(--success-color);
}

.checkout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.checkout-navigation .btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-navigation .btn-forward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

@media (max-width: 768px) {
    .checkout-steps {
        margin: 1.5rem 0;
    }

    .checkout-steps .step-label {
        font-size: 0.75rem;
    }

    .checkout-steps .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .checkout-steps .step:not(:last-child)::after {
        right: -40%;
    }

    .checkout-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .checkout-navigation .btn-forward {
        margin-left: 0;
        width: 100%;
    }

    .checkout-navigation .btn-back {
        width: 100%;
    }
}

