/* ===== تصميم احترافي لموقع تأميني ===== */

/* ===== متغيرات الألوان - تأميني ===== */
:root {
    --primary-color: #00A3E0;
    --primary-dark: #0077B6;
    --secondary-color: #00C9A7;
    --accent-color: #FFB81C;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --success-color: #00C9A7;
    --danger-color: #E63946;
    --warning-color: #FFB81C;
    --info-color: #00A3E0;
    --white: #ffffff;
    --light-bg: #F7F9FC;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسين الحاوية الرئيسية */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* تحسين البطاقات */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin-bottom: 24px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: #ffffff !important;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 20px;
    font-weight: 600;
    font-size: 18px;
}

.card-body {
    padding: 24px;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* تحسين أزرار الراديو للاختيار */
.input-container {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    height: 100%;
}

.row.g-4 > * {
    display: flex;
    align-items: stretch;
}

.input-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-tile {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    min-height: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.radio-tile:hover {
    border-color: var(--primary-color);
    background: #f0f9ff !important;
    transform: translateY(-2px);
}

.input-container input[type="radio"]:checked + .radio-tile {
    border-color: var(--primary-color);
    background: #e6f7ff !important;
    box-shadow: 0 0 0 4px rgba(0, 163, 180, 0.1);
}

.radio-tile label {
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.radio-tile img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.input-container input[type="radio"]:checked + .radio-tile img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.radio-tile span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 17px;
}

/* تحسين حقول الإدخال */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 163, 180, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* تحسين الأزرار */
.btn {
    border-radius: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-info {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-info:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-info.active {
    background: var(--secondary-color);
}

.btn-outline-info {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* تحسين العناوين */
.bfont {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.mfont {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.6;
}

.xfont {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* تحسين الأكورديون */
#accordion .card {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

#accordion .card-header {
    background: var(--white);
    padding: 0;
}

#accordion .btn-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 20px;
}

#accordion .btn-link:hover {
    background: rgba(0, 163, 180, 0.05);
}

#accordion .card-body {
    color: var(--text-light);
    line-height: 1.8;
}

/* تحسين القوائم */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

ul li:last-child {
    border-bottom: none;
}

ul li img {
    margin-left: 12px;
    width: 40px;
    height: 40px;
}

/* تحسين الصور */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* تحسين الشريط العلوي */
.navbar-custom {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* تحسين الأقسام */
.section-spacing {
    padding: 40px 0;
}

/* تحسين مجموعة الأزرار */
.btn-group-toggle .btn {
    border-radius: 10px;
    margin: 0 4px;
}

.btn-group-toggle .btn.active {
    background: var(--secondary-color);
    color: var(--white);
}

/* تحسين الرسائل التوضيحية */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* تحسين الخلفية */
.bg-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* تحسين التباعد */
.mt-custom {
    margin-top: 32px;
}

.mb-custom {
    margin-bottom: 32px;
}

.py-custom {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* تحسين الانتقالات */
* {
    transition: var(--transition);
}

/* تحسين التمرير */
html {
    scroll-behavior: smooth;
}

/* تحسين الاستجابة للموبايل */
@media (max-width: 768px) {
    .bfont {
        font-size: 22px;
    }
    
    .mfont {
        font-size: 16px;
    }
    
    .card {
        margin-bottom: 16px;
    }
    
    .radio-tile {
        padding: 16px 12px;
        min-height: 120px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .bfont {
        font-size: 20px;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* تحسين الأيقونات */
.fa-solid, .fa-plane {
    font-size: 40px;
    color: var(--primary-color);
}

/* تأثيرات التحميل */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* تحسين الظلال للبطاقات */
.card-shadow-hover {
    transition: var(--transition);
}

.card-shadow-hover:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* تحسين النصوص */
.text-primary-custom {
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تحسين الفواصل */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 32px 0;
}

/* تحسين التوافق مع الأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
}
