latest version

This commit is contained in:
Honey committed 2026-02-13 11:24:43 +01:00
1 parent 907c293a68
commit fa169b880c
5 files changed
+808 -500

No files matched your search

+350 -220
View File
@@ -5,427 +5,556 @@
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
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: 1200px;
max-width: 900px;
margin: 0 auto;
}
header {
text-align: center;
color: white;
margin-bottom: 30px;
position: relative;
}
h1 {
font-size: 2.5em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
header p {
font-size: 1.1em;
margin-bottom: 20px;
}
/* Sidebar Styles */
.sidebar {
position: fixed;
top: 0;
right: -450px;
width: 450px;
height: 100vh;
background: white;
box-shadow: -5px 0 20px rgba(0,0,0,0.3);
transition: right 0.3s ease;
z-index: 1001;
overflow-y: auto;
}
.sidebar.open {
right: 0;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 25px;
border-bottom: 2px solid #f0f0f0;
position: sticky;
top: 0;
background: white;
z-index: 10;
}
.sidebar-header h2 {
color: #333;
font-size: 1.5em;
h1 {
font-size: 1.8em;
color: #e4e6eb;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
font-size: 2em;
color: #999;
/* 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;
width: 40px;
height: 40px;
transition: background 0.2s;
font-size: 0.9em;
border-bottom: 1px solid #2d3748;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s;
gap: 8px;
color: #e4e6eb;
}
.close-btn:hover {
background: #f0f0f0;
color: #333;
.context-menu-item:last-child {
border-bottom: none;
}
.sidebar-content {
padding: 25px;
.context-menu-item:hover {
background: #2d3748;
}
.overlay {
.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.5);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
align-items: center;
justify-content: center;
}
.overlay.active {
opacity: 1;
visibility: visible;
.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: 20px;
margin-bottom: 16px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #333;
font-size: 0.95em;
margin-bottom: 6px;
font-weight: 500;
color: #a0aec0;
font-size: 0.875em;
}
input[type="text"],
select,
textarea {
width: 100%;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
padding: 10px 12px;
border: 1px solid #2d3748;
border-radius: 6px;
font-size: 0.95em;
font-family: inherit;
transition: border-color 0.3s;
transition: all 0.2s;
background: #0f1419;
color: #e4e6eb;
}
input[type="text"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: #667eea;
border-color: #4299e1;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}
textarea {
resize: vertical;
min-height: 80px;
}
select option {
background: #1a2332;
color: #e4e6eb;
}
/* Button Styles */
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 30px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
button:active {
transform: translateY(0);
border: none;
border-radius: 6px;
font-weight: 500;
transition: all 0.2s;
}
.btn-primary {
width: 100%;
padding: 15px;
font-size: 1.1em;
padding: 12px;
font-size: 1em;
background: #4299e1;
color: white;
}
.btn-add-task {
margin-top: 15px;
font-size: 1.1em;
padding: 12px 40px;
.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: 8px 15px;
font-size: 14px;
padding: 6px 12px;
font-size: 0.85em;
}
.btn-complete {
background: #28a745;
}
.btn-delete {
background: #dc3545;
background: #48bb78;
color: white;
}
.btn-complete:hover {
background: #218838;
background: #38a169;
}
.btn-delete {
background: #f56565;
color: white;
}
.btn-delete:hover {
background: #c82333;
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: 20px;
gap: 16px;
}
.task-card {
background: white;
border-radius: 15px;
padding: 20px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
cursor: move;
transition: transform 0.2s, box-shadow 0.2s;
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 {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
border-color: #2d3748;
}
.task-card:active {
cursor: grabbing;
}
.task-card.dragging {
opacity: 0.5;
opacity: 0.4;
}
.task-card.drag-over {
border: 2px dashed #667eea;
background: #f8f9ff;
border-color: #4299e1;
background: #1e3a5f;
}
.task-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
margin-bottom: 12px;
}
.task-title {
font-size: 1.3em;
font-weight: 700;
color: #333;
font-size: 1.1em;
font-weight: 600;
color: #e4e6eb;
flex: 1;
}
.task-size-badge {
padding: 5px 12px;
border-radius: 20px;
font-size: 0.8em;
padding: 4px 10px;
border-radius: 12px;
font-size: 0.75em;
font-weight: 600;
margin-left: 10px;
white-space: nowrap;
}
.task-size-badge.small {
background: #e3f2fd;
color: #1976d2;
background: #2c5282;
color: #90cdf4;
}
.task-size-badge.medium {
background: #fff3e0;
color: #f57c00;
background: #7c2d12;
color: #fed7aa;
}
.task-size-badge.large {
background: #fce4ec;
color: #c2185b;
background: #7c2d12;
color: #fbb6ce;
}
.task-description {
color: #666;
margin-bottom: 15px;
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: 15px;
margin-bottom: 12px;
}
.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
font-size: 0.9em;
color: #666;
margin-bottom: 6px;
font-size: 0.85em;
color: #a0aec0;
}
.progress-bar {
width: 100%;
height: 25px;
background: #f0f0f0;
border-radius: 12px;
height: 20px;
background: #0f1419;
border-radius: 10px;
overflow: hidden;
position: relative;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
background: #4299e1;
transition: width 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 0.85em;
font-size: 0.75em;
}
/* Reward Section */
.reward-section {
background: #f8f9fa;
background: #2d3748;
padding: 12px;
border-radius: 8px;
margin-top: 15px;
margin-top: 12px;
font-size: 0.95em;
border: 1px solid #4a5568;
}
.reward-hidden {
color: #999;
color: #718096;
font-style: italic;
}
.reward-revealed {
color: #28a745;
color: #68d391;
font-weight: 600;
animation: reveal 0.5s ease;
}
@keyframes reveal {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
font-size: 1em;
}
/* Task Actions */
.task-actions {
display: flex;
gap: 10px;
margin-top: 15px;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
/* Subtasks */
.subtasks-container {
margin-top: 15px;
padding-left: 20px;
border-left: 3px solid #e0e0e0;
margin-top: 12px;
padding-left: 16px;
border-left: 2px solid #2d3748;
}
.subtask {
background: #f8f9fa;
padding: 12px;
border-radius: 8px;
margin-bottom: 10px;
cursor: move;
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: 8px;
margin-bottom: 6px;
}
.subtask-title {
font-weight: 600;
color: #333;
color: #e4e6eb;
}
.subtask-progress {
width: 100%;
height: 20px;
background: #e0e0e0;
border-radius: 10px;
height: 16px;
background: #1a2332;
border-radius: 8px;
overflow: hidden;
margin-bottom: 8px;
}
.subtask-progress-fill {
height: 100%;
background: linear-gradient(90deg, #4caf50 0%, #81c784 100%);
background: #48bb78;
transition: width 0.3s ease;
}
.subtask-actions {
display: flex;
gap: 6px;
margin-top: 8px;
}
/* Drop Zone */
.drop-zone {
border: 2px dashed #ccc;
border-radius: 8px;
padding: 15px;
border: 2px dashed #4a5568;
border-radius: 6px;
padding: 12px;
text-align: center;
color: #999;
margin-top: 10px;
transition: all 0.3s;
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: #667eea;
background: #f0f4ff;
color: #667eea;
border-color: #4299e1;
background: #1e3a5f;
color: #4299e1;
}
/* Completed State */
.completed {
opacity: 0.7;
opacity: 0.85;
}
.completed .task-title {
text-decoration: line-through;
color: #a0aec0;
}
/* Checkbox Group */
/* Checkbox */
.checkbox-group {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 15px;
gap: 6px;
}
.checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
width: 16px;
height: 16px;
cursor: pointer;
}
@@ -433,34 +562,30 @@ button:active {
.empty-state {
text-align: center;
padding: 60px 20px;
color: white;
color: #a0aec0;
}
.empty-state h2 {
font-size: 2em;
margin-bottom: 10px;
}
.empty-state p {
font-size: 1.2em;
opacity: 0.9;
font-size: 1.5em;
margin-bottom: 8px;
color: #cbd5e0;
}
/* Loading State */
.loading {
text-align: center;
padding: 60px 20px;
color: white;
color: #a0aec0;
}
.spinner {
border: 4px solid rgba(255,255,255,0.3);
border-top: 4px solid white;
border: 3px solid #2d3748;
border-top: 3px solid #4299e1;
border-radius: 50%;
width: 50px;
height: 50px;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
margin: 0 auto 16px;
}
@keyframes spin {
@@ -468,24 +593,29 @@ button:active {
100% { transform: rotate(360deg); }
}
/* Responsive Design */
/* Responsive */
@media (max-width: 768px) {
.sidebar {
width: 100%;
right: -100%;
h1 {
font-size: 1.5em;
}
h1 {
font-size: 2em;
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;
margin-top: 5px;
}
.task-actions {