/* ==========================================================
   1. الإعدادات العامة والخطوط
   ========================================================== */
body, h1, h2, h3, h4, h5, h6, .btn, .form-control, .form-label, small {
    font-family: 'Cairo', sans-serif !important;
}

body { 
    background-color: #cbd5e1; 
    background-image: radial-gradient(#94a3b8 0.5px, transparent 0.5px); 
    background-size: 15px 15px; 
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================
   2. حاوية حقول الإدخال (Input Group)
   ========================================================== */
.input-group.input-group-outline {
    position: relative;
    background-color: white !important;
    border-radius: 8px !important;
    border: 1px solid #d2d6da !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center !important;
    min-height: 54px !important; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
    z-index: 9;
    overflow: visible !important; /* للسماح للـ Label بالخروج من الحقل عند رفعه */
}

/* ==========================================================
   3. حقل الكتابة الفعلي (Input Control)
   ========================================================== */
.input-group.input-group-outline .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 10 !important; /* ليكون فوق الـ Label وقابل للضغط */
    padding: 12px 15px !important;
    width: 100%;
    color: #1a1a1a !important;
    line-height: 1.6 !important; /* مساحة كافية لأحرف خط Cairo */
    font-size: 1rem !important;
    height: 54px !important;
}

/* ==========================================================
   4. نصوص المساعدة (Labels) والحركة
   ========================================================== */


/* حالة الرفع (عند التركيز أو وجود نص) */
.input-group.input-group-outline.is-focused .form-label,
.input-group.input-group-outline.is-filled .form-label {
    top: 0 !important;
    transform: translateY(-50%) !important;
    right: 10px;
    font-size: 0.85rem !important;
    color: #e91e63 !important; /* اللون الوردي للهوية */
    background: white !important; /* ليغطي خط الإطار خلفه */
    padding: 0 8px;
    font-weight: 700;
    z-index: 6!important;
}

/* تأثير التوهج عند الضغط */
.input-group.input-group-outline.is-focused {
    border-color: #e91e63 !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2) !important;
    transform: translateY(-1px);
}

/* ==========================================================
   5. معالجة الإكمال التلقائي (Autofill) ومنع الرمادي
   ========================================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #1a1a1a !important;
    /* إجبار الخلفية على البقاء بيضاء باستخدام الظل الداخلي */
    -webkit-box-shadow: 0 0 0px 1000px white inset !important; 
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================
   6. الأزرار والروابط التفاعلية
   ========================================================== */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px !important;
    z-index: 1;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.18) !important;
}

/* تأثير اللمعان على الزر */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.6s;
}

.btn-premium:hover::before {
    left: 100%;
}

.animated-link {
    position: relative;
    text-decoration: none !important;
    color: #e91e63 !important;
    font-weight: 700;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px; bottom: -2px; right: 0;
    background-color: #e91e63; 
    transition: width 0.3s ease;
}

.animated-link:hover::after {
    width: 100%;
    left: 0;
}

/* ==========================================================
   7. الإضافات النهائية (Switch & Card)
   ========================================================== */
.form-check-input:checked {
    background-color: #e91e63 !important;
    border-color: #e91e63 !important;
}

.card {
    border: none !important;
    border-radius: 15px !important;
    overflow: visible !important; /* لضمان ظهور ظل الـ header */
}

.card-header {
    border-radius: 12px !important;
}




