﻿/* ══════════════════════════════════════════════════════════════════════════ */
/* Account Update Page Styles */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* Textarea Minimum Height */
/* ═══════════════════════════════════════════════════════════════ */
textarea.form-control {
    min-height: 100px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Bilingual Labels */
/* ═══════════════════════════════════════════════════════════════ */
.bilingual-label {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}

    .bilingual-label .en-text {
        direction: ltr;
        font-family: 'Arial', sans-serif;
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    .bilingual-label .ar-text {
        direction: rtl;
        font-family: 'Tajawal', 'Arial', sans-serif;
        text-align: right;
        flex: 1;
        min-width: 0;
        color: #344863;
        padding-left: 10px;
    }

/* Hide Arabic Mode */
body.hide-arabic .bilingual-label .ar-text {
    display: none !important;
}

body.hide-arabic .bilingual-label .en-text {
    flex: none;
    width: 100%;
}

body.hide-arabic .bilingual-label {
    flex-direction: row;
}

.btn-outline-primary:hover .bilingual-label .ar-text {
    color: #fff;
}

/* تنسيق النص العربي داخل الأزرار الأساسية */
.btn-primary .bilingual-label .ar-text {
    color: #fff !important;
}

.btn-outline-secondary .bilingual-label .ar-text {
    color: #344863;
}

.btn-outline-secondary:hover .bilingual-label .ar-text {
    color: #fff !important;
}

.form-label.bilingual-label {
    width: 100%;
}

.me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Radio Buttons */
/* ═══════════════════════════════════════════════════════════════ */
.custom-radio + label,
.custom-radio + label.bilingual-label {
    font-size: 12px;
}

/* Inline Radio Group */
.radio-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .radio-inline-group > div {
        display: inline-flex;
        align-items: center;
    }

/* ═══════════════════════════════════════════════════════════════ */
/* Form Placeholders */
/* ═══════════════════════════════════════════════════════════════ */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.7;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Photo Requirements Box */
/* ═══════════════════════════════════════════════════════════════ */
.photo-requirements-box {
    border: 2px dashed #9ca3af;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-top: 10px;
}

    .photo-requirements-box .requirements-title {
        font-weight: 600;
        color: #6b7280;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .photo-requirements-box ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

        .photo-requirements-box ul li {
            color: #6b7280;
            font-size: 12px;
            padding: 3px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .photo-requirements-box ul li i {
                color: #9ca3af;
                font-size: 10px;
            }

/* ═══════════════════════════════════════════════════════════════ */
/* Select2 Customization */
/* ═══════════════════════════════════════════════════════════════ */
.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e8ecf4 !important;
    border-radius: 4px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px;
        padding-left: 12px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }

/* ═══════════════════════════════════════════════════════════════ */
/* Form Labels */
/* ═══════════════════════════════════════════════════════════════ */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #534A4B; /*#CBAA6A;*/
}

/* ═══════════════════════════════════════════════════════════════ */
/* Upload Preview */
/* ═══════════════════════════════════════════════════════════════ */
.upload-preview-container {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

    .upload-preview-container img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 4px;
    }

/* ═══════════════════════════════════════════════════════════════ */
/* Progress Bar */
/* ═══════════════════════════════════════════════════════════════ */
.upload-progress {
    margin-top: 8px;
}

    .upload-progress .progress {
        height: 6px;
        border-radius: 3px;
    }

/* ═══════════════════════════════════════════════════════════════ */
/* Success Alert Animation */
/* ═══════════════════════════════════════════════════════════════ */
.alert-success-fade {
    animation: fadeInOut 5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* Section Save for Later Button */
/* ═══════════════════════════════════════════════════════════════ */
.section-save-button {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
}

.section-save-btn {
    padding: 8px 20px;
    font-size: 13px;
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
}

    .section-save-btn:hover {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
    }

    .section-save-btn i {
        font-size: 14px;
    }
