/* assets/css/navbar.css - FileXL Global Navigation Bar Styles */

/* Base navbar styling */
.navbar {
    background-color: rgba(13, 110, 253, 0.9);
    /* Using Bootstrap primary color with transparency */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ensure navbar stays on top */
}

/* Styling when the navbar is scrolled */
.navbar.scrolled {
    background-color: rgba(13, 110, 253, 0.95) !important;
    /* Slightly less transparent when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow when scrolled */
}

/* Styling for individual navigation links */
.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    color: white !important;
    /* Ensure links are white */
}

/* Hover effect for navigation links */
.nav-link:hover {
    transform: translateY(-2px);
    /* Slight lift effect on hover */
}

/* Underline animation for navigation links on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    /* Underline effect on hover */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    /* Expand underline on hover */
}

/* Specific styling for the "NEW" badge on Premium link */
.nav-item .badge {
    font-size: 0.5em;
    /* Smaller font for the badge */
    top: 0;
    start: 50%;
    transform: translate(-50%, -50%);
    /* Center the badge */
}

/* Styling for login/signup buttons in navbar */
.navbar-nav .btn {
    border-radius: 50px;
    /* Rounded buttons */
    font-weight: 600;
}

/* Styling for outline light button */
.navbar-nav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

.navbar-nav .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    /* Uses a CSS variable, ensure it's defined in your main CSS or :root */
}

/* Styling for warning button */
.navbar-nav .btn-warning {
    background-color: var(--warning-color);
    /* Uses a CSS variable */
    border-color: var(--warning-color);
    color: var(--dark-color);
    /* Uses a CSS variable */
}

.navbar-nav .btn-warning:hover {
    background-color: #ffda6a;
    /* Lighter warning color on hover */
    border-color: #ffda6a;
}

/* Dropdown menu styling for logged-in user */
.navbar-nav .dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.navbar-nav .dropdown-item {
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    padding: 0.75rem 1.25rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--light-color);
    /* Uses a CSS variable */
    color: var(--primary-color);
    /* Uses a CSS variable */
}

.navbar-nav .dropdown-item.text-danger:hover {
    background-color: var(--danger-color);
    /* Uses a CSS variable */
    color: white;
}

/* Responsive adjustments for smaller screens (e.g., mobile) */
@media (max-width: 991.98px) {

    /* Bootstrap's 'lg' breakpoint */
    .navbar-collapse {
        background-color: rgba(13, 110, 253, 0.95);
        /* Solid background for mobile menu */
        border-radius: 0.75rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        align-items: flex-start;
        /* Align items to the left in mobile menu */
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .ms-lg-2 {
        margin-left: 0 !important;
        /* Override Bootstrap spacing for mobile */
    }
}