:root {
    /* كود المنصات الموحد - الألوان الرقمية الرسمية للمملكة */
    --primary-color: #074D31; /* الأخضر الداكن المعتمد في فيجما */
    --primary-hover: #04271b;
    --secondary-color: #F4F5F7; /* خلفية رمادية فاتحة */
    --accent-color: #DBA102; /* لون ذهبي معتمد */
    --text-color: #0D121C; /* لون النصوص الرئيسي (تباين عالي) */
    --text-secondary: #4B5563; /* لون النصوص الفرعية */
    --bg-light: #ffffff;
    --white: #ffffff;
    /* ألوان الحالة والوصولية المعتمدة */
    --color-success: #17B26A;
    --color-info: #2E90FA;
    --color-warning: #F79009;
    --color-error: #F04438;
    --border-color: #E5E7EB;
    --sidebar-width: 280px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px; /* الانحناء القياسي للمكونات */
    --box-shadow: 0 4px 12px rgba(13, 12, 28, 0.04);
}

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

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

/* Navbar */
.top-nav {
    background: var(--white);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 52px;
}

.brand-text h5 {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.15rem;
}

.brand-text small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.65rem 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 147, 95, 0.2);
}

.btn-primary-custom:focus-visible {
    outline: 2px solid var(--color-info);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #155436 100%);
    color: var(--white);
    padding: 4.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 147, 95, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 189, 2, 0.06) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.95;
}

/* Cards */
.card-custom {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 12, 28, 0.08);
}

/* Forms */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.925rem;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-custom::placeholder {
    color: #9CA3AF;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 147, 95, 0.15);
    outline: none;
}

/* Footer */
.footer-custom {
    background: #074D31; /* لون التذييل الداكن */
    color: #ffffff;
    padding: 4rem 2rem 1.5rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 1 !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 1 !important;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #04271b;
}

/* ==========================================================================
   أنماط النموذج الأولي لـ Figma (Qassim Innovate) والصفحات التفاعلية
   ========================================================================== */

/* إخفاء الهيدر والفوتر الافتراضيين لـ _Layout فقط عند عرض صفحات النموذج الأولي */
body:has(.application-page) > header,
body:has(.application-page) > footer {
    display: none !important;
}

body:has(.application-page) .main-content {
    padding: 0 !important;
}

body:has(.application-page) {
    background-color: #074D31 !important; /* الخلفية الخضراء الداكنة المعتمدة في التصميم */
}

/* حاوية الصفحة الكلية للنموذج الأولي */
.application-page {
    background-color: #FFF;
    min-height: 100vh;
    color: #ffffff;
    padding-bottom: 5rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* شريط التنقل العلوي المخصص داخل صفحات النموذج */
body:has(.application-page) > .main-content header {
    background-color: #04271b; /* أخضر غامق للهيدر */
    padding: 0.5rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body:has(.application-page) > .main-content nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

body:has(.application-page) > .main-content nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

body:has(.application-page) > .main-content nav ul a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

body:has(.application-page) > .main-content nav ul a:hover,
body:has(.application-page) > .main-content nav ul a[style*="underline"] {
    color: #ffffff !important;
    border-bottom: 2px solid var(--accent-color) !important; /* الذهبي للتحديد النشط */
    text-decoration: none !important;
}

body:has(.application-page) > .main-content nav ul .group-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body:has(.application-page) > .main-content nav ul .group-nav-item img {
    width: 18px;
    height: 18px;
}

/* أقسام صفحات التقديم والعرض */
.application-section h1 {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem auto 2rem auto;
    max-width: 900px;
}

.application-section .application-section h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* حاويات النماذج (الاستمارات الورقية البيضاء) */
.pc-service-form {
    background: #ffffff;
    color: #0D121C;
    border-radius: 16px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-service-form-heading {
    border-bottom: 1.5px solid #F3F4F6;
    padding-bottom: 0.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pc-service-form-heading:first-child {
    margin-top: 0;
}

.pc-service-form-heading h4 {
    font-weight: 700;
    color: #053424; /* أخضر داكن */
    font-size: 1.15rem;
    margin: 0;
}

.pc-docs-requirements-heading {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* شبكة توزيع الحقول */
.pc-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pc-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pc-full-width-input {
    grid-column: span 2;
}

.pc-input-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1F2937;
}

.pc-input-label .required {
    color: #F04438;
}

/* تصميم الحقول النصية والقوائم */
.pc-input input[type="text"],
.pc-input textarea,
.pc-input select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius);
    background-color: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.pc-input input[type="text"]:focus,
.pc-input textarea:focus,
.pc-input select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 147, 95, 0.15);
    outline: none;
}

/* الحقول غير القابلة للتعديل (العرض فقط) */
.pc-input p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    background: #F9FAFB;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #E5E7EB;
    margin: 0;
}

/* خيارات اختيار الدوائر (Radio Buttons) */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    background: #F9FAFB;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: #F0FDF4;
}

.radio-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* أداة تحميل الملفات (File Uploader) */
.pc-file-uploader {
    border: 2px dashed #D1D5DB;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.pc-file-uploader:hover {
    border-color: var(--primary-color);
    background: #F0FDF4;
}

.pc-file-uploader svg {
    width: 44px;
    height: 44px;
}

.pc-file-uploader svg path {
    fill: var(--primary-color) !important;
}

.pc-file-uploader h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.pc-file-uploader p {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0;
    max-width: 450px;
}

.pc-secondary-btn {
    background-color: #ffffff;
    border: 1px solid #D1D5DB;
    color: #374151;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.pc-secondary-btn:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

/* أزرار الإجراءات للنماذج */
.pc-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
}

.pc-primary-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc-primary-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 147, 95, 0.2);
}

.pc-outline-btn {
    background-color: #ffffff;
    border: 1px solid #D1D5DB;
    color: #374151;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pc-outline-btn:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

/* جداول عرض المقترحات */
.application-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    box-shadow: var(--box-shadow);
}

.application-page th {
    background-color: #F9FAFB;
    color: #374151;
    font-weight: 600;
    padding: 1.15rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1.5px solid #E5E7EB;
    text-align: right;
}

.application-page td {
    padding: 1.15rem 1rem;
    font-size: 0.925rem;
    color: #1F2937;
    border-bottom: 1px solid #E5E7EB;
    background: #ffffff;
}

.application-page tr:last-child td {
    border-bottom: none;
}

.application-page tr:hover td {
    background-color: #F9FAFB;
}

.application-page td a {
    background-color: #F0FDF4;
    color: var(--primary-color);
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 147, 95, 0.25);
    transition: var(--transition);
}

.application-page td a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* شارات الحالة (Status Badges) */
.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.status.accepted {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status.study {
    background-color: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.status.repated {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.status.rejected {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

.status.new {
    background-color: #FFFBEB;
    color: #92400E;
    border: 1px solid #FEF3C7;
}

/* تنسيق حاوية أزرار التواصل الاجتماعي */
.social-links {
    display: flex;
    gap: 10px;
}

    /* التنسيق الخاص بك لأزرار التواصل */
    .social-links a {
        display: flex;
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
        padding: var(--Global-spacing-none, 0) var(--Button-buttons-md-padding, 12px);
        justify-content: center;
        align-items: center;
        gap: var(--Button-buttons-md-gap, 4px);
        border-radius: var(--Radius-radius-sm, 4px);
        border: 1px solid var(--Border-border-oncolor-transparent-30, rgba(255, 255, 255, 0.30));
        text-decoration: none;
        transition: all 0.3s ease;
    }

        /* تلوين الأيقونة باللون الأبيض الصريح لتعود زاهية */
        .social-links a i {
            color: #ffffff !important;
            font-size: 16px; /* حجم مناسب للأيقونة داخل مربع 32 بكسل */
        }

        /* تأثير تفاعلي جميل عند مرور الماوس */
        .social-links a:hover {
            background-color: rgba(255, 255, 255, 0.2); /* إضاءة للخلفية */
            border-color: #ffffff; /* تفتيح الحدود */
        }
input[readonly] {
    background-color: #f5f5f5; /* خلفية رمادية قريبة من لون النظام */
    color: #6c757d; /* لون نص باهت قليلاً ليظهر أنه غير قابل للتعديل */
    cursor: not-allowed; /* تغيير مؤشر الماوس ليظهر علامة المنع */
}

/* تنسيق حاوية صفحة تقديم مقترح ابتكاري بالكامل */
.application-page .pc-service-form2.pc-basic-container2 {
    display: flex;
    width: 1059px;
    max-width: 100%; /* لضمان عدم خروج العنصر عن الشاشة في الشاشات الصغيرة */
    padding: 32px var(--Card-card-lg-padding, 32px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Global-spacing-3xl, 24px);
    border-radius: var(--Radius-radius-lg, 16px);
    border: 1px solid var(--Border-border-neutral-primary, #D2D6DB);
    background: #FFF;
    box-sizing: border-box; /* لضمان حساب الـ padding من ضمن العرض الإجمالي */
    margin: 0 auto; /* لتوسيط الحاوية في منتصف الصفحة تماماً */
}

/* تحسين مرونة عناصر الإدخال الداخلية لتتناسب مع الترتيب العمودي الجديد */
.application-page .pc-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--Global-spacing-3xl, 24px);
}

.application-page .pc-form-grid-2col {
    width: 100%;
}

/* تنسيق العناوين: بيانات مقدم الطلب، مجال الابتكار، تفاصيل المقترح */
.pc-service-form2-heading h4 {
    color: #000;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 150% */
    margin: 0; /* لإلغاء أي هوامش افتراضية قد تؤثر على الأبعاد */
}
/* تنسيق عناصر وحقول البيانات */
.pc-form .pc-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* إذا كان الموقع عربياً (RTL) وتريد المحاذاة لليمين، أو اتركها flex-end كما طلبت */
    gap: var(--Form-field-label-gap, 8px);
    flex: 1 0 0;
    width: 100%; /* لضمان أخذ المساحة المتاحة في شبكة العرض */
}

    /* لضمان مطابقة الـ Input والـ Textarea لعرض الحاوية الجديد */
    .pc-form .pc-input input,
    .pc-form .pc-input textarea {
        width: 100%;
        box-sizing: border-box;
    }

/* تنسيق حاوية الأزرار أسفل الفورم */
.pc-form-buttons {
    display: flex;
    flex-direction: row; /* ترتيب العناصر أفقياً */
    justify-content: flex-start; /* محاذاة الأزرار لتبدأ من اليمين تماماً (في بيئة RTL) */
    gap: 12px; /* المسافة الفاصلة بين الزرين */
    width: 100%;
}

    /* لضمان الترتيب الصحيح في حال كانت الصفحة تدعم التوجيه الافتراضي */
    .pc-form-buttons button.pc-primary-btn {
        order: 1; /* يضمن ظهور زر الإرسال أولاً على اليمين */
    }

    .pc-form-buttons a.pc-outline-btn {
        order: 2; /* يظهر زر الإلغاء بعده */
    }

/* إعطاء حقل الإيميل المقروء فقط نفس تنسيقات الحقول العادية في نظامك */
.pc-input input[readonly] {
    width: 100%;
    height: 46px; /* أو الارتفاع المتوافق مع بقية الحقول لديك */
    padding: 10px 14px;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 14px;
    border: 1px solid #D2D6DB;
    border-radius: var(--Radius-radius-sm, 4px);
    box-sizing: border-box;
    /* تمييز الحقل بأنه مغلق بشكل احترافي */
    background-color: #F8F9FA; /* خلفية رمادية ناعمة */
    color: #6C757D; /* لون نص هادئ */
    cursor: not-allowed; /* تغيير مؤشر الماوس لعلامة المنع عند الوقوف عليه */
}

    /* لمنع ظهور إطار أزرق أو أسود عند الضغط على الحقل المغلق */
    .pc-input input[readonly]:focus {
        outline: none;
        border-color: #D2D6DB;
        box-shadow: none;
    }
/* تنسيق مربعات الإدخال العادية */
.pc-form-grid-2col .pc-input input,
.pc-input input[asp-for="Title"] {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* محاذاة النص أو العناصر الداخلية إلى نهاية الحقل (اليسار) */
    gap: var(--Form-field-label-gap, 8px);
    flex: 1 0 0;
    width: 100%; /* لضمان ملء المساحة المتاحة */
    box-sizing: border-box;
}

