/* 1. إعدادات الصفحة الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #000; /* خلفية سوداء أساسية */
    font-family: 'Times New Roman', Times, serif; /* لتعطي طابع الفخامة */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 2. الخلفية المزخرفة (Textured Background) */
.luxury-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* استبدل المسار بصورة القماش الأسود اللي عندك */
    background-image: url('../img/black-fabric.jpg'); 
    background-size: cover;
    background-position: center;
}

.glass-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

/* 3. الهيدر (الشعار العربي والإنجليزي) */
.brand-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.brand-logo-ar {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.brand-name-en {
    color: #fff;
    font-size: 2.2rem;
    letter-spacing: 6px;
    font-weight: 300;
    text-transform: uppercase;
}

/* 4. صندوق تسجيل الدخول الزجاجي (The Masterpiece) */
.login-box-glass {
    width: 380px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.04); /* شفافية قوية جداً */
    backdrop-filter: blur(12px); /* تأثير الزجاج المضبب */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

/* 5. تنسيق حقول الإدخال (Minimalist Style) */
.input-container {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* الخط النحيف الأبيض */
    transition: 0.3s;
}

.input-container:focus-within {
    border-bottom-color: #fff;
}

.input-container label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 10px 0;
    font-size: 1.05rem;
    font-family: inherit;
}

/* 6. الزر العنابي الفخم (Sarab Red) */
.login-btn-burgundy {
    width: 100%;
    padding: 15px;
    background-color: #800000; /* لون أحمر عنابي داكن */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: capitalize;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.login-btn-burgundy:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.5);
}

/* 7. الروابط السفلية */
.login-box-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.login-box-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.login-box-footer a:hover {
    color: #fff;
}

/* 8. الأيقونة الزخرفية (الشرارة) */
.decorative-sparkle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.5;
}

.decorative-sparkle img {
    width: 25px;
}

/* تأثيرات حركية */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* زر العودة للرئيسية (Back Home) */
.back-home-btn {
    position: fixed;
    top: 30px;
    right: 40px; /* جهة اليمين لأن الموقع RTL */
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* شكل بيضاوي شيك */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.back-home-btn i {
    font-size: 0.8rem;
    transition: 0.3s;
}

.back-home-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px); /* حركة خفيفة لجهة اليسار عند الهوفر */
}

.back-home-btn:hover i {
    transform: translateX(-3px);
}

/* للموبايل: نصغر الحجم شوية */
@media (max-width: 480px) {
    .back-home-btn {
        top: 20px;
        right: 20px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
/* 1. الحاوية الرئيسية (تكون مخفية تحت الشاشة) */
.profile-sheet {
    position: fixed;
    bottom: -100%; /* مخفية تماماً */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* لما نضيف الكلاس ده بالـ JS الصفحة تطلع */
.profile-sheet.active {
    bottom: 0;
}

/* 2. الطبقة الشفافة خلف الصفحة */
.sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* 3. جسم الصفحة (الجزء الزجاجي) */
.sheet-content {
    position: relative;
    background: rgba(15, 15, 15, 0.95); /* أسود فخم */
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px 30px 0 0;
    padding: 20px 30px 40px;
    width: 100%;
    max-height: 85vh; /* متغطيش الشاشة كلها */
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* خط السحب الصغير */
.drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
}

/* 4. الهيدر وأيقونة القلم */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.sheet-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.edit-icon-btn {
    background: none;
    border: none;
    color: #800000; /* العنابي بتاعنا */
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.edit-icon-btn:hover {
    transform: scale(1.2) rotate(-10deg);
    color: #fff;
}

/* 5. تنسيق الحقول */
.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.profile-field label i {
    margin-left: 8px;
    color: #800000;
}

.profile-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

/* لما تكون الحقول قابلة للتعديل */
.profile-input:not([readonly]) {
    border-color: #800000;
    background: rgba(128, 0, 0, 0.05);
}

textarea.profile-input {
    height: 80px;
    resize: none;
}

/* 6. زر حفظ التعديلات */
.save-changes-btn {
    width: 100%;
    padding: 15px;
    background: #800000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
    transition: 0.3s;
}

.save-changes-btn:hover {
    background: #a00000;
    transform: translateY(-2px);
}