Copy * {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #f5f5f5;
color: #333;
}
.app {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.app-header {
background: white;
padding: 2rem;
border-radius: 8px;
margin-bottom: 2rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.app-header h1 {
margin-bottom: 1rem;
}
.stats {
display: flex;
gap: 2rem;
}
.stat {
font-size: 0.9rem;
color: #666;
}
.app-main {
display: grid;
grid-template-columns: 350px 1fr;
gap: 2rem;
}
/* Todo Form */
.todo-form {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.todo-form h2 {
font-size: 1.2rem;
margin-bottom: 1rem;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
button {
padding: 0.75rem 1.5rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
button:hover:not(:disabled) {
background: #2563eb;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Filters */
.filters {
background: white;
padding: 1.5rem;
border-radius: 8px;
margin-bottom: 1rem;
display: flex;
gap: 1rem;
align-items: flex-end;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.filter-group {
flex: 1;
}
.filter-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.9rem;
font-weight: 500;
}
.filter-group select {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
}
.clear-btn {
background: #ef4444;
}
.clear-btn:hover {
background: #dc2626;
}
/* Todo List */
.todo-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.empty-state {
background: white;
padding: 3rem;
border-radius: 8px;
text-align: center;
color: #999;
}
/* Todo Item */
.todo-item {
background: white;
padding: 1rem;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: flex-start;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
}
.todo-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.todo-item.completed {
opacity: 0.6;
}
.todo-content {
display: flex;
gap: 1rem;
flex: 1;
}
.todo-checkbox {
cursor: pointer;
position: relative;
}
.todo-checkbox input {
cursor: pointer;
}
.todo-details {
flex: 1;
}
.todo-title {
font-size: 1.1rem;
margin-bottom: 0.25rem;
}
.todo-item.completed .todo-title {
text-decoration: line-through;
}
.todo-description {
color: #666;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.todo-meta {
display: flex;
gap: 1rem;
align-items: center;
}
.todo-category {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
color: white;
font-weight: 500;
}
.todo-date {
font-size: 0.8rem;
color: #999;
}
.delete-btn {
background: transparent;
color: #ef4444;
border: 1px solid #ef4444;
width: 32px;
height: 32px;
padding: 0;
font-size: 1.5rem;
line-height: 1;
}
.delete-btn:hover {
background: #ef4444;
color: white;
}
@media (max-width: 768px) {
.app-main {
grid-template-columns: 1fr;
}
.filters {
flex-direction: column;
align-items: stretch;
}
}