760 lines
12 KiB
CSS
760 lines
12 KiB
CSS
* {
|
|
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: 16px;
|
|
color: #e4e6eb;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* ─── Header ─── */
|
|
header {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.4em;
|
|
color: #e4e6eb;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ─── View Toggle ─── */
|
|
.view-toggle {
|
|
display: flex;
|
|
background: #1a2332;
|
|
border-radius: 8px;
|
|
border: 1px solid #2d3748;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.toggle-btn {
|
|
padding: 7px 16px;
|
|
font-size: 0.85em;
|
|
background: transparent;
|
|
color: #8b96a5;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
color: #e4e6eb;
|
|
background: rgba(255,255,255,0.04);
|
|
}
|
|
|
|
.toggle-btn.active {
|
|
background: #4299e1;
|
|
color: white;
|
|
}
|
|
|
|
.archive-count {
|
|
background: rgba(255,255,255,0.2);
|
|
padding: 1px 7px;
|
|
border-radius: 10px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.toggle-btn:not(.active) .archive-count {
|
|
background: #2d3748;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
/* ─── 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: 160px;
|
|
display: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.context-menu.show {
|
|
display: block;
|
|
}
|
|
|
|
.context-menu-item {
|
|
padding: 9px 14px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
font-size: 0.85em;
|
|
border-bottom: 1px solid #232e3c;
|
|
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 ─── */
|
|
.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: 460px;
|
|
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: 16px 20px;
|
|
border-bottom: 1px solid #2d3748;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
color: #e4e6eb;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.6em;
|
|
color: #8b96a5;
|
|
cursor: pointer;
|
|
width: 28px;
|
|
height: 28px;
|
|
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: 16px 20px;
|
|
}
|
|
|
|
/* ─── Form ─── */
|
|
.form-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
color: #a0aec0;
|
|
font-size: 0.82em;
|
|
}
|
|
|
|
input[type="text"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 1px solid #2d3748;
|
|
border-radius: 6px;
|
|
font-size: 0.9em;
|
|
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;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.82em;
|
|
color: #a0aec0;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
width: 14px;
|
|
height: 14px;
|
|
cursor: pointer;
|
|
accent-color: #4299e1;
|
|
}
|
|
|
|
.task-description.expanded {
|
|
-webkit-line-clamp: unset;
|
|
display: block;
|
|
overflow: visible;
|
|
}
|
|
|
|
select option {
|
|
background: #1a2332;
|
|
color: #e4e6eb;
|
|
}
|
|
|
|
/* ─── Buttons ─── */
|
|
button {
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 0.95em;
|
|
background: #4299e1;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #3182ce;
|
|
}
|
|
|
|
.btn-add {
|
|
padding: 7px 16px;
|
|
font-size: 0.85em;
|
|
background: #4299e1;
|
|
color: white;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
background: #3182ce;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 4px 10px;
|
|
font-size: 0.78em;
|
|
}
|
|
|
|
.btn-complete {
|
|
background: #48bb78;
|
|
color: white;
|
|
}
|
|
|
|
.btn-complete:hover {
|
|
background: #38a169;
|
|
}
|
|
|
|
.btn-archive {
|
|
background: #805ad5;
|
|
color: white;
|
|
}
|
|
|
|
.btn-archive:hover {
|
|
background: #6b46c1;
|
|
}
|
|
|
|
.btn-restore {
|
|
background: #4299e1;
|
|
color: white;
|
|
}
|
|
|
|
.btn-restore:hover {
|
|
background: #3182ce;
|
|
}
|
|
|
|
.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: 14px 18px;
|
|
border-radius: 10px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
border: 1px solid #2d3748;
|
|
}
|
|
|
|
.overall-progress.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.overall-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
font-size: 0.9em;
|
|
color: #e4e6eb;
|
|
}
|
|
|
|
#overall-percentage {
|
|
color: #4299e1;
|
|
}
|
|
|
|
.task-counter {
|
|
margin-top: 8px;
|
|
text-align: center;
|
|
color: #a0aec0;
|
|
font-size: 0.82em;
|
|
}
|
|
|
|
.task-counter span {
|
|
font-weight: 600;
|
|
color: #e4e6eb;
|
|
}
|
|
|
|
/* ─── Tasks Container ─── */
|
|
.tasks-container {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ─── Task Cards — Compact ─── */
|
|
.task-card {
|
|
background: #1a2332;
|
|
border-radius: 8px;
|
|
padding: 12px 14px;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
|
cursor: grab;
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
position: relative;
|
|
}
|
|
|
|
.task-card:hover {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
|
border-color: #2d3748;
|
|
}
|
|
|
|
.task-card:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.task-card.dragging {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.task-card.drag-over {
|
|
border-color: #4299e1;
|
|
background: #1e3a5f;
|
|
}
|
|
|
|
.task-card.archived-card {
|
|
cursor: default;
|
|
border-left: 3px solid #805ad5;
|
|
}
|
|
|
|
.task-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.task-title {
|
|
font-size: 0.95em;
|
|
font-weight: 600;
|
|
color: #e4e6eb;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.task-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-size-badge {
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 0.7em;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.task-size-badge.small {
|
|
background: #2c5282;
|
|
color: #90cdf4;
|
|
}
|
|
|
|
.task-size-badge.medium {
|
|
background: #744210;
|
|
color: #fbd38d;
|
|
}
|
|
|
|
.task-size-badge.large {
|
|
background: #742a2a;
|
|
color: #feb2b2;
|
|
}
|
|
|
|
.task-description {
|
|
color: #8b96a5;
|
|
margin-bottom: 8px;
|
|
font-size: 0.82em;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ─── Inline Progress ─── */
|
|
.progress-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.progress-bar {
|
|
flex: 1;
|
|
height: 6px;
|
|
background: #0f1419;
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: #4299e1;
|
|
transition: width 0.3s ease;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.progress-text {
|
|
font-size: 0.78em;
|
|
font-weight: 600;
|
|
color: #a0aec0;
|
|
min-width: 32px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Overall progress bar is taller */
|
|
.overall-progress .progress-bar {
|
|
height: 16px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.overall-progress .progress-fill {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 0.72em;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* ─── Reward ─── */
|
|
.reward-section {
|
|
background: #1e2936;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
margin-bottom: 6px;
|
|
font-size: 0.82em;
|
|
border: 1px solid #2d3748;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.reward-hidden {
|
|
color: #718096;
|
|
font-style: italic;
|
|
}
|
|
|
|
.reward-revealed {
|
|
color: #68d391;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ─── Task Actions — Compact row ─── */
|
|
.task-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* ─── Subtasks ─── */
|
|
.subtasks-container {
|
|
margin-top: 8px;
|
|
padding-left: 12px;
|
|
border-left: 2px solid #2d3748;
|
|
}
|
|
|
|
.subtask {
|
|
background: #0f1419;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
margin-bottom: 4px;
|
|
cursor: grab;
|
|
font-size: 0.85em;
|
|
border: 1px solid #1e2936;
|
|
position: relative;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.subtask:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.subtask:hover {
|
|
border-color: #3a4a5c;
|
|
}
|
|
|
|
.subtask:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.subtask.dragging {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.subtask-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
gap: 6px;
|
|
}
|
|
|
|
.subtask-title {
|
|
font-weight: 600;
|
|
color: #e4e6eb;
|
|
font-size: 0.92em;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.subtask-progress-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.subtask-progress {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: #1a2332;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.subtask-progress-fill {
|
|
height: 100%;
|
|
background: #48bb78;
|
|
transition: width 0.3s ease;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.subtask-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ─── Drop Zone ─── */
|
|
.drop-zone {
|
|
border: 2px dashed #4a5568;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
color: #718096;
|
|
font-size: 0.8em;
|
|
transition: all 0.2s;
|
|
opacity: 0;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.drop-zone.visible {
|
|
opacity: 1;
|
|
max-height: 60px;
|
|
padding: 10px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.drop-zone.drag-over {
|
|
border-color: #4299e1;
|
|
background: #1e3a5f;
|
|
color: #4299e1;
|
|
}
|
|
|
|
/* ─── Completed ─── */
|
|
.completed .task-title,
|
|
.completed .subtask-title {
|
|
text-decoration: line-through;
|
|
color: #718096;
|
|
}
|
|
|
|
.completed {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
/* ─── Empty / Loading State ─── */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 50px 20px;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.empty-state h2 {
|
|
font-size: 1.2em;
|
|
margin-bottom: 6px;
|
|
color: #cbd5e0;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 50px 20px;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.spinner {
|
|
border: 3px solid #2d3748;
|
|
border-top: 3px solid #4299e1;
|
|
border-radius: 50%;
|
|
width: 32px;
|
|
height: 32px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 12px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ─── Responsive ─── */
|
|
@media (max-width: 640px) {
|
|
h1 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.header-actions {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.task-card {
|
|
padding: 10px 12px;
|
|
}
|
|
} |