
/* public/style.css - 樣式表 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.todo-form {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.todo-form input,
.todo-form textarea,
.todo-form button {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.todo-form textarea {
    resize: vertical;
    min-height: 80px;
}

.todo-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.todo-form button:hover {
    transform: translateY(-2px);
}

.todo-list {
    padding: 20px;
}

.todo-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.todo-item:hover {
    transform: translateX(5px);
}

.todo-item.completed {
    opacity: 0.7;
    border-left-color: #28a745;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
}

.todo-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.todo-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.todo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-complete {
    background: #28a745;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.attachment {
    display: inline-block;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    margin-top: 10px;
}

.attachment:hover {
    background: #dee2e6;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .todo-actions {
        flex-direction: column;
    }

    .todo-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
