/* ==== Standalone Navbar CSS ==== */
.navbar {
    background-color: #007bff;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
}

.navbar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.navbar-title {
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
    flex: 1;
    white-space: nowrap;
}

.navbar-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.navbar-links a {
    color: #fff;
    border-bottom: 1px solid #a2c9f2;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.1s;
}

.navbar-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #a2c9f2;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.9em;
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.1s ease;
    transform-origin: center;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0069d9;
    min-width: 150px;
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    flex-direction: column;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* ==== Responsive Navbar ==== */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        background-color: #007bff;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
        padding-left: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.1s ease;
    }

    .navbar-links.show {
        display: flex;
        padding-bottom: 10px;
    }

    .navbar-links a,
    .dropdown-toggle {
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown {
        width: 100%;
        border-bottom: 1px solid #fff;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #0069d9;
        flex-direction: column;
        display: none;
    }

    .dropdown-menu a {
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown.open .dropdown-menu {
        display: flex !important;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }
}
