/* General Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Sidebar */
.sidebar {
    width: 180px; /* Fixed and reduced sidebar width */
    background: #f4f4f4;
    height: 100vh;
    padding: 10px; /* Reduced padding */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 8px; /* Reduced spacing between links */
}

.sidebar ul li a {
    text-decoration: none;
    display: block;
    padding: 8px 10px; /* Tighter padding for links */
    font-size: 12px; /* Reduced font size */
    color: #333;
    border-radius: 4px;
}

.sidebar ul li a:hover {
    background: #ddd;
}

/* Top Banner */
.top-banner {
    height: 60px;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-left: 180px; /* Match sidebar width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(100% - 180px); /* Ensure top banner spans remaining width */
}

/* Main Content */
.main-content {
    margin-left: 180px; /* Match sidebar width */
    padding: 20px;
    width: calc(85% - 180px); /* Adjust width to avoid horizontal scrollbars */
    overflow-y: auto; /* Allow vertical scrolling if content exceeds height */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Day Title */
.day-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

/* Meal Row */
.meal-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Adjusted to fit narrower cards */
    gap: 15px; /* Reduced gap between cards */
	margin-left:70px;
}

/* Card Styles */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px; /* Reduced padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Form Controls */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem; /* Reduced label font size */
}

select,
textarea {
    width: 85%; /* Reduced width of form fields */
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem; /* Reduced font size for form fields */
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px; /* Reduced button padding */
    font-size: 0.9rem; /* Reduced button font size */
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* Dark Mode */
body.dark-mode {
    background: #121212;
    color: #eaeaea;
}

body.dark-mode .sidebar {
    background: #1e1e1e;
}

body.dark-mode .sidebar ul li a {
    color: #ddd;
}

body.dark-mode .sidebar ul li a:hover {
    background: #333;
}

body.dark-mode .top-banner {
    background: #333;
}

body.dark-mode .main-content {
    background: #181818;
}

body.dark-mode .card {
    background: #232323;
    border-color: #333;
}
