/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Section Common Styling */
section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

section h2 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #334155;
    transition: border-color 0.2s;
}

input[type="text"]:focus, textarea :focus {
    outline: none;
    border-color: #3b82f6;
}

button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1d4ed8;
}

/* Tasks Display Area */
#loading-message {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .tasks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Individual Task Card Styling */
.task-card {
    background: #f8fafc;
    border-left: 4px solid #cbd5e1;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
}

/* Dynamic colors for statuses later */
.task-card.done { border-left-color: #10b981; }
.task-card.in-progress { border-left-color: #f59e0b; }
.task-card.pending { border-left-color: #64748b; }

.task-card h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.task-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #475569;
}