/* استيراد الخطوط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

/* تخصيصات عامة للموقع */

html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Tajawal', 'Amiri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    font-size: 1rem;
    line-height: 1.6;
}

/* تكبير الخطوط العامة */
p, span, div, td, th, li {
    font-size: 1rem;
}

/* تكبير العناوين */
h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* تحسين مظهر النافيجيشن */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* تحسين مظهر البطاقات */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
}

.card-body {
    font-size: 1rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-text {
    font-size: 1rem;
}

/* تحسين مظهر الأزرار */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.btn-sm {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-lg {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.btn-primary {
    background-color: #0b1f3a;
    border-color: #0b1f3a;
}

.btn-primary:hover {
    background-color: #08162a;
    border-color: #08162a;
}

/* تحسين مظهر النماذج */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #0b1f3a;
    box-shadow: 0 0 0 0.25rem rgba(11, 31, 58, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-select {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-text {
    font-size: 0.9rem;
}

/* تحسين مظهر الجداول */
.table {
    border-radius: 0.375rem;
    overflow: hidden;
    font-size: 1rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    padding: 1rem 0.75rem;
}

.table td {
    font-size: 1rem;
    padding: 0.75rem;
    vertical-align: middle;
}

/* تحسين مظهر التنبيهات */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #d1ecf1;
    color: #055160;
}

/* تحسين مظهر التقدم */
.progress {
    height: 1rem;
    border-radius: 0.5rem;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 0.5rem;
    transition: width 0.6s ease;
}

/* تحسين مظهر القوائم المنسدلة */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* تحسين مظهر الفوتر */
.footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

/* تحسين مظهر الصفحة الرئيسية */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* تحسين مظهر الخطوات */
.steps-container {
    position: relative;
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background-color: #198754;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* تحسين مظهر الإحصائيات */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-weight: 500;
}

/* تحسين مظهر الملفات المرفوعة */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.15s ease-in-out;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.file-upload-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

/* تحسين مظهر الرسوم البيانية */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* تحسين مظهر البحث */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* تحسين مظهر التصفية */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

/* تحسين مظهر الصفحات */
.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

/* تحسين مظهر الأيقونات */
.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 2rem;
}

/* تحسين مظهر الألوان */
.text-primary {
    color: #0b1f3a !important;
}

.bg-primary {
    background-color: #0b1f3a !important;
}

/* تحسين مظهر الاستجابة */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
}

/* تحسين مظهر صفحات التسجيل العامة - تقليل حجم الخط */
.public-registration-page {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Tajawal', sans-serif;
    font-size: 1.2rem; /* تقليل الخط الأساسي */
    font-weight: 500; /* وزن خط متوسط للوضوح */
}

.public-registration-page .card-body {
    font-size: 1.2rem;
}

.public-registration-page .form-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529; /* لون أغمق قليلاً */
}

.public-registration-page .form-control,
.public-registration-page .form-select {
    font-size: 1.2rem;
    color: #212529; /* لون أغمق للنصوص المدخلة */
    padding: 0.75rem 1rem; /* تقليل المساحة الداخلية للحقول */
}

.public-registration-page .form-text {
    font-size: 1rem; /* تقليل حجم النصوص التوضيحية */
    color: #495057; /* لون أغمق للنصوص التوضيحية */
}

.public-registration-page .step-title {
    font-size: 1.4rem; /* تقليل عناوين الخطوات */
    font-weight: 700;
    color: #212529; /* لون أغمق */
}

.public-registration-page .step-description {
    font-size: 1.1rem; /* تقليل وصف الخطوات */
    color: #495057; /* لون أغمق */
}

.public-registration-page .card-title {
    font-size: 1.5rem; /* تقليل عنوان البطاقة */
    font-weight: 700;
    color: #ffffff; /* نص البطاقة باللون الأبيض */
}

.public-registration-page h3,
.public-registration-page h4,
.public-registration-page h5,
.public-registration-page h6 {
    color: #212529; /* لون أغمق للعناوين */
    font-weight: 600;
}

.public-registration-page .alert {
    font-size: 1.2rem; /* تقليل نص التنبيهات */
}

.public-registration-page .btn {
    font-size: 1.2rem; /* تقليل نص الأزرار */
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* تقليل المساحة الداخلية للأزرار */
}

.public-registration-page .text-primary {
    color: #0b1f3a !important; /* لون أغمق للعناصر الأساسية */
}

/* تمييز مربع outline تحت عناوين الشروط */
.public-registration-page h6.fw-bold.text-dark {
    position: relative;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border: 2px solid #28a745;
    border-radius: 8px;
    background-color: rgba(40, 167, 69, 0.05);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.public-registration-page h6.fw-bold.text-dark:hover {
    background-color: rgba(40, 167, 69, 0.1);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
    transform: translateY(-1px);
}

.public-registration-page h6.fw-bold.text-dark::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* تحسين مظهر الطباعة */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
