/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 0.5rem;
}

#current-date {
    font-size: 1.2rem;
    font-weight: 500;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.task-input {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#task-description {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#time-slot {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#add-task-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#add-task-btn:hover {
    background-color: #45a049;
}

.task-display {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#filter-time {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#task-list {
    display: grid;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.3s;
}

.task-item.completed {
    background-color: #e8f5e8;
    text-decoration: line-through;
}

.task-item.past {
    background-color: #ffebee;
}

.task-item.current {
    background-color: #fff3e0;
}

.task-item.upcoming {
    background-color: #e8f5e8;
}

.task-checkbox {
    margin-right: 1rem;
}

.task-details {
    flex: 1;
}

.task-description {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.task-time {
    font-size: 0.9rem;
    color: #666;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* Responsive design */
@media (max-width: 768px) {
    .task-input {
        flex-direction: column;
        align-items: stretch;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-actions {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
}
