:root { --primary: #667eea; --success: #28a745; --danger: #dc3545; --bg: #f4f7f6; }
* { box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg); padding: 15px; margin: 0; }
.container { max-width: 600px; margin: 0 auto; background: white; border-radius: 16px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
h1 { text-align: center; color: var(--primary); font-size: 1.5rem; margin-top: 0; }
.tabs { display: flex; gap: 5px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; border-bottom: 2px solid #eee; }
.tab-btn { padding: 8px 12px; border: none; background: none; cursor: pointer; color: #888; font-weight: 600; white-space: nowrap; border-radius: 8px; }
.tab-btn.active { background: #eef2ff; color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.form-card { background: #f9fafb; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #edf2f7; }
input, select, textarea { width: 100%; padding: 10px; margin: 5px 0 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.95rem; }
textarea { height: 60px; resize: vertical; }
input[type="range"] { accent-color: var(--primary); margin: 15px 0; width: 100%; }
.row { display: flex; gap: 15px; } .col { flex: 1; }

.btn-primary { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; }
.btn-done { background: var(--success); color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.item-card { background: white; border: 1px solid #eee; padding: 15px; border-radius: 12px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { background: #eef2ff; color: var(--primary); padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }

.task-date-input { border: 1px solid #eee; color: #666; font-size: 0.8rem; cursor: pointer; padding: 4px; border-radius: 4px; background: #fff; margin-bottom: 5px; }

.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal-content { background: white; padding: 25px; border-radius: 16px; width: 90%; max-width: 450px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.modal-footer { display: flex; gap: 10px; margin-top: 20px; }
.modal-footer button { flex: 1; padding: 10px; border-radius: 8px; cursor: pointer; border: 1px solid #ddd; background: white; }
.modal-footer .btn-primary { border: none; }