/* ============================================
   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; }

/* Responsive Column Utilities */
@media (max-width: 768px) {
    .col-mobile-full {
        width: 100% !important;
    }
}

/* 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);
    border-radius: var(--border-radius);
}

.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
   ============================================ */

/* Button - Base button component */
.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-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

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

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

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

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

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

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

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

.btn-logout:hover {
    background-color: #1a1c2e;
    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;
}

/* ============================================
   SMALL BUTTON VARIANTS
   ============================================ */

/* Small Button - Base small button component */
.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    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-small-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

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

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

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

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

.btn-small-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}

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

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

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

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

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

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

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

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

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

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

/* ============================================
   TOGGLE SWITCHER COMPONENT
   ============================================ */

/* Toggle Switcher - Base toggle switch component */
.toggle-switcher {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switcher-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-switcher-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switcher input:checked + .toggle-switcher-slider {
    background-color: var(--primary-color);
}

.toggle-switcher input:focus + .toggle-switcher-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

.toggle-switcher input:disabled + .toggle-switcher-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switcher-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toggle-switcher-wrapper label:first-child {
    flex: 1;
    margin-bottom: 0;
    font-weight: 500;
}

.toggle-switcher-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switcher-inline .toggle-switcher {
    order: 1;
}

.toggle-switcher-inline label:not(.toggle-switcher) {
    order: 2;
    margin-bottom: 0;
}

/* ============================================
   FORMS - FORM COMPONENTS
   ============================================ */

/* Form Group - Form field container */
.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 - Base table component */
.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 COMPONENT
   ============================================ */

/* Navbar - Main navigation bar */
.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);
}

/* Navbar Dropdown - Pure CSS Hover */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown > a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.navbar-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Pure CSS hover dropdown - no JavaScript needed */
.navbar-dropdown:hover .navbar-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.navbar-submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.navbar-submenu li {
    margin: 0;
}

.navbar-submenu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-submenu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.navbar-submenu a i {
    width: 16px;
    text-align: center;
    font-size: 0.875rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #333;
}

.loading-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    color: #333;
}

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

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

/* Responsive loading overlay */
@media (max-width: 768px) {
    .loading-logo {
        max-height: 80px;
    }
}

/* Flag Icon */
.flag-icon {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 2px;
}



/* Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 3rem 0;
    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 Grid Layout */
.product-grid {
    margin: 0 -5px;
    row-gap: 10px;
}

.product-grid > [class*="col-"] {
    padding: 0 5px;
}

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

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

/* Product Image Aspect Ratio Classes */
.product-image.image-square {
    aspect-ratio: 1 / 1;
    height: auto;
}

.product-image.image-wide {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* 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%);
}

.product-badge-fish {
    background: linear-gradient(135deg, #006994 0%, #0099cc 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 PAGE FILTERS
   ============================================ */

/* Menu Filters - Filter tags container */
.menu-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Filter Row - Individual filter rows */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Visual Separator - Between filter rows */
.filter-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 0.5rem 0;
}

.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.active i {
    color: #ffffff;
}

/* Badge filter button colors - normal state */
.filter-tag-vegetarian {
    border-color: var(--success-color) !important;
}

.filter-tag-spicy {
    border-color: var(--danger-color) !important;
}

.filter-tag-chicken {
    border-color: #ffc107 !important;
}

.filter-tag-meat {
    border-color: #6c757d !important;
}

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

.filter-tag-vegetarian.active i {
    color: #ffffff;
}

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

.filter-tag-spicy.active i {
    color: #ffffff;
}

.filter-tag-chicken.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #ffffff;
}

.filter-tag-chicken.active i {
    color: #ffffff;
}

.filter-tag-meat.active {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.filter-tag-meat.active i {
    color: #ffffff;
}

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

.filter-tag-category.active i {
    color: #ffffff;
}

/* Category-specific colors */
.filter-tag-category-pizzalar {
    border-color: #e63946 !important;
}

.filter-tag-category-pizzalar.active {
    background: #e63946;
    color: #ffffff;
}

.filter-tag-category-pizzalar.active i {
    color: #ffffff;
}

.filter-tag-category-makarnalar {
    border-color: #f77f00 !important;
}

.filter-tag-category-makarnalar.active {
    background: #f77f00;
    color: #ffffff;
}

.filter-tag-category-makarnalar.active i {
    color: #ffffff;
}

.filter-tag-category-hamburgerler {
    border-color: #d62839 !important;
}

.filter-tag-category-hamburgerler.active {
    background: #d62839;
    color: #ffffff;
}

.filter-tag-category-hamburgerler.active i {
    color: #ffffff;
}

.filter-tag-category-salatalar {
    border-color: #06a77d !important;
}

.filter-tag-category-salatalar.active {
    background: #06a77d;
    color: #ffffff;
}

.filter-tag-category-salatalar.active i {
    color: #ffffff;
}

.filter-tag-category-atistirmaliklar {
    border-color: #7209b7 !important;
}

.filter-tag-category-atistirmaliklar.active {
    background: #7209b7;
    color: #ffffff;
}

.filter-tag-category-atistirmaliklar.active i {
    color: #ffffff;
}

.filter-tag-category-icecekler {
    border-color: #48cae4 !important;
}

.filter-tag-category-icecekler.active {
    background: #48cae4;
    color: #ffffff;
}

.filter-tag-category-icecekler.active i {
    color: #ffffff;
}

.filter-tag-category-tatlilar {
    border-color: #f72585 !important;
}

.filter-tag-category-tatlilar.active {
    background: #f72585;
    color: #ffffff;
}

.filter-tag-category-tatlilar.active i {
    color: #ffffff;
}

/* Product card filtering */
/* Utility Classes */
.hidden {
    display: none !important;
}

.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);
}

/* ============================================
   QR MENU - SPECIFIC STYLES
   ============================================ */

.page-header {
    background: #f8f9fa;
    color: #333;
    padding: 2rem 0;
    text-align: center;
}

.header-logo {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
}



.filter-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag:hover {
    border-color: var(--primary-color, #667eea);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 100%;
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

/* Product Image Classes */
.product-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay:not(.lightbox-hidden) {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay:not(.lightbox-hidden) .lightbox-container {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-product-name {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

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

.lightbox-prev,
.lightbox-next {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.lightbox-hidden {
    display: none;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95%;
        max-height: 95%;
        margin: 10px;
    }
    
    .lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .lightbox-navigation {
        padding: 0 15px;
    }
    
    .lightbox-product-name {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Product image cursor pointer */
.product-card img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.lightbox-hidden {
    display: none;
}

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

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-weight-badge {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badge {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: fit-content;
}

.product-badge-vegetarian {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.product-badge-spicy {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.product-badge-chicken {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.product-badge-meat {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color, #667eea);
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white !important;
}

.card-header * {
    color: white !important;
}

.card-body {
    padding: 2rem;
}

.empty-category {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.product-image-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* QR Menu Responsive Design */
@media (max-width: 768px) {
    .header-logo {
        max-height: 80px;
    }
    
    .menu-filters {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .filter-row {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .product-image {
        height: 100%;
        width: 100%;
        max-width: 500px;
        max-height: 500px;
        aspect-ratio: 1/1;
        font-size: 2.5rem;
    }
    
    .product-body {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ============================================
   CART - SHOPPING CART PAGE
   ============================================ */

/* Cart Item - Individual cart item row */
.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: contain;
    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 - SITE FOOTER
   ============================================ */

/* Footer - Main site 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; }

/* ============================================
   BUTTON GROUPS & ACTION GROUPS
   ============================================ */

/* Button Group - Horizontal button container */
.btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Button Group - Vertical layout */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Button Group - Actions (for table rows, cards) */
.btn-group-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Button Group - Header actions (page headers, card headers) */
.btn-group-header {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Button Group - Inline (compact spacing) */
.btn-group-inline {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Product Actions Group - Product management buttons */
.product-actions-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Table Actions Group - Table row action buttons */
.table-actions-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Form Actions Group - Form submit/cancel buttons */
.form-actions-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Modal Actions Group - Modal footer buttons */
.modal-actions-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   LAYOUT ROWS WITH CONTEXT
   ============================================ */

/* Products Header Row - Product page header with title and actions */
.products-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Products Actions Column - Right-aligned actions column */
.products-actions-col {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Card Header Row - Card header with title and actions */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Form Row Split - Two-column form layout */
.form-row-split {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Form Row Full - Full-width form row */
.form-row-full {
    width: 100%;
}

/* Stats Grid Row - Statistics cards grid container */
.stats-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   PRODUCT MANAGEMENT CLASSES
   ============================================ */

/* Products Table - Main products listing table */
.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Products Table Row - Individual product row */
.products-table-row {
    transition: var(--transition);
}

.products-table-row:hover {
    background-color: #f8f9fa;
}

/* Product Order Controls - Up/Down buttons for reordering */
.product-order-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Product Image Preview - Product image thumbnail container */
.product-image-preview {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Product Form Row - Product form layout rows */
.product-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Product Form Actions - Product form action buttons container */
.product-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   MODAL CLASSES
   ============================================ */

/* Modal Overlay - Modal backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modal Content Wrapper - Modal content container */
.modal-content-wrapper {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
}

/* Category Reorder Modal - Category reordering modal */
.category-reorder-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Management Modal - Category management modal */
.category-management-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   STAT CARD CLASSES
   ============================================ */

/* Stat Card - Base stat card */
.stat-card-base {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

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

/* Stat Card - Total IPs (purple gradient) */
.stat-card-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Stat Card - Locked IPs (pink gradient) */
.stat-card-locked {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

/* Stat Card - High Attempts (yellow gradient) */
.stat-card-high-attempts {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
}

/* Stat Card - Failed Attempts (blue gradient) */
.stat-card-failed {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
    border: none;
}

/* Stat Card Content - Stat card body content */
.stat-card-content {
    padding: 1.5rem;
}

/* Stat Card Title - Stat card heading */
.stat-card-title {
    margin: 0;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

/* Stat Card Label - Stat card description */
.stat-card-label {
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ============================================
   TABLE-SPECIFIC CLASSES
   ============================================ */

/* Table Cell - Order column */
.table-cell-order {
    width: 50px;
    text-align: center;
}

/* Table Cell - Image column */
.table-cell-image {
    width: 80px;
    text-align: center;
}

/* Table Cell - Actions column */
.table-cell-actions {
    text-align: right;
    white-space: nowrap;
}

/* Table Row - Disabled state */
.table-row-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Table Row - Locked state (for login attempts) */
.table-row-locked {
    background-color: #fff3cd;
}

/* ============================================
   FORM-SPECIFIC ENHANCED CLASSES
   ============================================ */

/* I18n Input Group - Multilingual input container */
.i18n-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* I18n Input - Individual language input wrapper */
.i18n-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* I18n Label - Language label with flag */
.i18n-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* I18n Input Wrapper - Individual i18n input container */
.i18n-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* I18n Label Flag - Flag icon label */
.i18n-label-flag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* ============================================
   ADMIN TOOL SPECIFIC CLASSES
   ============================================ */

/* Admin Tool Stats Grid - Statistics grid container */
.admin-tool-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Admin Tool Card Section - Collapsible card section */
.admin-tool-card-section {
    margin-bottom: 1.5rem;
}

/* Admin Tool Log Viewer - Log viewer container */
.admin-tool-log-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Admin Tool Translation Info - Translation information box */
.admin-tool-success-box {
    padding: 1rem;
    background: #e7f3ff;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

/* Admin Tool File Info - File information display */
.admin-tool-file-info {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Admin Tool Info Box - General info box */
.admin-tool-info-box {
    padding: 1rem;
    background: #e7f3ff;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.admin-tool-info-box h5 {
    margin-top: 0;
    color: var(--primary-color);
}

.admin-tool-info-box ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* ============================================
   SCROLL TO TOP BUTTON - Mobile First
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    touch-action: manipulation;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Icon container */
.scroll-to-top__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-to-top__icon {
    transform: translateY(-1px);
}

/* Progress ring */
.scroll-to-top__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-to-top__progress-circle {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-dasharray: 166.5;
    stroke-dashoffset: 166.5;
    transition: stroke-dashoffset 0.1s linear;
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 64px;
        height: 64px;
    }
    
    .scroll-to-top__progress {
        width: 64px;
        height: 64px;
    }
    
    .scroll-to-top__progress-circle {
        r: 30.5;
        cx: 32;
        cy: 32;
        stroke-dasharray: 191.7;
        stroke-dashoffset: 191.7;
    }
    
    .scroll-to-top__icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Large desktop optimization */
@media (min-width: 1200px) {
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
    }
}

/* ============================================
   UTILITY CLASSES FOR COMMON PATTERNS
   ============================================ */

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* Spacing Utilities */
.gap-small { gap: 0.25rem; }
.gap-medium { gap: 0.5rem; }
.gap-large { gap: 1rem; }

/* Width Utilities */
.width-auto { width: auto; }
.width-full { width: 100%; }
.width-50 { width: 50px; }
.width-80 { width: 80px; }

/* Height Utilities */
.height-auto { height: auto; }
.height-full { height: 100%; }
.height-50 { height: 50px; }
.height-80 { height: 80px; }

/* Text Utilities */
.text-nowrap {
    white-space: nowrap;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-small {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* Opacity Utilities */
.opacity-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.opacity-hover {
    opacity: 0.7;
    transition: var(--transition);
}

.opacity-hover:hover {
    opacity: 1;
}

/* 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;
}

/* Product Form Modal Styles */
.product-form-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;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-form-modal[style*="display: flex"] {
    display: flex !important;
}

.product-form-modal-content {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    position: relative;
    margin: auto;
}

.product-form-modal-content > .card-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    box-sizing: border-box;
}

.product-form-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-form-modal-close:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Responsive Product Form Modal */
@media (max-width: 1024px) {
    .product-form-modal-content {
        max-width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .product-form-modal-content {
        padding: 0.5rem;
    }
    
    .product-form-modal-content .card-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .product-form-modal-content {
        padding: 0.25rem;
        border-radius: calc(var(--border-radius) * 0.75);
    }
}

/* ============================================
   POS MODAL - POINT OF SALE MODAL
   ============================================ */

/* POS Modal - Point of Sale modal container */
.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%;
    }
}

/* Collapsible Sections */
.card.collapsible .card-header {
    padding: 0;
}

.card-header-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.card-header-toggle:hover {
    background-color: var(--light-color);
}

.header-content {
    flex: 1;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.card.collapsible.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.card.collapsible.collapsed .card-body {
    display: none;
}

