﻿/* NavMenu.css */
.top-row {
    background-color: #2c3e50; /* Dark blue background */
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #ffffff; /* White text */
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-toggler {
    display: none; /* Hide the checkbox */
}

/* Navigation menu container */
.nav-scrollable {
    background-color: #34495e; /* Slightly lighter blue */
    height: calc(100vh - 60px); /* Full height minus top bar */
    overflow-y: auto; /* Enable scrolling if content overflows */
    padding: 10px 0;
    transition: transform 0.3s ease;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
}

/* Spacer to push the logout button to the bottom */
.flex-grow-1 {
    flex-grow: 1; /* Fills remaining space */
}

/* Navigation items */
.nav-item {
    margin: 5px 0;
}

/* Navigation icons from Bootstrap 5 */
.nav-icon {
    vertical-align: top;
    margin-right: 5px;
}

.nav-link {
    color: #ecf0f1; /* Light gray text */
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .nav-link:hover {
        background-color: #1abc9c; /* Teal background on hover */
        color: #ffffff; /* White text on hover */
    }

    .nav-link.active {
        background-color: #16a085; /* Darker teal for active link */
        color: #ffffff;
    }

    .nav-link span.bi {
        vertical-align: middle;
        font-size: 1rem; /* Adjust size if needed */
    }
    /* Style the logout link */
    .nav-link.logout {
        color: #e74c3c !important; /* Red color for logout (force override) */
    }

        .nav-link.logout:hover {
            background-color: #c0392b !important; /* Darker red on hover (force override) */
            color: #ffffff !important;
        }

/* Icons */
.bi {
    margin-right: 10px;
    font-size: 1.2rem;
}


/* Scrollbar styling */
.nav-scrollable::-webkit-scrollbar {
    width: 8px;
}

.nav-scrollable::-webkit-scrollbar-track {
    background: #2c3e50; /* Dark blue */
    border-radius: 4px;
}

.nav-scrollable::-webkit-scrollbar-thumb {
    background: #1abc9c; /* Teal */
    border-radius: 4px;
}

    .nav-scrollable::-webkit-scrollbar-thumb:hover {
        background: #16a085; /* Darker teal */
    }

/* Media query for responsive design */
@media (max-width: 768px) {
    .navbar-toggler:checked ~ .nav-scrollable {
        transform: translateX(0); /* Show menu when toggler is checked */
    }

    .nav-scrollable {
        position: fixed;
        top: 60px;
        left: 0;
        width: 250px;
        transform: translateX(-100%);
        z-index: 1000;
    }
}
