* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    overflow-x: hidden;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}
.sidebar-overlay.show {
    display: block;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 280px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    margin-top: 4px;
}

.nav-menu {
    padding: 0 20px;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
    cursor: pointer;
}

.nav-link i {
    width: 22px;
    font-size: 18px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.top-header {
    background: white;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 99;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
}

.page-title p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-role {
    font-size: 12px;
    background: #e67e22;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.notification-badge {
    position: relative;
    cursor: pointer;
}

.notification-badge i {
    font-size: 24px;
    color: #64748b;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e67e22;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.sound-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 40px;
}
.sound-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #e67e22;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s;
}
.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #e67e22;
    border-radius: 50%;
    cursor: pointer;
}
.stop-ringing {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logout-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: #e67e22;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 32px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
}

.stat-info p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.content-panel {
    display: none;
    animation: fadeIn 0.4s;
}

.content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-container {
    padding: 0 32px 32px 32px;
}

.form-card, .table-card, .qr-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a2e;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.input-group input, .input-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #e67e22;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    vertical-align: top;
}

/* Orders Table Styling - Improved */
.orders-table-container {
    max-height: 600px;
}

.orders-table td {
    vertical-align: top;
}

.order-items-list {
    min-width: 280px;
    max-width: 350px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 13px;
    flex: 1;
}

.order-item-qty {
    color: #e67e22;
    font-weight: 700;
    margin: 0 10px;
    min-width: 35px;
    text-align: center;
}

.order-item-price {
    color: #059669;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.order-note {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.category-badge, .status-badge, .payment-badge, .assistance-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-preparing { background: #dbeafe; color: #2563eb; }
.status-ready { background: #d1fae5; color: #059669; }
.status-served { background: #e0e7ff; color: #4f46e5; }

.payment-paid { background: #d1fae5; color: #059669; }
.payment-unpaid { background: #fee2e2; color: #dc2626; }

.assistance-waiter { background: #dbeafe; color: #2563eb; }
.assistance-bar { background: #fed7aa; color: #c2410c; }

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-pay { background: #d1fae5; color: #059669; }
.btn-served { background: #e0e7ff; color: #4f46e5; }
.btn-delete { background: #fee2e2; color: #dc2626; }

.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}
.filter-select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    min-width: 180px;
}
.filter-clear {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.qr-card-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.qr-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.download-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.notifications-panel.show {
    display: block;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.mark-all-read, .clear-all-notifications {
    background: none;
    border: none;
    color: #e67e22;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
}

.clear-all-notifications {
    color: #dc2626;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #fef3c7;
    border-left: 3px solid #e67e22;
}

.notification-content {
    flex: 1;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}
.notification-overlay.show {
    display: block;
}

/* Popup Notification */
.popup-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-notification.show {
    transform: translateX(0);
}

.popup-content {
    padding: 20px;
    text-align: center;
}

.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.popup-icon.order { background: #dbeafe; color: #2563eb; }
.popup-icon.assistance-waiter { background: #fef3c7; color: #d97706; }
.popup-icon.assistance-bar { background: #fed7aa; color: #c2410c; }

.popup-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.popup-message {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.popup-view, .popup-dismiss {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-view {
    background: #e67e22;
    color: white;
    border: none;
}

.popup-view:hover {
    background: #d35400;
}

.popup-dismiss {
    background: #e2e8f0;
    color: #475569;
    border: none;
}

.popup-dismiss:hover {
    background: #cbd5e1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a2e;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 2001;
}

.toast.show {
    transform: translateX(0);
}

.assistance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@keyframes ringAnimation {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}
.ringing {
    animation: ringAnimation 0.5s ease-in-out infinite;
    color: #ef4444 !important;
}

/* Availability toggle switch */
.availability-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.availability-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #10b981;
}
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Analytics Charts - Improved */
.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-label {
    width: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.status-bar-container {
    flex: 1;
    height: 32px;
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.status-bar-fill.pending { background: #d97706; }
.status-bar-fill.preparing { background: #2563eb; }
.status-bar-fill.ready { background: #059669; }
.status-bar-fill.served { background: #4f46e5; }

.status-count {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #1a1a2e;
}

/* Category Pie Chart */
.category-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.pie-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.pie-svg {
    transform: rotate(-90deg);
}

.pie-legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Revenue Trend */
.revenue-trend {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trend-item {
    text-align: center;
}

.trend-value {
    font-size: 28px;
    font-weight: 800;
    color: #e67e22;
}

.trend-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.trend-change {
    font-size: 14px;
    font-weight: 600;
}

.trend-change.up { color: #059669; }
.trend-change.down { color: #dc2626; }

/* Activity Log */
.activity-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.activity-order { background: #dbeafe; color: #2563eb; }
.activity-payment { background: #d1fae5; color: #059669; }
.activity-availability { background: #fef3c7; color: #d97706; }
.activity-assistance { background: #fed7aa; color: #c2410c; }
.activity-qrcode { background: #e0e7ff; color: #4f46e5; }

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar-close {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .panel-container {
        padding: 0 20px 20px 20px;
    }
    .notifications-panel, .popup-notification {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-search, .filter-select {
        width: 100%;
    }
    .analytics-charts {
        grid-template-columns: 1fr;
    }
}

/* Popular Items Grid */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.popular-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.popular-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
}

.popular-card h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.popular-item {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popular-count {
    font-size: 12px;
    color: #e67e22;
    font-weight: 500;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Combinations Container */
.combinations-container {
    max-height: 300px;
    overflow-y: auto;
}

.combination-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.combination-item:hover {
    background: #f8fafc;
}

.combo-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-name:before {
    content: "🍽️";
    font-size: 14px;
}

.combo-count {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

/* Enhanced Order Details Modal */
.order-details-content {
    max-width: 650px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.order-info-grid .full-width {
    grid-column: span 2;
}

.order-items-list-full h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item-full:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: #1a1a2e;
    flex: 1;
}

.item-qty {
    color: #e67e22;
    font-weight: 700;
    margin: 0 15px;
    min-width: 40px;
    text-align: center;
}

.item-price {
    color: #059669;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.order-total-full {
    margin-top: 16px;
    padding-top: 12px;
    text-align: right;
    border-top: 2px solid #e2e8f0;
    font-size: 18px;
}

.order-details-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.order-details-footer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-action {
    transition: all 0.2s;
}

.btn-action:not(:disabled):hover {
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Enhanced Orders Table */
.order-items-list {
    min-width: 280px;
    max-width: 350px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 13px;
    flex: 1;
}

.order-item-qty {
    color: #e67e22;
    font-weight: 700;
    margin: 0 10px;
    min-width: 35px;
    text-align: center;
}

.order-item-price {
    color: #059669;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.order-note {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-details-btn {
    background: none;
    border: none;
    color: #e67e22;
    font-size: 11px;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    padding: 0;
}

.view-details-btn:hover {
    color: #d35400;
}

/* Responsive */
@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-info-grid .full-width {
        grid-column: span 1;
    }
    
    .order-details-footer {
        flex-direction: column;
    }
    
    .order-details-footer button {
        width: 100%;
    }
    
    .combination-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.view-details-btn {
    background: none;
    border: none;
    color: #e67e22;
    font-size: 11px;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: underline;
}

.view-details-btn:hover {
    color: #d35400;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

.page-btn.active {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 8px 4px;
    color: #64748b;
}

.order-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.order-details-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
}

.order-details-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.order-details-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.order-details-body {
    padding: 20px 24px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.order-items-list-full {
    margin-top: 16px;
}

.order-items-list-full h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.order-item-full {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-total-full {
    margin-top: 16px;
    padding-top: 12px;
    text-align: right;
    border-top: 2px solid #e2e8f0;
    font-size: 16px;
}

.order-details-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: white;
}