body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light gray background for main page */
    font-family: Arial, sans-serif;
}
/* Sidebar Styles */
.sidebar {
    height: 100vh;
    width: 60px;
    position: fixed;
    z-index: 998;
    top: 50px; /* Adjust to account for the top bar */
    left: 0;
    background-color: #343a40; /* Dark gray */
    color: white;
    transition: width 250ms ease, transform 250ms ease;
}
.sidebar:hover {
    width: 250px;
    transform: translateX(0);
}
.sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: white;
}
.sidebar .menu-item img {
    width: 30px;
    height: 30px;
    margin-right: 20px; /* Adjust based on expanded state */
}
.sidebar .menu-text {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 300ms ease, max-height 250ms ease, visibility 0s linear 300ms; /* Ensure visibility changes after the other transitions */
}
.sidebar:hover .menu-text {
    opacity: 1;
    visibility: visible;
    max-height: 50px; /* Adjust based on content height needed */
    transition: opacity 300ms ease, max-height 250ms ease, visibility 0s linear 0ms; /* Ensure visibility changes immediately */
}
/* Main Content Styles */
.content {
    margin-left: 60px; /* Adjust based on sidebar width */
    margin-top: 60px;
    padding: 20px;
}
/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 30px; /* Adjust height as needed */
    background-color: #343a40; /* Dark gray for top bar */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.top-bar .title {
    font-size: 20px;
}
.top-bar .user-info {
    display: flex;
    align-items: center;
    margin-right: 50px;
}
.top-bar img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Box Styles */
.box {
    background-color: #ffffff; /* White background for boxes */
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.box h2 {
    margin-top: 0;
    color: #343a40; /* Dark gray for headers */
}

/* Button Style */
/* Custom Button Styles */
.button {
    background-color: #343a40; /* Dark gray background color */
    border: none; /* Remove default button border */
    border-radius: 4px; /* Rounded corners */
    color: white; /* White text color */
    padding: 10px 20px; /* Padding for better touch area */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
}
.button:hover {
    background-color: #2c3138; /* Darker shade for hover effect */
}
.button-container {
    grid-column: span 2; /* align with form grid */
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Container for User Settings + Change Password */
.side-by-side-sections {
    display: grid;
    grid-template-columns: 1fr;   /* default: single column */
    gap: 20px;
}

/* On wider screens, show them side by side */
@media (min-width: 900px) {
    .side-by-side-sections {
        grid-template-columns: 1fr 1fr;  /* two columns */
    }
}

.box-icon {
    height: 18px;
    margin: 0 10px;
}
/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    right: 0px; /* Adjust based on desired alignment with user icon/name */
    top: 35px;
    padding-top: 15px;
    background-color: #343a40;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for depth effect */
    min-width: 200px; /* Adjust width as needed */
    height: 0px;
    transition: height 250ms ease, transform 250ms ease;
}

.dropdown-menu .menu-item {
    display: none;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 300ms ease, max-height 250ms ease, visibility 0s linear 300ms; /* Ensure visibility changes after the other transitions */
}

.user-info:hover .dropdown-menu {
    height: 110px;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    transition: opacity 300ms ease, height 250ms ease, visibility 0s linear 0ms; /* Ensure visibility changes immediately */
}

.user-info:hover .menu-item {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    opacity: 1;
    visibility: visible;
    max-height: 50px;
    overflow: hidden;
    transition: opacity 300ms ease, max-height 250ms ease, visibility 0s linear 300ms; /* Ensure visibility changes after the other transitions */
}