/* Cashier Dashboard Styles */
.zs-cashier-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    direction: rtl;
}

.zs-cashier-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.zs-cashier-content-wrapper {
    min-width: 0;
}

.zs-cashier {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.zs-cashier-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
}

.zs-cashier-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0e0e0;
}

.zs-cashier-header h2 {
    margin: 0;
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

/* بخش آمار */
.zs-cashier-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.zs-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.zs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zs-stat-icon {
    font-size: 48px;
    line-height: 1;
}

.zs-stat-content {
    flex: 1;
}

.zs-stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.zs-stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

/* رنگ‌بندی کارت‌های آمار */
.zs-stat-ready {
    border-right: 4px solid #ff9800;
}

.zs-stat-ready .zs-stat-value {
    color: #ff9800;
}

.zs-stat-completed {
    border-right: 4px solid #4caf50;
}

.zs-stat-completed .zs-stat-value {
    color: #4caf50;
}

/* بخش محتوا */
.zs-cashier-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.zs-cashier-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zs-section-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zs-section-count {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: normal;
}

.zs-section-ready {
    border-bottom-color: #ff9800;
}

/* Grid سفارش‌ها */
.zs-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.zs-no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* کارت سفارش */
.zs-order-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

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

.zs-order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.zs-order-ready {
    border-color: #ff9800;
    border-right-width: 4px;
}

.zs-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.zs-order-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.zs-order-time {
    font-size: 14px;
    color: #666;
}

.zs-order-card-body {
    margin-bottom: 15px;
}

.zs-order-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.zs-order-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zs-order-info-label {
    font-weight: 500;
    color: #666;
}

.zs-order-info-value {
    font-weight: bold;
    color: #333;
}

.zs-order-items {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.zs-order-items h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.zs-order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zs-order-items-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    justify-content: space-between;
}

.zs-item-quantity {
    background: #ff9800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    min-width: 35px;
    text-align: center;
}

.zs-item-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.zs-item-price {
    font-weight: bold;
    color: #4caf50;
    font-size: 14px;
}

.zs-order-notes {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-right: 3px solid #ffc107;
    border-radius: 6px;
}

.zs-order-notes strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.zs-order-notes p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.zs-order-card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.zs-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.zs-button-success {
    background: #4caf50;
    color: #fff;
}

.zs-button-success:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.zs-button-secondary {
    background: #2196f3;
    color: #fff;
}

.zs-button-secondary:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.zs-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* RTL Support */
.zs-cashier[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.zs-cashier[dir="rtl"] .zs-order-card {
    border-right-width: 4px;
    border-left-width: 2px;
}

.zs-cashier[dir="rtl"] .zs-stat-card {
    border-right-width: 4px;
    border-left-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .zs-cashier-wrapper {
        grid-template-columns: 1fr;
    }
    
    .zs-cashier-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    /* منوی آکاردئونی در موبایل - حذف شده چون در admin-frontend.css تعریف شده */
}

@media (max-width: 768px) {
    .zs-cashier {
        padding: 15px;
    }

    .zs-cashier-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .zs-stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .zs-stat-icon {
        font-size: 36px;
    }

    .zs-stat-value {
        font-size: 28px;
    }

    .zs-orders-grid {
        grid-template-columns: 1fr;
    }

    .zs-cashier-section {
        padding: 15px;
    }

    .zs-order-card-actions {
        flex-direction: column;
    }
}

/* انیمیشن برای به‌روزرسانی آمار */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.zs-stat-value.updated {
    animation: pulse 0.5s ease-in-out;
}

