* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    color: #34495e;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #c33;
}

.create-task-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

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

.inline-error {
    display: block;
    color: #c33;
    font-size: 12px;
    margin-top: 5px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.tasks-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tasks-container {
    margin-top: 15px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #fafafa;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #f0f0f0;
}

.task-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
}

.task-title.completed {
    text-decoration: line-through;
    color: #95a5a6;
}

.task-description {
    font-size: 14px;
    color: #666;
}

.task-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.task-actions {
    margin-left: 15px;
    display: flex;
    gap: 8px;
}

.duplicate-btn {
    background-color: #27ae60;
    padding: 8px 15px;
    font-size: 13px;
}

.duplicate-btn:hover:not(:disabled) {
    background-color: #229954;
}

.delete-btn {
    background-color: #e74c3c;
    padding: 8px 15px;
    font-size: 13px;
}

.delete-btn:hover:not(:disabled) {
    background-color: #c0392b;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}
