:root {
    --alwan-blue: #0f4c92;
    --alwan-teal: #006d77;
    --alwan-green: #83c5be;
    --alwan-pink: #e63946;
    --alwan-gold: #d4a373;
}

/* التنسيقات العامة للموقع مع دمج الصورة المخصصة */
body {
    /* استدعاء الصورة alwanBG.jpg كخلفية ثابتة ومغطاة بالكامل */
    background: linear-gradient(rgba(240, 244, 248, 0.85), rgba(217, 226, 236, 0.85)), url('../images/alwanBG2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html[lang="ar"] body { font-family: Tahoma, Arial, 'Segoe UI', sans-serif; }
html[lang="en"] body { font-family: 'Segoe UI', Arial, sans-serif; }

/* تنسيق الهيكل المرن للتموضع في المنتصف */
.flex-center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* الكارت الرئيسي الموحد - تم تعديله ليصبح أرشق وملموماً بشكل احترافي ✨ */
.main-card {
    background: rgba(255, 255, 255, 0.94); /* لون أبيض مريح للعين */
    backdrop-filter: blur(8px); /* تأثير تضبيب زجاجي ناعم خلف الكارت */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; /* تدوير زوايا متناسق مع الحجم الجديد */
    box-shadow: 0 10px 25px rgba(15, 76, 146, 0.12); /* ظلال ناعمة غير مزعجة */
    padding: 25px 30px; /* تقليص الحشوة الداخلية لضغط المساحات الفارغة */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 5px solid var(--alwan-blue); /* شريط علوي نحيف وأنيق */
    width: 100%;
    max-width: 380px; /* تقليص العرض الأقصى من 450px إلى 380px */
}

/* تأثير تحريك خفيف وهادئ عند تمرير الماوس */
.main-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 76, 146, 0.18);
}

/* تصغير شعار المدرسة ليناسب أبعاد الكارت الجديد */
.school-logo {
    max-width: 95px;
    height: auto;
    margin-bottom: 10px;
}

/* تصغير عنوان الواجهة الرئيسي */
.brand-title {
    font-weight: 700;
    color: var(--alwan-blue);
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

/* تنسيق حقول الإدخال للنموذج */
.form-group {
    margin-bottom: 20px;
    text-align: start;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-control-custom {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control-custom:focus {
    border-color: var(--alwan-blue);
    outline: none;
}

/* الأزرار الاحترافية - تم تعديل الارتفاع لتبدو رشيقة وانسيابية 🚀 */
.btn-custom {
    border-radius: 10px;
    padding: 11px 18px; /* تقليص الحشو لجعل ارتفاع الأزرار متوازناً تماماً */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white !important;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.98rem; /* خط متناسق مع الحجم الجديد */
}

.btn-block { width: 100%; }
.btn-teacher { background-color: var(--alwan-teal); }
.btn-teacher:hover { background-color: #00565e; transform: scale(1.02); }
.btn-admin { background-color: var(--alwan-blue); }
.btn-admin:hover { background-color: #0b396e; transform: scale(1.02); }
.btn-parent { background-color: var(--alwan-gold); }
.btn-parent:hover { background-color: #bd8b5c; transform: scale(1.02); }

/* زر تغيير اللغة */
.lang-switcher { position: absolute; top: 25px; }
html[lang="ar"] .lang-switcher { left: 25px; }
html[lang="en"] .lang-switcher { right: 25px; }

.btn-lang {
    border-radius: 30px;
    padding: 8px 24px;
    border: 2px solid var(--alwan-blue);
    color: var(--alwan-blue);
    font-weight: 600;
    background: white;
    text-decoration: none;
}

/* ------------------------------------------- */
/* تنسيقات لوحة تحكم المسؤول (Dashboard) */
/* ------------------------------------------- */
body.admin-dashboard-page {
    background: #f7fafc;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}

.dashboard-box h4 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-custom {
    padding: 15px;
    background-color: #fed7d7;
    color: #c53030;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success-custom {
    padding: 15px;
    background-color: #c6f6d5;
    color: #22543d;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}
