/* Navbar */
.custom-navbar {
    position: relative;  /* Needed for absolute dropdown */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    z-index: 1000;
}

/* Layout for left logo / right buttons */
.custom-navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Brand (Tottable) */
.navbar-brand {
    font-size: 20px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Navbar Collapse */
.navbar-collapse {
    flex-grow: 1;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

/* Navbar Items */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav .nav-item {
    margin-left: 15px;
    position: relative;
}

/* Profile Circle */
.profile-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9a8a8;
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.profile-circle:hover {
    background-color: #f87171;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 9999;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: #fef2f2;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #f9a8a8;
}

.nav-item.dropdown {
    position: relative;
}

/* Logout Button */
.dropdown-item.text-danger {
    color: #dc2626 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #fee2e2;
}


/* ✅ MOBILE STYLING */
@media (max-width: 768px) {
    .custom-navbar {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    .custom-navbar .container-fluid {
        flex-wrap: nowrap;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-brand {
        margin-left: 10px;
    }

    .navbar-collapse {
        flex-grow: 1;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        width: auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        position: relative;
    }

    .navbar-nav .nav-item {
        margin: 0 10px;
        position: relative;
    }

    .dropdown-menu {
        top: 48px;
        right: 0;
    }

    .dropdown-menu.show {
        display: block;
    }
}
