Загрузка данных
:root {
/* Светлая тема (по умолчанию) */
--bg-color: #ffffff;
--text-main: #000000;
--text-muted: #9ca3af;
--line-color: #f3f4f6;
--header-line: #000000;
--hover-bg: #fafafa;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
/* Темная тема */
--bg-color: #121212;
--text-main: #ffffff;
--text-muted: #6b7280;
--line-color: #262626;
--header-line: #ffffff;
--hover-bg: #1a1a1a;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--bg-color);
color: var(--text-main);
transition: background-color 0.4s ease, color 0.4s ease;
padding: 40px 50px;
min-height: 100vh;
overflow-x: hidden;
}
/* Шапка */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 50px;
animation: fadeIn 0.8s ease;
}
.header h1 {
font-size: 32px;
font-weight: 700;
letter-spacing: -1px;
}
.controls {
display: flex;
gap: 15px;
}
.icon-btn {
background: var(--line-color);
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 16px;
color: var(--text-main);
text-decoration: none;
transition: var(--transition);
}
.icon-btn:hover {
transform: scale(1.05);
background: var(--text-muted);
color: var(--bg-color);
}
/* Сетка планера */
.tweek-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 30px;
animation: fadeIn 1s ease;
}
/* Колонки */
.column {
display: flex;
flex-direction: column;
}
.col-header {
display: flex;
justify-content: space-between;
align-items: baseline;
border-bottom: 2px solid var(--header-line);
padding-bottom: 10px;
margin-bottom: 10px;
}
.date-num {
font-size: 18px;
font-weight: 700;
}
.day-name {
font-size: 14px;
color: var(--text-muted);
font-weight: 500;
}
/* Задачи и линии */
.task-list {
list-style: none;
display: flex;
flex-direction: column;
}
.task-item {
border-bottom: 1px solid var(--line-color);
min-height: 45px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 5px;
transition: var(--transition);
group: item;
}
.task-item:hover {
background-color: var(--hover-bg);
}
.task-text {
font-size: 14px;
color: var(--text-main);
flex: 1;
cursor: pointer;
transition: var(--transition);
}
.task-text.done {
text-decoration: line-through;
color: var(--text-muted);
}
.task-actions {
opacity: 0;
display: flex;
gap: 10px;
transition: opacity 0.2s ease;
}
.task-item:hover .task-actions {
opacity: 1;
}
.action-btn {
text-decoration: none;
font-size: 12px;
color: var(--text-muted);
}
.action-btn:hover {
color: var(--text-main);
}
/* Форма добавления (скрытая под линию) */
.add-task-form input {
width: 100%;
min-height: 45px;
border: none;
border-bottom: 1px solid var(--line-color);
background: transparent;
color: var(--text-main);
font-size: 14px;
font-family: var(--font-family);
outline: none;
padding: 0 5px;
transition: var(--transition);
}
.add-task-form input:focus {
border-bottom-color: var(--text-main);
}
.add-task-form input::placeholder {
color: transparent;
transition: color 0.3s ease;
}
.add-task-form:hover input::placeholder {
color: var(--text-muted);
}
/* Спец. колонки для выходных и когда-нибудь */
.weekend-split {
display: flex;
flex-direction: column;
gap: 40px;
}
.someday-section {
grid-column: 1 / -1;
margin-top: 50px;
}
/* Анимации */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}