/**
 * أنماط الواجهة الأمامية
 *
 * @package Repair_Management_System
 */

/* أنماط عامة */
.rms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.rms-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.rms-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

/* أنماط نموذج التتبع */
.rms-tracking-form-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rms-form {
    margin-top: 20px;
}

.rms-form-group {
    margin-bottom: 15px;
}

.rms-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.rms-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.rms-form-actions {
    margin-top: 20px;
    text-align: center;
}

.rms-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.rms-button:hover {
    background-color: #005177;
}

/* أنماط نتائج التتبع */
.rms-tracking-results {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.rms-tracking-header {
    background-color: #f1f1f1;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.rms-tracking-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.rms-tracking-content {
    padding: 15px;
}

.rms-info-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rms-info-label {
    font-weight: bold;
    width: 150px;
    flex-shrink: 0;
}

.rms-info-value {
    flex: 1;
}

/* أنماط الحالة */
.rms-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
}

.rms-status-pending {
    background-color: #f8d7da;
    color: #721c24;
}

.rms-status-ready {
    background-color: #d4edda;
    color: #155724;
}

.rms-status-completed {
    background-color: #cce5ff;
    color: #004085;
}

.rms-status-cancelled {
    background-color: #f5f5f5;
    color: #333;
}

/* أنماط الرسائل */
.rms-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.rms-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

/* أنماط التحميل */
.rms-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: rms-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes rms-spin {
    to {
        transform: rotate(360deg);
    }
}

/* تخصيص للغة العربية */
body.rtl .rms-info-row {
    flex-direction: row-reverse;
}

body.rtl .rms-info-label {
    text-align: right;
}

body.rtl .rms-form-group label {
    text-align: right;
}

body.rtl .rms-loading {
    margin-right: 0;
    margin-left: 10px;
}

/* تخصيص للجوال */
@media (max-width: 768px) {
    .rms-info-row {
        flex-direction: column;
    }
    
    .rms-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    body.rtl .rms-info-row {
        flex-direction: column;
    }

    .rms-stats-grid {
        flex-direction: column;
    }
    
    .rms-stat-box {
        margin-bottom: 15px;
    }
}

/* أنماط إحصائيات الواجهة الأمامية */
.rms-frontend-stats {
    margin: 30px 0;
}

.rms-frontend-stats h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.rms-frontend-stats .rms-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.rms-frontend-stats .rms-stat-box {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rms-frontend-stats .rms-stat-box:hover {
    transform: translateY(-5px);
}

.rms-frontend-stats .rms-stat-icon {
    margin-bottom: 15px;
}

.rms-frontend-stats .rms-stat-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.rms-frontend-stats .rms-stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.rms-frontend-stats .rms-stat-label {
    color: #666;
    font-size: 16px;
} 