﻿/* ============================================================
   1. الإعدادات العامة وشريط التمرير (Vapor Global & Scrollbar)
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden !important;
    color-scheme: dark; /* حل جذري لبياض الـ Select والـ Date Picker */
}

body {
    background-color: #1a0933 !important;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    flex: 1;
    margin-bottom: 20px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a0933;
}

::-webkit-scrollbar-thumb {
    background: #32fbe2;
    border-radius: 10px;
    box-shadow: 0 0 10px #32fbe2;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #ff00ff;
    }

/* ============================================================
   2. الهيدر والفوتر (Navbar & Footer)
   ============================================================ */
.navbar-nav .nav-link {
    color: #32fbe2 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(50, 251, 226, 0.5);
    transition: 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: #ff00ff !important;
        text-shadow: 0 0 10px #ff00ff;
    }

footer {
    background-color: rgba(26, 9, 51, 0.9) !important;
    padding: 20px 0;
    border-top: 1px solid rgba(50, 251, 226, 0.2) !important;
    text-align: center;
}

/* ============================================================
   3. المكونات والزراير النيون
   ============================================================ */
.btn-primary {
    background-color: #32fbe2 !important;
    border: none !important;
    color: #1a0933 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 15px rgba(50, 251, 226, 0.4);
    transition: 0.3s;
}

    .btn-primary:hover {
        box-shadow: 0 0 25px #32fbe2;
        transform: scale(1.02);
    }

/* زرار جوجل النيون */
button[value="Google"] {
    background: transparent !important;
    border: 2px solid #ff00ff !important;
    color: #ff00ff !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    transition: 0.3s;
}

    button[value="Google"]:hover {
        background: #ff00ff !important;
        color: #fff !important;
        box-shadow: 0 0 20px #ff00ff;
    }

.record-card {
    background-color: #1a0933 !important;
    border: 1px solid rgba(50, 251, 226, 0.2) !important;
    transition: all 0.3s ease;
    border-radius: 15px;
}

    .record-card:hover {
        transform: translateY(-8px);
        border-color: #32fbe2 !important;
        box-shadow: 0 0 20px rgba(50, 251, 226, 0.2) !important;
    }

.modal-content {
    background-color: #1a0933 !important;
    border: 2px solid #ff00ff !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

/* ============================================================
   4. صفحات الهوية (توسيط وجوجل)
   ============================================================ */

/* فتحنا قسم جوجل لكن حافظنا على التوسيط */
.row:has(#account), .row:has(#registerForm) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap; /* يضمن إن جوجل ينزل تحت الفورم لو الشاشة ضيقة */
    min-height: 70vh !important;
    gap: 30px;
}

#account, #registerForm, .login-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 2px solid #32fbe2 !important;
    padding: 35px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(50, 251, 226, 0.2) !important;
    max-width: 380px;
}

/* قسم "Log in with another service" */
.col-md-offset-2 section {
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

h1 {
    text-align: center !important;
    color: #32fbe2 !important;
    text-shadow: 0 0 15px #32fbe2 !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
}

/* إخفاء اللينكات المزعجة تحت الفورم */
#account p:has(a[id="forgot-password"]),
#account p:has(a[id="resend-confirmation"]),
#account p:has(a[href*="Register"]) {
    display: none !important;
}

/* ============================================================
   5. تخصيص Select2 & Forms
   ============================================================ */
.select2-container--default .select2-selection--multiple {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid #32fbe2 !important;
    border-radius: 10px !important;
}

.select2-selection__choice {
    background-color: #1a0933 !important;
    border: 1px solid #ff00ff !important;
    color: #fff !important;
}

select.form-select option {
    background-color: #1a0933 !important;
    color: #32fbe2 !important;
}

/* ============================================================
   6. الترحيب بالاسم (HELLO NAME)
   ============================================================ */
.nav-link.text-info.fw-bold {
    color: #32fbe2 !important;
    text-shadow: 0 0 10px rgba(50, 251, 226, 0.8);
    letter-spacing: 0.5px;
    font-family: 'Courier New', Courier, monospace; /* لمسة برمجية */
}
/* تظبيط شكل الترحيب والفاصل */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

