/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: Left;
    padding: 3px 20px;
    position: fixed; /* Sticky at the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #fff;
    margin-right: 10px;
}

.site-name {
    font-size: 1.2em;
    font-weight: bold;
}

.navbar-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    width: 60%;
    max-width: 400px;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
}

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

/* Sidebar */
.sidebar {
    background-color: var(--primary-color);
    position: fixed;
    top: 70px;
    left: 0;
    width: 60px;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar ul li {
    width: 100%;
    text-align: center;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

/* Tooltip with pointer */
.sidebar ul li a::after {
    content: attr(title);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar ul li a::before {
    content: "";
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--primary-color) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

/* Show tooltip on hover */
.sidebar ul li a:hover::after,
.sidebar ul li a:hover::before {
    opacity: 1;
}

/* Content */
.content {
    flex-grow: 1;
    margin-left: 60px;
    padding: 80px 20px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar.hidden ~ .content {
    margin-left: 0;
}

/* Reduced margins on small screens */
@media (max-width: 768px) {
    .content {
        padding: 50px 10px; /* Smaller padding for small screens */
    }

    .hamburger-menu {
        display: block;
    }

    .search-bar {
        display: none;
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 5px 0; /* Reduced padding */
    font-size: 0.8em; /* Smaller font size */
    position: fixed;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;
}
