* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #0f1419; min-height: 100vh; padding: 20px; color: #e4e6eb; } .container { max-width: 900px; margin: 0 auto; } header { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; } h1 { font-size: 1.8em; color: #e4e6eb; font-weight: 600; } /* Context Menu */ .context-menu { position: fixed; background: #1e2936; border: 1px solid #2d3748; border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); z-index: 2000; min-width: 150px; display: none; } .context-menu.show { display: block; } .context-menu-item { padding: 10px 16px; cursor: pointer; transition: background 0.2s; font-size: 0.9em; border-bottom: 1px solid #2d3748; display: flex; align-items: center; gap: 8px; color: #e4e6eb; } .context-menu-item:last-child { border-bottom: none; } .context-menu-item:hover { background: #2d3748; } .context-menu-item.danger:hover { background: #742a2a; color: #feb2b2; } /* Modal Styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1000; align-items: center; justify-content: center; } .modal.open { display: flex; } .modal-content { background: #1a2332; border-radius: 12px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); border: 1px solid #2d3748; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #2d3748; } .modal-header h2 { font-size: 1.25em; font-weight: 600; color: #e4e6eb; } .close-btn { background: none; border: none; font-size: 1.8em; color: #8b96a5; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: all 0.2s; line-height: 1; } .close-btn:hover { background: #2d3748; color: #e4e6eb; } .modal-content form { padding: 20px; } /* Form Styles */ .form-group { margin-bottom: 16px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } label { display: block; margin-bottom: 6px; font-weight: 500; color: #a0aec0; font-size: 0.875em; } input[type="text"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #2d3748; border-radius: 6px; font-size: 0.95em; font-family: inherit; transition: all 0.2s; background: #0f1419; color: #e4e6eb; } input[type="text"]:focus, select:focus, textarea:focus { outline: none; border-color: #4299e1; box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2); } textarea { resize: vertical; } select option { background: #1a2332; color: #e4e6eb; } /* Button Styles */ button { font-family: inherit; cursor: pointer; border: none; border-radius: 6px; font-weight: 500; transition: all 0.2s; } .btn-primary { width: 100%; padding: 12px; font-size: 1em; background: #4299e1; color: white; } .btn-primary:hover { background: #3182ce; } .btn-add { padding: 10px 20px; font-size: 0.95em; background: #4299e1; color: white; } .btn-add:hover { background: #3182ce; } .btn-small { padding: 6px 12px; font-size: 0.85em; } .btn-complete { background: #48bb78; color: white; } .btn-complete:hover { background: #38a169; } .btn-delete { background: #f56565; color: white; } .btn-delete:hover { background: #e53e3e; } .btn-edit { background: #4299e1; color: white; } .btn-edit:hover { background: #3182ce; } /* Overall Progress */ .overall-progress { background: #1a2332; padding: 20px; border-radius: 10px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); border: 1px solid #2d3748; } .overall-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: #e4e6eb; } #overall-percentage { color: #4299e1; } .task-counter { margin-top: 12px; text-align: center; color: #a0aec0; font-size: 0.9em; } #completed-count { color: #4299e1; font-weight: 600; } .task-counter { margin-top: 12px; text-align: center; color: #a0aec0; font-size: 0.9em; } .task-counter span { font-weight: 600; color: #e4e6eb; } /* Tasks Container */ .tasks-container { display: grid; gap: 16px; } .task-card { background: #1a2332; border-radius: 10px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: grab; transition: all 0.2s; border: 2px solid transparent; position: relative; } .task-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); border-color: #2d3748; } .task-card:active { cursor: grabbing; } .task-card.dragging { opacity: 0.4; } .task-card.drag-over { border-color: #4299e1; background: #1e3a5f; } .task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .task-title { font-size: 1.1em; font-weight: 600; color: #e4e6eb; flex: 1; } .task-size-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 600; margin-left: 10px; white-space: nowrap; } .task-size-badge.small { background: #2c5282; color: #90cdf4; } .task-size-badge.medium { background: #7c2d12; color: #fed7aa; } .task-size-badge.large { background: #7c2d12; color: #fbb6ce; } .task-description { color: #a0aec0; margin-bottom: 12px; font-size: 0.9em; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; } /* Progress Bar */ .progress-section { margin-bottom: 12px; } .progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.85em; color: #a0aec0; } .progress-bar { width: 100%; height: 20px; background: #0f1419; border-radius: 10px; overflow: hidden; } .progress-fill { height: 100%; background: #4299e1; transition: width 0.3s ease; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 0.75em; } /* Reward Section */ .reward-section { background: #2d3748; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 0.95em; border: 1px solid #4a5568; } .reward-hidden { color: #718096; font-style: italic; } .reward-revealed { color: #68d391; font-weight: 600; font-size: 1em; } /* Task Actions */ .task-actions { display: flex; gap: 8px; margin-top: 12px; } /* Subtasks */ .subtasks-container { margin-top: 12px; padding-left: 16px; border-left: 2px solid #2d3748; } .subtask { background: #0f1419; padding: 10px; border-radius: 6px; margin-bottom: 8px; cursor: grab; font-size: 0.9em; border: 1px solid #2d3748; position: relative; } .subtask:hover { border-color: #4a5568; } .subtask:active { cursor: grabbing; } .subtask.dragging { opacity: 0.4; } .subtask-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .subtask-title { font-weight: 600; color: #e4e6eb; } .subtask-progress { width: 100%; height: 16px; background: #1a2332; border-radius: 8px; overflow: hidden; margin-bottom: 8px; } .subtask-progress-fill { height: 100%; background: #48bb78; transition: width 0.3s ease; } .subtask-actions { display: flex; gap: 6px; margin-top: 8px; } /* Drop Zone */ .drop-zone { border: 2px dashed #4a5568; border-radius: 6px; padding: 12px; text-align: center; color: #718096; margin-top: 12px; font-size: 0.85em; transition: all 0.2s; opacity: 0; max-height: 0; overflow: hidden; padding: 0; } .drop-zone.visible { opacity: 1; max-height: 100px; padding: 12px; margin-top: 12px; } .drop-zone.drag-over { border-color: #4299e1; background: #1e3a5f; color: #4299e1; } /* Completed State */ .completed { opacity: 0.85; } .completed .task-title { text-decoration: line-through; color: #a0aec0; } /* Checkbox */ .checkbox-group { display: flex; align-items: center; gap: 6px; } .checkbox-group input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; } /* Empty State */ .empty-state { text-align: center; padding: 60px 20px; color: #a0aec0; } .empty-state h2 { font-size: 1.5em; margin-bottom: 8px; color: #cbd5e0; } /* Loading State */ .loading { text-align: center; padding: 60px 20px; color: #a0aec0; } .spinner { border: 3px solid #2d3748; border-top: 3px solid #4299e1; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 16px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Responsive */ @media (max-width: 768px) { h1 { font-size: 1.5em; } header { flex-direction: column; align-items: flex-start; gap: 12px; } .form-row { grid-template-columns: 1fr; } .task-header { flex-direction: column; gap: 6px; } .task-size-badge { margin-left: 0; } .task-actions { flex-direction: column; } .task-actions button { width: 100%; } }