/* navigation.css */

/* Navigation Styles */

/* General Navigation */
.navbar {
    background-color: #f8f9fa;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.navbar-brand {
    padding: 0;
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.navbar-brand img {
    max-width: 310px;
    height: auto;
}

.navbar-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

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

.navbar-links .nav-link {
    font-size: 1.2rem;
    color: #333;
}

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

/* Profile and Search Icons for Smaller Screens */
.profile-icon,
.search-icon {
    display: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
}

.profile-icon {
    margin-left: auto;
}

.search-icon {
    margin-right: auto;
}

/* Responsive Adjustments for Navbar */
@media (max-width: 992px) {
    .navbar {
        justify-content: space-between;
    }

    .navbar-brand {
        justify-content: center;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-brand img {
        max-width: calc(310px * 1.15);
    }

    .navbar-links {
        display: none;
    }

    .profile-icon,
    .search-icon {
        display: block;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: calc(200px * 1.15);
    }
}

/* Expanded Profile Icon Menu */
.navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-links.open .nav-item {
    margin: 10px 0;
}

.navbar-links.open .nav-link {
    color: #333;
    font-size: 1.2rem;
}

.navbar-links.open .nav-link:hover {
    color: #007bff;
}

/* User-specific Navigation Links */
.nav-item .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
}

.nav-item .nav-link.active {
    font-weight: bold;
    color: #007bff;
}

@media (max-width: 768px) {
    .nav-item .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Day Tabs Navigation */
.day-tabs .nav-item .nav-link {
    font-size: 1.8rem;
    padding: 0.75rem 1.5rem;
}

.day-tabs .nav-item .nav-link.active {
    font-weight: bold;
    color: #007bff;
}

/* Align the search bar within the navigation */
.day-tabs .search-bar-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    padding: 0.5rem 0;
}

/* Responsive Adjustments for Day Tabs */
@media (min-width: 992px) {
    .day-tabs {
        display: flex;
        justify-content: flex-start;
    }

    .day-tabs .nav-item .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }

    .day-tabs .search-bar-wrapper {
        margin-left: auto;
    }
}

@media (max-width: 992px) {
    .day-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .day-tabs .nav-item .nav-link {
        display: inline-block;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        background-color: #f8f9fa;
        border: 1px solid #ccc;
        border-radius: 0.25rem;
        color: #333;
        text-align: center;
        margin: 0.5rem;
        cursor: pointer;
    }

    .day-tabs .nav-item .nav-link:hover {
        background-color: #e9ecef;
        color: #333;
    }

    .day-tabs .nav-item .nav-link.active {
        background-color: #e4002b;
        color: white;
        border: 1px solid #e4002b;
    }

    .day-tabs .search-bar-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Same styles as max-width: 992px */
}

@media (max-width: 576px) {
    .day-tabs .nav-item .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0.5rem;
    }
    /* Other styles same as above */
}

/* Hamburger Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-content a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 0.25rem;
    background-color: transparent;
}

.menu-content a:hover {
    color: #007bff;
}

/* Close Button */
.close-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 0.25rem;
}

.close-btn:hover {
    background-color: darkred;
}

/* Regular Menu Styles for Large Screens */
@media (min-width: 992px) {
    #nav-menu .nav-link {
        color: #007bff;
        padding: 10px 30px;
        font-size: 1rem;
        margin-bottom: 5px;
        text-align: center;
        border: none;
        font-weight: normal;
        border-radius: 0.25rem;
        min-width: 180px;
        display: inline-block;
    }

    #nav-menu .nav-link.active {
        background-color: #007bff;
        color: white;
        border-radius: 0.25rem;
        padding: 10px 30px;
        min-width: 180px;
    }

    #nav-menu .nav-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    #nav-menu {
        background-color: transparent;
        margin-top: 0;
    }

    .nav {
        background-color: transparent;
        margin-top: 0;
    }
}

/* Flyout Menu Styles for Small Screens */
@media (max-width: 992px) {
    #nav-menu {
        display: none;
    }

    .menu-content a {
        padding: 15px;
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 10px;
        border-radius: 0.25rem;
    }

    .menu-content a:hover {
        color: #0056b3;
    }

    .close-btn {
        margin-top: 20px;
    }
}
