/* Navbar Styles */
.navbar {
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    transition: all 0.3s ease;
}

/* Sticky navbar styles */
.navbar.sticky-top {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Scroll effect for navbar */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(15px);
}

.navbar-toggler-custom {
    border: 1px solid var(--color-neutral-neutral-900);
    border-radius: 100%;
    padding: 10px 12px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand img {
    /* transition: transform 0.3s ease; */
    height: 70px;
    width: auto;
    /* Prevent layout shift by reserving space */
    aspect-ratio: 150 / 50;
    object-fit: contain;
    display: block;
}

/* .navbar-brand img:hover {
  transform: scale(1.05);
} */

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.navbar-nav .nav-link.active {
    color: var(--color-primary-primary-500) !important;
}

.navbar-right .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-right .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Full Screen Sidebar Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: calc(34px - 16px);
}

.sidebar-brand img {
    width: auto;
    height: 70px;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--color-text-text-950);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 0;
}

.sidebar-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-text-text-950);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
}

.sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    padding-left: 2rem;
    color: var(--color-text-text-950);
}

.sidebar-nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
}

.sidebar-nav-link:hover::before {
    width: 3px;
}

.sidebar-footer {
    padding: 1.5rem;
    text-align: center;
}

.sidebar-footer .btn {
    width: 100%;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-footer .btn i {
    rotate: 330deg;
    margin-left: 10px;
}

.sidebar-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Prevent layout shift on navbar collapse */
.navbar-collapse {
    min-height: 0;
    transition: none;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-right {
        text-align: center;
    }

    .sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) and (min-width: 425px) {
    .sticky-top {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .sidebar-header {
        padding: 1rem;
    }

    .sidebar-nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .sidebar-footer {
        padding: 1rem;
    }
    .navbar-brand img {
        height: 50px;
    }

    .sidebar-brand img {
        height: 50px;
    }
}

@media (max-width: 424px) {
    .navbar-toggler-custom {
        height: 35px;
        width: 35px;
    }

    .navbar-brand img {
        height: 40px;
    }
}
