body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff; /* Light background */
    color: #333; /* Dark text color */
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure content fills the viewport */
.container {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 10px;
}

.home-button {
    background-color: #007bff; /* Blue button color */
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 16px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.tab-button, .weekly-tab-button {
    flex: 1 1 30%;
    margin: 4px 2px;
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 16px;
    text-align: center;
}

.tab-button {
    background-color: #007bff; /* Blue button color */
}

.weekly-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    gap: 5px;
}

.weekly-tab-button {
    background-color: #0056b3; /* Darker blue button color */
    flex: 1 1 18%; /* Adjust to fit five buttons in a row */
    margin: 4px 2px;
}

.tab-content, .weekly-tab-content {
    display: none;
    width: 100%;
    background-color: #fff; /* White background for content */
    padding: 20px;
    margin-top: 20px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.tab-content h2, .weekly-tab-content h2 {
    color: #007bff; /* Blue color for headers */
    font-size: 18px;
}

.tab-content ul, .weekly-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-content ul li, .weekly-tab-content ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc; /* Light border */
    display: flex;
    align-items: center;
}

.tab-content ul li input[type="checkbox"], .weekly-tab-content ul li input[type="checkbox"] {
    margin-right: 10px;
}

button {
    background-color: #007bff; /* Blue button color */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 0;
    cursor: pointer;
    border-radius: 16px;
    max-width: 200px;
}

.add-task-button {
    background-color: #0056b3; /* Darker blue button color */
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 12px;
}

.clear-button {
    background-color: #FF6347; /* Red button color */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 0;
    cursor: pointer;
    border-radius: 16px;
    max-width: 200px;
}

.remove-task-button {
    background-color: transparent;
    border: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.remove-task-button::before {
    content: '✖';
}

/* Larger screens */
@media (min-width: 768px) {
    .tab-button, .weekly-tab-button {
        padding: 14px 20px;
        font-size: 16px;
    }

    .tab-content, .weekly-tab-content {
        padding: 20px;
    }

    .tab-content h2, .weekly-tab-content h2 {
        font-size: 20px;
    }

    button, .clear-button {
        padding: 12px 24px;
        font-size: 18px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .tab-button, .weekly-tab-button {
        flex: 1 1 45%; /* Adjust to fit buttons in a row */
        margin: 4px 2px;
    }

    .container {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .tab-button, .weekly-tab-button {
        flex: 1 1 100%; /* Full width on small devices */
        margin: 4px 0;
    }

    .container {
        width: 100%;
        padding: 5px;
    }
}
