/* Basic styling for layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling - fixed at the top */
.header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: fixed; /* Fixes the header at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Toggle button styling */
.toggle-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 3px;
}

/* Container for sidebar and main content */
.main-container {
    display: flex;
    flex: 1;
    margin-top: 60px; /* Space to prevent overlap with the fixed header */
    transition: margin-left 0.3s ease;
    padding: 20px; /* Adds padding around both sidebar and content for consistent margins */
    box-sizing: border-box;
}

/* Sidebar styling */
.sidebar {
    width: 200px;
    background-color: #f4f4f4;
    box-sizing: border-box;
    transition: width 0.3s ease, opacity 0.3s ease;
    padding: 20px; /* Matches main content padding */
}
.sidebar.hidden {
    width: 0;
    opacity: 0;
    padding: 0;
    transition: width 0.3s ease, opacity 0.3s ease; /* Smooth transition when hiding */
}

/* Content styling */
.content {
    flex: 1;
    box-sizing: border-box;
    padding: 20px; /* Matches sidebar padding for consistent layout */
    transition: all 0.3s ease;
}

/* Footer styling */
.footer {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}
