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

/* Force Cairo font using hayat-font namespace */
.hayat-font,
.hayat-font * {
    font-family: 'Cairo', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
}

/* Ensure specific elements use Cairo font */
.hayat-font .info-row__value--money,
.hayat-font .order-card__number,
.hayat-font .order-card__date time,
.hayat-font .status-badge,
.hayat-font .info-section__title,
.hayat-font .info-row__label,
.hayat-font .info-row__value {
    font-family: 'Cairo', sans-serif !important;
}

/* Page Title */
.page-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
    font-family: 'Cairo', sans-serif !important;
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

/* Hide duplicate stats in reports overlay */
#reports-overlay .reports-summary {
    display: none;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card__label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card__value {
    color: #2196F3;
    font-size: 24px;
    font-weight: 600;
}

/* Container */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    max-width: 800px;
    margin: 0 auto;
}

/* Order Card */
.order-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    direction: rtl;
}

/* Header */
.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.order-card__number {
    color: #2196F3;
    font-size: 20px;
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.status-badge--completed,
.status-badge--مكتمل {
    background: #4CAF50;
}

.status-badge--pending,
.status-badge--معلق {
    background: #FFA000;
}

.status-badge--cancelled,
.status-badge--ملغي {
    background: #F44336;
}

.status-badge--processing,
.status-badge--قيد_التنفيذ {
    background: #2196F3;
}

/* Content */
.order-card__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sections */
.info-section {
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-section__title {
    color: #2196F3;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section__title i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.info-section__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
}

.info-row__label {
    color: #666;
    min-width: 120px;
    font-weight: 500;
}

.info-row__value {
    color: #333;
    flex: 1;
}

.info-row__value--link {
    color: #2196F3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.info-row__value--link:hover {
    color: #1976D2;
}

.info-row__value--link i {
    font-size: 14px;
}

.info-row__value--money {
    font-size: 15px;
    text-align: left;
    width: 120px;
}

/* Total Row */
.info-row--total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.info-row--total .info-row__label {
    color: #333;
    font-weight: 600;
}

.info-row--total .info-row__value {
    color: #4CAF50;
    font-weight: 600;
    font-size: 16px;
}

/* Footer */
.order-card__footer {
    margin-top: 24px;
}

.order-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    justify-content: flex-end;
}

.order-card__date time {
    font-size: 15px;
}

/* Voice Note */
.voice-note {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.voice-note__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;
}

.voice-note__player {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Icons */
.info-section__title i,
.info-row__value--link i,
.order-card__date i,
.voice-note__label i {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-left: 8px;
}

/* Section Icons */
.info-section__title i {
    color: #2196F3;
    font-size: 18px;
}

/* Link Icons */
.info-row__value--link i {
    color: #2196F3;
    font-size: 16px;
}

/* Footer Icons */
.order-card__date i,
.voice-note__label i {
    color: #666;
    font-size: 16px;
}

/* Fix Font Awesome icons */
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* No Orders Message */
.no-orders {
    text-align: center;
    color: #666;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    font-size: 16px;
}

/* Responsive */
@media (min-width: 768px) {
    .orders-list {
        padding: 24px;
    }
    
    .order-card {
        padding: 28px;
    }
}
