/* /public/css/menubar.css */

body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px; 
    background-color: #000000;
    border-bottom: 1px solid #333;
    z-index: 9999; 
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem; 
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #1a1a1a;
    border-right: 1px solid #333;
    z-index: 10000;
    transform: translateX(-100%);
    visibility: hidden; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    display: flex;
    flex-direction: column;
    padding-top: 45px;
    /* FIX: Extra padding at bottom to prevent Logout from being cut off */
    padding-bottom: 60px; 
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto; 
    box-sizing: border-box;
}

.side-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.menu-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px; 
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-bottom: 1px solid #333;
    background: #111;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    z-index: 10002;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 10005;
    flex-direction: column;
    color: white;
    text-align: center;
}

.side-menu a, .side-menu button.menu-action {
    display: block;
    padding: 12px 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    font-family: inherit;
    border-bottom: 1px solid #222;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.text-red { color: #ff5252 !important; }
.text-green { color: #69f0ae !important; }

.side-menu a {
    color: #ffffff !important;
}

.side-menu a:hover {
    color: #64b5f6 !important;  /* Blue color */
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.8), 
                 0 0 20px rgba(33, 150, 243, 0.6),
                 0 0 30px rgba(33, 150, 243, 0.4);
}
