/* =========================================================
   Professional Black Navbar
   ========================================================= */

   .navbar-custom {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-custom .container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* ===== Brand ===== */
.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.navbar-custom .navbar-brand:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* ===== Nav Links ===== */
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    margin: 0 0.15rem;
    border-radius: 6px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.navbar-custom .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Animated underline */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

/* ===== Toggler ===== */
.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.15);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* ===== Dropdown ===== */
.navbar-custom .dropdown-menu {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 180px;
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.navbar-custom .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0.5rem;
}

/* Dropdown arrow */
.navbar-custom .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.navbar-custom .dropdown-toggle:hover::after {
    border-top-color: #fff;
}

/* ===== Mobile ===== */
@media (max-width: 767.98px) {
    .navbar-custom .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar-custom .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.15rem 0;
    }

    .navbar-custom .nav-link::after {
        display: none;
    }

    .navbar-custom .dropdown-menu {
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        border: none;
        margin-top: 0.25rem;
    }
}

/* ===== Bootstrap 5 Utility Compat ===== */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.dropdown-menu-end { right: 0; left: auto !important; }