/* ===== SERVER MODULE STYLES ===== */

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

body {
    font-family: 'Raleway', sans-serif;
    background: #f8f9fa;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    padding: 30px 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    overflow-y: auto;
    z-index: 900;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar .logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
}

.sidebar .logo i {
    font-size: 24px;
    margin-right: 10px;
}

.sidebar .sidebar-nav {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar .sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar .sidebar-nav a:hover,
.sidebar .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 20px;
}

.sidebar .sidebar-nav i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 14px;
}

.sidebar .sidebar-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar .sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 1px;
}

.logout-btn {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dashboard Container */
.dashboard-container {
    margin-left: 280px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 14px;
    color: #555;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e8f5e9;
    border-radius: 20px;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
}

.notification-bell {
    font-size: 20px !important;
    color: #555;
    transition: color 0.3s ease;
}

.notification-bell:hover {
    color: #ff6b6b;
}

.notification-badge {
    background: #ff4444 !important;
    color: white !important;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2e7d32;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Main Content */
.main-content {
    padding: 0 30px 30px 30px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

/* Page Header */
.page-header {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #d4a574;
    color: white;
    transform: rotate(180deg);
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.table-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #d4a574;
}

.table-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-assigned {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-available {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-busy {
    background: #fff3e0;
    color: #f57c00;
}

.badge-ready {
    background: #c8e6c9;
    color: #2e7d32;
}

.table-info {
    margin: 15px 0;
}

.table-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-info i {
    color: #d4a574;
    width: 14px;
}

.btn-table-action {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-table-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-table-action.order-exists {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-table-action.order-exists:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Empty Message */
.empty-message,
.loading-message {
    grid-column: 1 / -1;
    background: white;
    padding: 60px 30px;
    border-radius: 10px;
    text-align: center;
    color: #999;
}

.empty-message i,
.loading-message i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-message p,
.loading-message p {
    font-size: 16px;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    color: #d4a574;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 800;
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 70%;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .dashboard-container {
        margin-left: 0;
    }

    .header {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header h1 {
        font-size: 18px;
        margin: 0;
    }

    .user-info {
        width: auto;
        justify-content: flex-end;
        gap: 15px;
    }

    .main-content {
        padding: 0 15px 15px 15px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 15px;
    }

    .page-header h2 {
        font-size: 16px;
    }
}

/* Utility Classes */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Container */
.tables-container {
    margin-bottom: 30px;
}

/* ===== ORDER MODAL STYLES ===== */
.order-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.order-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

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

.order-modal-header {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c19a5f;
}

.order-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.order-modal-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.order-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.order-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.order-modal-body::-webkit-scrollbar {
    width: 8px;
}

.order-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.order-modal-body::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}

.order-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Category Tabs */
.category-tabs {
    margin-bottom: 30px;
}

.tabs-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 15px;
}

.category-tab {
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #d4a574;
    background: #fff9f5;
}

.category-tab.active {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    border-color: #b8860b;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

/* Menu Items Container */
.menu-items-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 20px;
}

.subcategory-section {
    animation: fadeIn 0.4s ease-out;
}

.subcategory-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4a574;
    display: inline-block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Menu Item Card */
.menu-item-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.25);
    border-color: #d4a574;
}

.item-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item-card:hover .item-image {
    transform: scale(1.08);
}

.item-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-description {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.item-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #d4a574;
}

/* Order Modal Footer */
.order-modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbfc 100%);
    padding: 15px 25px;
    border-top: 2px solid #d4a574;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.order-summary {
    display: flex;
    gap: 30px;
    flex: 1;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item span:first-child {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: #d4a574;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel {
    background: #e9ecef;
    color: #555;
    border: 2px solid transparent;
}

.btn-cancel:hover {
    background: #dee2e6;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    border: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== TWO-SECTION MODAL LAYOUT ===== */

.order-modal-content.two-section-layout {
    max-width: 1400px;
}

.two-section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 !important;
    height: calc(90vh - 200px);
}

/* Left Section: Menu Items */
.left-section {
    display: flex;
    flex-direction: column;
    border-right: 2px solid #e9ecef;
    overflow-y: auto;
    padding: 25px;
}

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

.left-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.left-section::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}

.left-section::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Right Section: Selected Items */
.right-section {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #fafbfc;
    overflow-y: auto;
}

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

.right-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.right-section::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}

.right-section::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Selected Items Header */
.selected-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d4a574;
}

.selected-items-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c1810;
    margin: 0;
}

.items-badge {
    background: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3);
}

/* Selected Items List */
.selected-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e9ecef;
}

.selected-items-list::-webkit-scrollbar {
    width: 6px;
}

.selected-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.selected-items-list::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.empty-order-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Selected Item Row */
.selected-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.item-row-info {
    flex: 1;
}

.item-row-name {
    font-weight: 600;
    color: #2c1810;
    font-size: 14px;
    margin-bottom: 5px;
}

.item-row-price {
    font-size: 12px;
    color: #666;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 5px 10px;
}

.qty-adjust-btn {
    background: white;
    border: 1px solid #dee2e6;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.qty-adjust-btn:hover {
    background: #d4a574;
    color: white;
    border-color: #d4a574;
}

.qty-display {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.item-row-total {
    font-weight: 700;
    color: #d4a574;
    font-size: 14px;
    min-width: 70px;
    text-align: right;
}

.item-remove-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #dc3545;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.item-remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Order Footer Summary */
.order-footer-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #fafbfc 100%);
    border: 2px solid #d4a574;
    border-radius: 12px;
    padding: 18px;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    align-items: center;
}

.summary-label {
    color: #555;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.summary-value {
    font-weight: 700;
    color: #2c1810;
    font-size: 14px;
}

.total-row {
    padding: 14px 0;
    border-top: 2px solid #d4a574;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
    border-radius: 8px;
    padding: 12px 10px;
}

.total-row .summary-label {
    color: #2c1810;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-value {
    color: #d4a574;
    font-size: 20px;
    font-weight: 700;
}
    /* cursor: not-allowed;
    transform: none; */


/* Item Detail Modal */
.item-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.item-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    max-width: 420px;
    max-height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.item-modal-body {
    padding: 20px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
}

.item-detail-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.item-detail-description {
    color: #666;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.item-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 15px;
}

.item-detail-quantity {
    margin-bottom: 15px;
}

.item-detail-quantity label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qty-btn {
    background: #e9ecef;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #d4a574;
    color: white;
}

#itemQuantity {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

#itemQuantity:focus {
    outline: none;
    border-color: #d4a574;
}

.item-modal-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.no-items {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .order-modal-content {
        max-width: 90%;
    }
}

@media (max-width: 1024px) {
    .two-section-body {
        grid-template-columns: 1fr 1fr;
    }

    .left-section {
        padding: 20px;
    }

    .right-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .order-modal-content {
        max-height: 95vh;
        max-width: 95%;
    }

    .two-section-body {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }

    .left-section {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        max-height: 50vh;
        padding: 15px;
    }

    .right-section {
        max-height: 50vh;
        padding: 15px;
    }

    .order-modal-header h2 {
        font-size: 18px;
    }

    .category-tabs {
        margin-bottom: 20px;
    }

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

    .category-tab {
        padding: 10px 15px;
        font-size: 12px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .item-image-wrapper {
        height: 120px;
    }

    .item-info {
        padding: 12px;
    }

    .item-name {
        font-size: 12px;
    }

    .item-description {
        font-size: 11px;
    }

    .item-price {
        font-size: 13px;
    }

    .order-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .item-modal-content {
        max-width: 90%;
    }

    .selected-item-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    .item-row-total {
        order: 5;
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .two-section-body {
        grid-template-columns: 1fr;
    }

    .left-section {
        max-height: 40vh;
        padding: 10px;
    }

    .right-section {
        max-height: 40vh;
        padding: 10px;
    }

    .order-modal-header {
        padding: 15px;
    }

    .order-modal-header h2 {
        font-size: 16px;
    }

    .category-tab {
        padding: 8px 12px;
        font-size: 11px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .item-image-wrapper {
        height: 100px;
    }

    .item-info {
        padding: 10px;
    }

    .item-name {
        font-size: 11px;
    }

    .item-description {
        display: none;
    }

    .item-price {
        font-size: 12px;
    }

    .item-add-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .selected-items-header {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .selected-item-row {
        padding: 12px;
        flex-wrap: wrap;
    }

    .item-controls {
        gap: 5px;
        padding: 3px 5px;
    }

    .qty-adjust-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .qty-display {
        width: 25px;
        font-size: 12px;
    }

    .item-row-total {
        font-size: 12px;
        min-width: 60px;
    }

    .item-remove-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .order-footer-summary {
        padding: 12px;
    }

    .summary-row {
        padding: 8px 0;
        font-size: 12px;
    }

    .total-row .summary-label {
        font-size: 14px;
    }

    .total-value {
        font-size: 16px;
    }
}

/* Ensure SweetAlert2 is always on top */
.swal2-container {
    z-index: 9999 !important;
}

.swal2-backdrop {
    z-index: 9998 !important;
}

.swal2-modal {
    z-index: 9999 !important;
}
