/* ==========================================================================
   VINI Cashier Panel - Premium Glassmorphic Styling Sheet
   ========================================================================== */

/* 1. Global Reset & Custom Variables */
:root {
    /* Color Palette */
    --vini-olive: #3c5234;
    --vini-olive-dark: #23311e;
    --vini-olive-light: #5f7556;
    --vini-cream: #e4ddc0;
    --vini-cream-light: #efece1;
    --vini-orange: #e86134;
    --vini-gold: #ffcc80;
    
    /* Dark Theme Backgrounds */
    --bg-main: #141b12;
    --bg-sidebar: #0f140d;
    --bg-card: rgba(35, 49, 30, 0.45);
    --bg-card-hover: rgba(35, 49, 30, 0.65);
    --border-color: rgba(95, 117, 86, 0.25);
    
    /* Text Colors */
    --text-primary: #efece1;
    --text-secondary: #8c9e84;
    --text-dark: #23311e;
    
    /* Constants */
    --sidebar-width: 280px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(16px);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 2. Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(95, 117, 86, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 97, 52, 0.7);
}

/* 3. Base App Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* 4. Sidebar Section */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100%;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* LTR adjustments */
html[dir="ltr"] .sidebar {
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background-color: var(--vini-olive);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(228, 221, 192, 0.3);
}

.brand-logo .material-icons-round {
    color: var(--vini-cream);
    font-size: 24px;
}

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

.brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Nav Menu Items */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    text-align: right;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
}

html[dir="ltr"] .nav-item {
    text-align: left;
}

.nav-item:hover {
    background-color: rgba(95, 117, 86, 0.15);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--vini-olive);
    color: var(--vini-cream-light);
    box-shadow: 0 4px 12px rgba(60, 82, 52, 0.3);
}

.nav-item .material-icons-round {
    font-size: 20px;
}

.nav-item .badge {
    margin-right: auto;
    background-color: var(--vini-orange);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

html[dir="ltr"] .nav-item .badge {
    margin-right: 0;
    margin-left: auto;
}

/* Sidebar Footer */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-simulator {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--vini-orange), #ff844c);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(232, 97, 52, 0.3);
    transition: var(--transition-smooth);
}

.btn-simulator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 97, 52, 0.4);
}

.btn-lang {
    background: rgba(239, 236, 225, 0.05);
    border: 1px solid rgba(239, 236, 225, 0.1);
    color: var(--text-primary);
    padding: 10px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.btn-lang:hover {
    background: rgba(239, 236, 225, 0.1);
}

.footer-info {
    text-align: center;
    font-size: 10px;
    color: rgba(140, 158, 132, 0.5);
    margin-top: 4px;
}

/* 5. Main Content Area */
.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

/* Main Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
}

.header-title-area h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Metrics stats */
.header-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: var(--glass-blur);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--vini-gold);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 600;
}

/* 6. Tabs Pane Management */
.tab-pane {
    display: none;
    flex-grow: 1;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* 7. Orders Layout */
.orders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

.orders-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(239, 236, 225, 0.02);
    border-radius: var(--border-radius-lg);
    border: 1px dashed rgba(95, 117, 86, 0.2);
    padding: 20px;
    max-height: 70vh;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.column-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.column-header .material-icons-round {
    font-size: 20px;
}

.orders-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

html[dir="ltr"] .orders-list {
    padding-right: 0;
    padding-left: 4px;
}

/* Order Card Details */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(95, 117, 86, 0.4);
    transform: translateY(-2px);
}

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

.order-id-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-id-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
}

.order-id-value {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-primary);
}

.order-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Status colors map */
.status-under-review { background-color: rgba(232, 97, 52, 0.15); color: var(--vini-orange); border: 1px solid rgba(232, 97, 52, 0.3); }
.status-preparing { background-color: rgba(66, 165, 245, 0.15); color: #42a5f5; border: 1px solid rgba(66, 165, 245, 0.3); }
.status-ready { background-color: rgba(95, 117, 86, 0.15); color: var(--vini-gold); border: 1px solid rgba(95, 117, 86, 0.3); }
.status-completed { background-color: rgba(239, 236, 225, 0.1); color: #8c9e84; border: 1px solid rgba(239, 236, 225, 0.2); }
.status-cancelled { background-color: rgba(211, 47, 47, 0.15); color: #e57373; border: 1px solid rgba(211, 47, 47, 0.3); }

/* Service delivery mode */
.order-delivery-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 236, 225, 0.03);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    color: var(--text-primary);
}

.order-delivery-mode .material-icons-round {
    font-size: 16px;
    color: var(--vini-gold);
}

.delivery-details {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Items details inside card */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.order-item-qty {
    color: var(--vini-gold);
    font-weight: 700;
}

.order-item-name {
    flex-grow: 1;
    margin-right: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

html[dir="ltr"] .order-item-name {
    margin-right: 0;
    margin-left: 8px;
}

.order-item-price {
    font-weight: 700;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(95, 117, 86, 0.15);
    padding-top: 10px;
    margin-top: 4px;
}

.order-total-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.order-total-val {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-primary);
}

/* Action buttons at card bottom */
.order-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-action {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-action-accept {
    background-color: var(--vini-olive);
    color: var(--vini-cream);
}

.btn-action-accept:hover {
    background-color: var(--vini-olive-light);
}

.btn-action-reject {
    background-color: transparent;
    border: 1px solid var(--vini-orange);
    color: var(--vini-orange);
}

.btn-action-reject:hover {
    background-color: rgba(232, 97, 52, 0.1);
}

.btn-action-ready {
    background-color: var(--vini-orange);
    color: white;
}

.btn-action-ready:hover {
    background-color: #ff7546;
}

.btn-action-complete {
    background-color: var(--vini-olive);
    color: var(--vini-cream);
}

.btn-action-complete:hover {
    background-color: var(--vini-olive-light);
}

/* Colors helpers */
.text-orange { color: var(--vini-orange); }
.text-green { color: var(--vini-gold); }

/* 8. Tab 2: Offers & Promo Codes Layout */
.section-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: var(--glass-blur);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-row h3 {
    font-size: 18px;
    font-weight: 800;
}

/* Coupon Tickets grid */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.coupon-ticket {
    background: rgba(15, 20, 13, 0.6);
    border: 1px dashed var(--vini-olive-light);
    border-radius: var(--border-radius-md);
    padding: 16px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

/* Cutout effect simulating tickets */
.coupon-ticket::before, .coupon-ticket::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--bg-main);
    border-radius: 50%;
}

.coupon-ticket::before { left: -6px; top: calc(50% - 6px); }
.coupon-ticket::after { right: -6px; top: calc(50% - 6px); }

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-code-box {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(228, 221, 192, 0.05);
    border: 1px solid rgba(60, 82, 52, 0.5);
    border-radius: 4px;
    font-weight: 700;
    color: var(--vini-gold);
    font-size: 13px;
    letter-spacing: 1.1px;
}

.coupon-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.coupon-percent {
    font-size: 24px;
    font-weight: 900;
    color: var(--vini-orange);
}

.btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(229, 115, 115, 0.6);
    transition: var(--transition-smooth);
    padding: 4px;
    border-radius: 50%;
}

.btn-delete:hover {
    color: #e57373;
    background-color: rgba(229, 115, 115, 0.1);
}

/* Active Offers layout */
.offers-flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.offer-card {
    background: rgba(15, 20, 13, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offer-card-banner {
    height: 80px;
    background: linear-gradient(135deg, var(--vini-olive), var(--vini-olive-dark));
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offer-title-group h4 {
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.offer-discount-tag {
    background-color: var(--vini-gold);
    color: var(--vini-olive-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
}

.offer-card-body {
    padding: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 9. Tab 3: Form Add Product Styling */
.form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: var(--glass-blur);
}

.dashboard-form h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    background-color: rgba(15, 20, 13, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--vini-orange);
    box-shadow: 0 0 0 3px rgba(232, 97, 52, 0.15);
}

/* Preset images styles */
.image-selector-group {
    margin-top: 24px;
}

.image-selector-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.image-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.image-option-card {
    background-color: rgba(15, 20, 13, 0.8);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.image-option-card:hover {
    border-color: rgba(95, 117, 86, 0.4);
}

.image-option-card.selected {
    border-color: var(--vini-orange);
    background-color: rgba(232, 97, 52, 0.03);
}

.image-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* Placeholder gradient simulation backgrounds for testing */
.hot-coffee-bg { background-image: radial-gradient(circle, #5c4436, #36251b); }
.cold-coffee-bg { background-image: radial-gradient(circle, #455d5e, #1c2728); }
.espresso-bg { background-image: radial-gradient(circle, #2a221a, #0f0a07); }
.box-bg { background-image: radial-gradient(circle, #a38c6b, #594c39); }
.winter-bg { background-image: radial-gradient(circle, #dbd7cb, #8c887e); }

.image-option-card span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.image-option-card .checkmark {
    position: absolute;
    top: -6px;
    right: -6px;
    color: var(--vini-orange);
    font-size: 18px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: none;
}

.image-option-card.selected .checkmark {
    display: block;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

/* Buttons Common */
.btn-primary {
    background-color: var(--vini-olive);
    color: var(--vini-cream);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--vini-olive-light);
}

.btn-primary.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(239, 236, 225, 0.05);
}

/* 10. Modals / Dialog Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-card {
    background-color: #1a2318;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
}

.btn-close-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 22px;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

.modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(95vh - 70px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

/* 11. Toast System */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--vini-olive), var(--vini-olive-dark));
    color: var(--vini-cream);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(228, 221, 192, 0.2);
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Viewport Adaptability
   ========================================================================== */
@media (max-width: 1024px) {
    .orders-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }
    
    .orders-column {
        max-height: 500px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }
    
    .brand-header {
        margin-bottom: 16px;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 8px 14px;
    }
    
    .sidebar-footer {
        display: none; /* Hide simulator and lang switch on small phone layout for layout simplicity */
    }
    
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 11. Manage Products Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
    background: rgba(15, 20, 13, 0.4);
}

html[dir="ltr"] .dashboard-table {
    text-align: left;
}

.dashboard-table th, 
.dashboard-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.dashboard-table th {
    background-color: rgba(60, 82, 52, 0.3);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.dashboard-table tr:hover td {
    background-color: rgba(95, 117, 86, 0.05);
}

.product-img-cell {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(228, 221, 192, 0.2);
}

.product-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-cat-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: rgba(95, 117, 86, 0.2);
    color: var(--vini-cream);
    font-size: 12px;
    font-weight: 600;
}

.product-price-val {
    color: var(--vini-gold);
    font-weight: 700;
    font-size: 15px;
}

.product-actions-cell {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
    background: transparent;
}

.btn-action .material-icons-round {
    font-size: 16px;
}

.btn-action-edit {
    color: var(--vini-gold);
    border-color: rgba(255, 204, 128, 0.2);
    background-color: rgba(255, 204, 128, 0.05);
}

.btn-action-edit:hover {
    background-color: var(--vini-gold);
    color: var(--text-dark);
}

.btn-action-delete {
    color: var(--vini-orange);
    border-color: rgba(232, 97, 52, 0.2);
    background-color: rgba(232, 97, 52, 0.05);
}

.btn-action-delete:hover {
    background-color: var(--vini-orange);
    color: var(--text-primary);
}

/* Search Box in Manage Products */
.search-box-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input-wrapper input {
    width: 100%;
    background-color: rgba(15, 20, 13, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 46px 12px 16px; /* Default RTL: icon on the right */
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    border-color: var(--vini-orange);
    box-shadow: 0 0 0 3px rgba(232, 97, 52, 0.15);
}

.search-input-wrapper .search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px; /* Default RTL: icon on the right */
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 20px;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus ~ .search-icon {
    color: var(--vini-orange);
}

/* LTR adjustments for search input */
html[dir="ltr"] .search-input-wrapper input {
    padding: 12px 16px 12px 46px; /* LTR: icon on the left */
}

html[dir="ltr"] .search-input-wrapper .search-icon {
    right: auto;
    left: 16px; /* LTR: icon on the left */
}

/* Category Group Headers in table */
.category-group-header td {
    background-color: rgba(60, 82, 52, 0.2) !important;
    padding: 12px 18px !important;
    border-bottom: 2px solid rgba(95, 117, 86, 0.25) !important;
    cursor: default;
}

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

.category-header-indicator {
    width: 4px;
    height: 18px;
    background-color: var(--vini-orange);
    border-radius: 2px;
}

.category-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 13. Product Points Badge in Dashboard Table */
.points-badge {
    background-color: var(--vini-orange);
    color: white;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(232, 97, 52, 0.2);
}
