
:root {
    --primary-color: #4256a1;
    --accent-red: #df2e21;
    --accent-yellow: #ffd52d;
    --dark-bg: #1a1a2e;
    --dark-gradient: linear-gradient(135deg, #16213e, #1a1a2e, #0f3460);
    --light-text: #e0e0e0;
    --white-text: #ffffff;
    --border-color: rgba(148, 163, 184, 0.15);
    --card-bg: rgba(22, 29, 46, 0.6);
}
::-webkit-scrollbar {
    width: 10px; /* عرض الـ scrollbar */
}

::-webkit-scrollbar-track {
    background: #0d1117; /* لون الخلفية (المسار) */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* اللون الأزرق الأساسي للموقع */
    border-radius: 10px;
    border: 2px solid #0d1117; /* لإعطاء إطار بسيط حول المقبض */
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #5a72c4; /* لون أفتح عند الـ hover */
    }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin; /* يجعل الـ scrollbar نحيفًا */
    scrollbar-color: var(--primary-color) #0d1117; /* (لون المقبض) (لون المسار) */
}

body {
    background: var(--dark-gradient) !important;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
}


/* --- 2. Reusable Components (The Core of the Refactor) --- */

/* The Glassmorphism Card Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .glass-card:hover {
        transform: translateY(-5px);
        border-color: rgba(var(--primary-color), 0.5);
        box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    }

/* Unified Button Styles */
.btn-primary-brand {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-text);
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 86, 161, 0.4);
}

    .btn-primary-brand:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(66, 86, 161, 0.6);
        background-color: #5a72c4;
        border-color: #5a72c4;
    }

.btn-danger-brand {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white-text);
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 46, 33, 0.4);
}

    .btn-danger-brand:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(223, 46, 33, 0.6);
        background-color: #e85a50;
        border-color: #e85a50;
    }


/* --- 3. Layout Specific Styles (Navbar & Footer) --- */

/* Custom Navbar Styling */
.navbar-custom {
    background-color: transparent;
    padding: 1rem 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

    .navbar-custom.scrolled {
        background-color: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }

    .navbar-custom .navbar-brand {
        letter-spacing: 1px;
    }

    .navbar-custom .nav-link {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 600;
        margin: 0 10px;
        position: relative;
        padding-bottom: 5px;
    }

        .navbar-custom .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--accent-yellow);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }

        .navbar-custom .nav-link:hover::after,
        .navbar-custom .nav-link.active::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: var(--white-text);
        }

.dropdown-menu-dark {
    background-color: var(--card-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
}

.dropdown-item:hover {
    background-color: rgba(66, 86, 161, 0.5) !important; /* Primary Blue transparent */
}

/* Custom Footer Styling */
.footer-custom {
    background-color: rgba(13, 17, 23, 0.5); /* A darker, subtle background */
    border-top: 1px solid var(--border-color);
}

    .footer-custom .social-icons a {
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .footer-custom .social-icons a:hover {
            color: var(--accent-yellow) !important;
            transform: translateY(-3px);
        }
/* =============================================== */
/* ======     EMAIL CONFIRMATION PAGE      ====== */
/* =============================================== */

.confirmation-card {
    padding: 3rem;
    text-align: center;
}

.confirmation-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    font-size: 3.5rem;
    color: var(--white-text);
    animation: zoomIn 0.8s ease-out;
}

/* Success State */
.icon-success {
    background-color: #28a745; /* A vibrant green */
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.5);
}

/* Error State */
.icon-error {
    background-color: var(--accent-red); /* Using brand's accent red */
    box-shadow: 0 0 30px rgba(223, 46, 33, 0.5);
}

.confirmation-card h1 {
    font-weight: 700;
    color: var(--white-text);
    animation: fadeInDown 0.8s ease-out 0.2s;
    animation-fill-mode: both; /* Keeps the element visible after animation */
}

.confirmation-card p {
    font-size: 1.2rem;
    color: var(--light-text);
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.confirmation-card .btn {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s;
    animation-fill-mode: both;
}


/* Keyframe animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
/* =============================================== */
/* ======  REGISTRATION CONFIRMATION PAGE  ====== */
/* =============================================== */

/* This icon style is for informational messages (like 'email sent') */
.icon-info {
    background-color: var(--primary-color); /* Using brand's primary blue */
    box-shadow: 0 0 30px rgba(66, 86, 161, 0.5);
    animation: flyIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* A fun, bouncy fly-in effect */
}

/* Animation for the paper plane icon */
@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(45deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}
/* =============================================== */
/* ======     OFF-CANVAS MOBILE MENU       ====== */
/* =============================================== */

.offcanvas {
    background-color: var(--card-bg); /* Use the same glass background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
    color: var(--light-text);
}

    .offcanvas .offcanvas-header {
        border-bottom: 1px solid var(--border-color);
    }

    .offcanvas .offcanvas-title {
        color: var(--white-text);
        font-weight: 600;
    }

    .offcanvas .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%); /* Make the close button white */
    }

    /* Style the nav links inside the off-canvas menu */
    .offcanvas .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

        .offcanvas .navbar-nav .nav-link.active,
        .offcanvas .navbar-nav .nav-link:hover {
            background-color: var(--primary-color);
            color: var(--white-text);
        }