/* =================================================================== */
/* 1. تنسيقات عامة (Global Styles) */
/* =================================================================== */

/* إزالة الهوامش والـ padding الافتراضية لجميع العناصر */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* التنسيقات الأساسية لجسم الصفحة */
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    direction: rtl; /* تحديد اتجاه النص من اليمين لليسار */
}

/* تنسيق الحاوية الرئيسية لتوسيط المحتوى */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* إخفاء العناصر التي تحمل هذا الكلاس */
.hidden {
    display: none;
}

/* =================================================================== */
/* 2. تنسيقات الصفحة الرئيسية (Landing Page Styles) */
/* =================================================================== */

/* قسم الهيرو (العلوي) */
.hero-section {
    background: linear-gradient(135deg, #f9b44e 0%, #f5a623 100%);
    padding: 80px 20px;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.logo {
position: center;
    top:10px;
    align: center;
    width: 300px;
    height: auto;
margin-top: -70px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
Margin-top: 20px;

}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* قسم كيف يعمل النظام (How it Works) */
.how-it-works {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

/* شبكة عرض الميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd699 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-description {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* قسم الدعوة لاتخاذ إجراء (CTA) */
.cta-section {
    background:#F5A623 ;
    padding: 60px 20px;
    text-align: center;
    color: #2C3F4F;
    margin: 80px 0 0 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* التذييل (Footer) */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-text {
    margin-bottom: 10px;
}

.footer-link {
    color: #f5a623;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e89610;
}

/* =================================================================== */
/* 3. تنسيقات الأزرار (Buttons) */
/* =================================================================== */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.3);
    color: #2c3e50;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta {
    background-color: white;
    color: #3cb579;
    padding: 15px 50px;
    font-size: 1.2rem;
}

.btn-cta:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.btn-submit {
    background-color: #f5a623;
    color: white;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    margin-top: 30px;
}

.btn-submit:hover {
    background-color: #e89610;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    padding: 10px 25px;
    font-size: 0.95rem;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.btn-export {
    background-color: #3cb579;
    color: white;
    padding: 10px 25px;
    font-size: 0.95rem;
}

.btn-export:hover {
    background-color: #2ea367;
}

/* =================================================================== */
/* 4. تنسيقات صفحة الاستبيان (Survey Page Styles) */
/* =================================================================== */
.survey-section {
    max-width: 700px;
    margin: 80px auto;
    padding: 20px;
}

.back-link {
    color: #3cb579;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2ea367;
}

.form-container {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    background-color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3cb579;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

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

.info-box {
    background-color: #e8f5f1;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    color: #2c3e50;
    line-height: 1.8;
}

/* =================================================================== */
/* 5. تنسيقات صفحة تسجيل الدخول (Login Page Styles) */
/* =================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.login-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}


/* =================================================================== */
/* 6. تنسيقات لوحة التحكم (Dashboard Styles) */
/* =================================================================== */
.dashboard-header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 1.8rem;
    color: #2c3e50;
}

.dashboard-content {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

/* بطاقات مؤشرات الأداء */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kpi-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.kpi-icon.yellow { background: linear-gradient(135deg, #ffe8cc 0%, #ffd699 100%); }
.kpi-icon.green { background: linear-gradient(135deg, #d4f4dd 0%, #b8e6c9 100%); }
.kpi-icon.blue { background: linear-gradient(135deg, #dae8fc 0%, #b3d4fc 100%); }

.kpi-content {
    flex: 1;
    text-align: right;
}

.kpi-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
}

/* الرسوم البيانية */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

/* الجداول */
.table-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.survey-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.survey-table th,
.survey-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.survey-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.survey-table tr:hover {
    background-color: #f8f9fa;
}

/* شارات (Badges) */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-yellow { background-color: #fff4e6; color: #f5a623; }
.badge-orange { background-color: #ffe8cc; color: #e67e22; }
.badge-green { background-color: #fff4e6; color: #f5a623; }

/* =================================================================== */
/* 7. تنسيقات نافذة تأكيد الإرسال (Modal Styles) */
/* =================================================================== */
.modal {
    display: none; /* مخفية بشكل افتراضي */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex; /* تظهر عند إضافة كلاس 'show' */
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.modal-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* =================================================================== */
/* 8. تنسيقات للشاشات الصغيرة (Media Queries for Responsiveness) */
/* =================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        width: 120px;
        top: 15px;
        right: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container, .login-card {
        padding: 30px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
}