﻿/* Sidenav styling */
.sidenav {
    width: 250px;
    background-color: #333;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: transform 0.3s ease;
    z-index: 1001;
}

/* Hidden by default on small screens */
@media screen and (max-width: 768px) {
    .sidenav {
        transform: translateX(-100%);
    }

        .sidenav.open {
            transform: translateX(0) !important;
        }
}

.sidenav-header {
    text-align: center;
    margin-bottom: 30px;
}

    .sidenav-header h2 {
        margin: 0;
        color: #fff;
        font-size: 24px;
    }

.sidenav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidenav-item {
    color: #ddd;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    display: flex;
    align-items: center; /* Align items horizontally */
}

    .sidenav-item i {
        margin-right: 10px; /* Move icons 10px away from the text */
    }

    .sidenav-item:hover {
        background-color: #575757;
        color: #fff;
        text-decoration: none; /* Remove underline on hover */
    }

/* Main content area */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
    transition: margin-left 0.3s;
}

@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
}

/* Hamburger toggle button */
.sidenav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    background: transparent;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

/* Basic styling for the admin layout */
.admin-layout {
    display: flex;
    height: 100vh;
}

@media screen and (max-width: 768px) {
    .sidenav-toggle {
        display: block;
    }
}


