﻿/* تثبيت خط كاهيرو وتوحيده على كامل النظام */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f6f9; /* خلفية رمادية خفيفة مريحة للعين */
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* كلاس الإطار الموحد والممتد - الحاضن الأساسي لكل النماذج */
.unified-card {
    width: 100%;
    max-width: 100%; /* يفرش كامل مساحة الشاشة المتاحة ليتخلص من الانكماش */
    margin: 0 auto;
    background: #ffffff;
    /* إدراج العلامة المائية للمؤسسة بشكل مدمج وذكي يظهر خلف الجداول */
    background-image: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), url('/1000099205.jpg');
    background-size: 8cm 4cm;
    background-repeat: repeat;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 8px solid #1a365d; /* الحرف الكحلي الفخم بالرأس */
}

/* تنسيق الهيدر والعناوين المشتركة */
.unified-header {
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

    .unified-header h1 {
        font-size: 24px;
        color: #1a365d;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .unified-header p {
        font-size: 14px;
        color: #64748b;
        font-weight: 600;
    }

/* شارات أقسام النماذج */
.unified-section-title {
    background-color: #f1f5f9;
    color: #1e3a8a;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 700;
    border-right: 5px solid #2563eb;
    margin-top: 25px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

/* توحيد استايل الجداول بالكامل في المشروع */
.unified-card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.6);
}

    .unified-card table td {
        padding: 10px;
        border: 1px solid #e2e8f0;
        font-size: 14px;
    }

.unified-card .label {
    font-weight: 600;
    color: #334155;
    background-color: rgba(248, 250, 252, 0.85);
    width: 20%;
}

/* توحيد استايل حقول الإدخال والقوائم المنسدلة */
.unified-card .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .unified-card .form-control:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    }

/* التوزيع المرن للحقول الحرة (Flex Layout) لنموذج أمن والنماذج المشابهة */
.unified-flex-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.unified-field-group {
    flex: 1 1 calc(50% - 20px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.unified-full-width {
    flex: 1 1 100% !important;
}

/* توحيد أزرار الحفظ والإرسال */
.unified-btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    margin-top: 30px;
    transition: background-color 0.2s;
}

    .unified-btn-submit:hover {
        background-color: #1e3a8a;
    }
