/* =======================================================
                3. Navbar section & BASE STYLES
 ======================================================= */
/* =========================  =========================== */


/* --- Navbar section --- */
nav {
    background: linear-gradient(90deg, #FFD700, #FFC300, #FFA500, #FFC300, #FFD700); 
    padding: 14px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px; /* space between items */
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #222; /* গাঢ় কালো টেক্সট */
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    padding: 6px 10px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

/* Hover effect */
nav ul li a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* Active link */
nav ul li a.active {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Underline hover animation */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Separator "|" --- */
.nav-sep {
    font-weight: 800;
    font-size: 20px;
    color: #333; /* গাঢ় কালার যাতে contrast হয় */
    margin: 0 4px;
    opacity: 0.8;
}

/* --- Login Popup --- */
.login-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Popup Box */
.login-popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 35px 30px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: popupFade 0.3s ease-in-out;
}

/* Heading */
.login-popup-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
}

/* Close Button */
.login-popup-box .close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}
.login-popup-box .close-btn:hover {
    color: red;
}

/* Form Layout */
.login-popup-box form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Input Group (for floating label) */
.input-group {
    position: relative;
    width: 100%;
}

/* Input Design */
.login-popup-box input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f8faff;
    font-size: 15px;
    outline: none;
    transition: border 0.3s, background 0.3s;
}
.login-popup-box input:focus {
    border-color: #0056b3;
    background: #fff;
}

/* Floating Label */
.login-popup-box label {
    position: absolute;
    left: 12px;
    top: 14px;
    font-size: 14px;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Label moves up when focused, filled, or autofilled */
.login-popup-box input:focus + label,
.login-popup-box input:not(:placeholder-shown) + label,
.login-popup-box input:-webkit-autofill + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #0056b3;
    background: #fff;
    padding: 0 4px;
    border-radius: 3px;
}

/* Autofill Fix */
.login-popup-box input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit Button */
.login-popup-box button {
    padding: 12px;
    border: none;
    background: #0056b3;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.login-popup-box button:hover {
    background: #003d80;
}

/* Extra link */
.login-popup-box .form-extra-link {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    color: #555;
}
.login-popup-box .form-extra-link a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}
.login-popup-box .form-extra-link a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .login-popup-box {
        padding: 25px 20px;
        width: 95%;
    }
    .login-popup-box h2 {
        font-size: 20px;
    }
}

         /* --- end of Navbar section --- */


         /* --- end of Navbar section --- */