/**
 * Navigation Enhancement Styles
 * Provides visual improvements for navigation and interactive elements
 */

/* Sticky Navigation */
.navbar-area.is-sticky,
.navbar.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    animation: slideDown 0.4s ease-out;
    padding: 12px 0 !important;
}

.main-navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    padding: 12px 0 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Navigation Link Styling */
.navbar-area.is-sticky .nav-link,
.navbar.sticky-nav .nav-link,
.main-navbar.is-sticky .nav-link {
    font-size: 14px;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
}

.navbar-area.is-sticky .navbar-brand img,
.main-navbar.is-sticky .navbar-brand img {
    max-height: 45px;
    transition: max-height 0.3s ease;
}

/* Sticky Dropdown Menu Styling */
.navbar-area.is-sticky .dropdown-menu,
.main-navbar.is-sticky .dropdown-menu {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
    border-top: 2px solid #0066cc;
}

/* Active Link Styling */
nav a.active,
.navbar a.active {
    color: #0066cc;
    font-weight: 600;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 2px;
}

.navbar-nav .nav-item.active .nav-link {
    color: #0066cc;
    font-weight: 600;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Go-to-Top Button Enhancement */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.go-top:hover {
    background: linear-gradient(135deg, #0052a3, #003d7a);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    transform: translateY(-3px);
}

.go-top i {
    font-size: 24px;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb-item {
    display: inline-block;
    margin: 0 5px;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 8px;
    color: #999;
}

/* Mobile Menu Enhancement */
body.menu-open {
    overflow: hidden;
}

.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.show {
    animation: slideInMenu 0.3s ease-out;
}

@keyframes slideInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    top: 100%;
    left: 0;
    z-index: 10000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-menu-modern {
    min-width: 280px;
    padding: 15px 0;
}

.dropdown-section-title {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dropdown-section-title:first-child {
    margin-top: 0;
}

.dropdown-section-title i {
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
    list-style: none;
}

.dropdown-menu .nav-link {
    padding: 12px 20px;
    color: #333;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu .nav-link i {
    font-size: 16px;
    color: #0066cc;
    min-width: 20px;
}

.dropdown-menu .nav-link:hover {
    background-color: #f5f7ff;
    color: #0066cc;
    padding-left: 25px;
}

/* Navigation Link Hover Effects */
nav a,
.navbar a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after,
.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

nav a:hover::after,
.navbar a:hover::after {
    width: 100%;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar.sticky-nav {
        padding: 10px 0;
    }
    
    .go-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .go-top i {
        font-size: 20px;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    
    nav a::after,
    .navbar a::after {
        display: none;
    }
}
