/* ============================================================
   ARAM MENU - Cashier Screen Styles
   ============================================================ */

:root {
    --primary: #0D7377;
    --primary-dark: #095557;
    --primary-light: #e0f2f3;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --text: #1c1c1c;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-width: 240px;
    --header-height: 60px;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.cashier-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0 24px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.cashier-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.cashier-logo {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cashier-logo i { font-size: 1.4rem; }
.cashier-logo strong { color: #d4a853; }

.cashier-header h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

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

.cashier-time {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: monospace;
    direction: ltr;
}

.cashier-settings-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.cashier-settings-btn:hover { background: rgba(255,255,255,0.25); }

/* ========== LAYOUT ========== */
.cashier-layout {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.cashier-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 20px 16px;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.cashier-sidebar-section {
    margin-bottom: 24px;
}

.cashier-sidebar-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Stats */
.cashier-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cashier-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg);
}

.cashier-stat-number {
    font-size: 1.5rem;
    font-weight: 900;
}

.cashier-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

#statNew .cashier-stat-number { color: var(--danger); }
#statActive .cashier-stat-number { color: var(--warning); }
#statDone .cashier-stat-number { color: var(--success); }

/* Settings in sidebar */
.cashier-setting-group {
    margin-bottom: 12px;
}

.cashier-setting-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.cashier-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
    direction: rtl;
}

.cashier-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

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

.cashier-btn-primary:hover {
    background: var(--primary-dark);
}

/* ========== MAIN ========== */
.cashier-main {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 20px;
}

.cashier-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1200px;
}

.cashier-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.cashier-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border);
}

.cashier-empty h3 {
    margin-bottom: 8px;
    color: var(--text);
}

/* ========== CASHIER CARDS ========== */
.cashier-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.cashier-card-active {
    border-color: var(--warning);
    box-shadow: 0 0 20px rgba(245,158,11,0.15);
    animation: pulse-card 2s infinite;
}

.cashier-card-done {
    border-color: var(--success);
    opacity: 0.7;
}

@keyframes pulse-card {
    0%, 100% { box-shadow: 0 0 20px rgba(245,158,11,0.1); }
    50% { box-shadow: 0 0 30px rgba(245,158,11,0.25); }
}

.cashier-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cashier-table {
    font-size: 1.1rem;
    font-weight: 700;
}

.cashier-table small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    display: block;
}

.cashier-card-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cashier-card-id {
    font-size: 0.7rem;
    color: var(--text-lighter, #9ca3af);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cashier-status-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}
.cashier-status-badge.status-new {
    background: #DBEAFE;
    color: #1E40AF;
}
.cashier-status-badge.status-active {
    background: #FEF3C7;
    color: #92400E;
}
.cashier-status-badge.status-done {
    background: #D1FAE5;
    color: #065F46;
}

.cashier-card-items {
    padding: 12px 16px;
}

.cashier-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

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

.cashier-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cashier-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cashier-item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cashier-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cashier-item-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.cashier-item-qty {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cashier-item-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
}

.cashier-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.cashier-card-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cashier-card-total span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cashier-card-total strong {
    font-size: 1.2rem;
    color: var(--primary);
}

.cashier-complete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cashier-complete-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.cashier-done-badge {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
}

.cashier-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cashier-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.cashier-delete-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* ========== SIDEBAR TOGGLE (Mobile) ========== */
.cashier-sidebar-toggle {
    display: none;
}

.cashier-sidebar-backdrop {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cashier-sidebar-toggle {
        display: inline-flex;
    }

    .cashier-sidebar {
        display: flex;
        position: fixed;
        top: var(--header-height);
        right: -280px;
        bottom: 0;
        width: 260px;
        z-index: 150;
        transition: right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: none;
        border-left: none;
    }

    .cashier-sidebar.open {
        right: 0;
        box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    }

    .cashier-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 140;
        backdrop-filter: blur(2px);
    }

    .cashier-sidebar-backdrop.open {
        display: block;
    }

    .cashier-main {
        margin-right: 0;
        padding: 16px;
    }
    .cashier-orders-grid {
        grid-template-columns: 1fr;
    }
    .cashier-header h1 {
        display: none;
    }
}
