@font-face { font-family: DroidArabicKufi; src: url('../../../assets/fonts/Droid.Arabic.Kufi.ttf'); font-display: swap; }
/* ========================================
   COLOR SCHEME - Edit these to customize
   ======================================== */
:root {
    /* Primary Blue - Hash Format */
    --primary-color: #3464b0;
    --primary-hover: #2f5aa0;
    --primary-light: #4facfe;
    --primary-lighter: #7fc5ff;
    --primary-dark: #2a4e8c;

    /* RGB */
    --primary-rgb: 52, 100, 176;
    --primary-hover-rgb: 47, 90, 160;
    --primary-light-rgb: 79, 172, 254;
    --primary-lighter-rgb: 127, 197, 255;
    --primary-dark-rgb: 42, 78, 140;

    /* Secondary Color (Complementary Orange) - Hash Format */
    --secondary-color: #f97316;
    --secondary-hover: #ea580c;
    --secondary-light: #fb923c;
    --secondary-lighter: #fdba74;
    --secondary-dark: #c2410c;

    /* Secondary Color - RGB Format */
    --secondary-rgb: 249, 115, 22;
    --secondary-hover-rgb: 234, 88, 12;
    --secondary-light-rgb: 251, 146, 60;
    --secondary-lighter-rgb: 253, 186, 116;
    --secondary-dark-rgb: 194, 65, 12;

    /* Neutral Colors */
    --background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Bootstrap Margin/Padding RTL Fixes */
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .me-4 { margin-right: 0 !important; margin-left: 1.5rem !important; }
[dir="rtl"] .me-5 { margin-right: 0 !important; margin-left: 3rem !important; }

[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ms-4 { margin-left: 0 !important; margin-right: 1.5rem !important; }
[dir="rtl"] .ms-5 { margin-left: 0 !important; margin-right: 3rem !important; }

[dir="rtl"] .pe-1 { padding-right: 0 !important; padding-left: 0.25rem !important; }
[dir="rtl"] .pe-2 { padding-right: 0 !important; padding-left: 0.5rem !important; }
[dir="rtl"] .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }
[dir="rtl"] .pe-4 { padding-right: 0 !important; padding-left: 1.5rem !important; }
[dir="rtl"] .pe-5 { padding-right: 0 !important; padding-left: 3rem !important; }

[dir="rtl"] .ps-1 { padding-left: 0 !important; padding-right: 0.25rem !important; }
[dir="rtl"] .ps-2 { padding-left: 0 !important; padding-right: 0.5rem !important; }
[dir="rtl"] .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
[dir="rtl"] .ps-4 { padding-left: 0 !important; padding-right: 1.5rem !important; }
[dir="rtl"] .ps-5 { padding-left: 0 !important; padding-right: 3rem !important; }

/* Text alignment RTL */
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }

/* Float RTL */
[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .float-end { float: left !important; }

/* Border radius RTL */
[dir="rtl"] .rounded-start { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-top-right-radius: var(--bs-border-radius) !important; border-bottom-right-radius: var(--bs-border-radius) !important; }
[dir="rtl"] .rounded-end { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-top-left-radius: var(--bs-border-radius) !important; border-bottom-left-radius: var(--bs-border-radius) !important; }

/* Icon spacing for step titles */
[dir="rtl"] .step-title i,
[dir="rtl"] .section-title i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Button icons */
[dir="rtl"] .btn i:first-child {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .btn i:last-child {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DroidArabicKufi', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(var(--primary-rgb), 0.05) 0%,
    rgba(var(--secondary-rgb), 0.05) 100%);
    z-index: -1;
}

/* ========================================
   WELCOME SCREEN ANIMATIONS
   ======================================== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

.welcome-content {
    text-align: center;
    color: white;
}

.welcome-animation {
    animation: scaleIn 0.8s ease-out;
}

.welcome-icon {
    font-size: 6rem;
    animation: bounceIn 1s ease-out;
    display: block;
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   START SCREEN
   ======================================== */
.start-screen {
    min-height: 100vh;
    animation: fadeIn 0.6s ease-in;
}

.start-content {
    animation: scaleIn 0.8s ease-out;
}

.start-icon {
    font-size: 5rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.start-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.start-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

.start-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4);
}

/* ========================================
   REGISTRATION CONTAINER
   ======================================== */
.registration-container {
    animation: fadeIn 0.6s ease-in;
}

/* ========================================
   GLASSMORPHISM CARD
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    animation: slideInUp 0.6s ease-out;
}

/* ========================================
   GLASS INPUTS
   ======================================== */
.glass-input {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15) !important;
    transform: translateY(-2px);
}

.glass-input:hover:not(:focus) {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

/* ========================================
   GLASS BUTTONS
   ======================================== */
.glass-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   PRIMARY BUTTONS
   ======================================== */
.btn-primary, :not(.btn-group) > .btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
:not(.btn-group) > .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /*border-radius: 10px;*/
}
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}
:not(.btn-group) > .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.6s ease;
}

/* ========================================
   STEP STYLES
   ======================================== */
.step {
    animation: fadeInSlide 0.5s ease-out;
}

.step-header {
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
    padding-bottom: 1rem;
}

.step-title {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.75rem;
}

.step-title i {
    color: var(--primary-color);
}

.step-description {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ========================================
   FORM LABELS & INPUTS
   ======================================== */
.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

textarea.form-control {
    min-height: 120px;
}

/* Tooltip styling */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* ========================================
   GENDER BUTTONS
   ======================================== */
.gender-group .btn-check:checked + .btn-outline-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ========================================
   UPLOAD AREA
   ======================================== */
.upload-area {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(var(--primary-rgb), 0.3) !important;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
}

.upload-area.drag-over {
    border-color: var(--secondary-color) !important;
    background: rgba(var(--secondary-rgb), 0.1) !important;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-light);
}

.upload-preview {
    padding: 2rem;
}

/* ========================================
   DYNAMIC SECTIONS (Employment, Education, etc.)
   ======================================== */
.dynamic-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.4s ease-out;
    position: relative;
}

.remove-section-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

[dir="rtl"] .remove-section-btn {
    right: auto;
    left: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.section-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 0;
}

.section-title i {
    color: var(--primary-color);
}

/* ========================================
   SELECT2 CUSTOMIZATION
   ======================================== */
.select2-container--bootstrap-5 .select2-selection {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    border-radius: 10px !important;
    min-height: 48px !important;
    padding: 0.5rem 1rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 48px !important;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple {
    min-height: 48px !important;
    padding: 0.375rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0.35rem 0.75rem !important;
    color: white !important;
    font-size: 0.9rem;
    margin: 0.25rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 0.5rem !important;
    font-size: 1.1rem;
    font-weight: bold;
}

[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.select2-container {
    width: 100% !important;
}

/* ========================================
   TERMS BOX
   ======================================== */
.terms-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar {
    width: 8px;
}

.terms-box::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========================================
   GLASS ALERT
   ======================================== */
.glass-alert {
    background: rgba(var(--primary-rgb), 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    border-radius: 10px;
}

/* ========================================
   CUSTOM CHECKBOX STYLING
   ======================================== */
.form-check-input {
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}
.select2-selection__choice__remove{
    color: white !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .start-title {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .start-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */
.btn,
.form-control,
.form-select,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* ========================================
   TEXT COLORS
   ======================================== */
.text-primary {
    color: var(--primary-color) !important;
}

a.text-primary:hover {
    color: var(--primary-hover) !important;
}

/* ========================================
   LOADING SPINNER CUSTOMIZATION
   ======================================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

.btn .spinner-border-sm {
    margin-right: 0.5rem;
}

[dir="rtl"] .btn .spinner-border-sm {
    margin-right: 0;
    margin-left: 0.5rem;
}
[dir="rtl"] .btn.btn-sm.btn-outline-danger, [dir="rtl"] .remove-section-btn {
    padding-right: 0 !important;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

.language-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.2);
}

.language-switcher .lang-flag {
    font-size: 1.3rem;
}

.language-switcher .lang-text {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.language-switcher i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
    }

    [dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }

    .language-switcher .lang-text {
        font-size: 0.8rem;
    }
}
