:root {
    --bg: #000000;
    --surface: #121212;
    --surface-light: #1a1a1a;
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --accent: #ffffff;
    --border: #2a2a2a;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Arial, sans-serif; }
body { background-color: var(--bg); color: var(--text-main); line-height: 1.5; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.logo { font-size: 24px; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; }
.card { background: var(--surface); border-radius: 12px; padding: 20px; border: 1px solid var(--border); margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
h1, h2, h3 { font-weight: 400; margin-bottom: 15px; }
p { color: var(--text-sec); margin-bottom: 15px; font-size: 14px; }
.btn { display: block; width: 100%; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; text-align: center; text-decoration: none; border: 1px solid transparent; transition: all 0.3s ease; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #e0e0e0; }
.btn-danger { background: transparent; color: #ff4d4d; border-color: #ff4d4d; }
.btn-danger:hover { background: #ff4d4d; color: var(--bg); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
input, textarea, select { width: 100%; padding: 14px; background: var(--surface-light); border: 1px solid var(--border); color: var(--text-main); border-radius: 8px; margin-bottom: 15px; font-size: 14px; }
input:focus, textarea:focus { outline: none; border-color: #555; }
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; } .btn { display: inline-block; width: auto; } }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--surface); width: 100%; max-width: 500px; padding: 25px; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; } 
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-sec); }
/* Новые стили для задач и скролла */
.task-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}
/* Стилизация ползунка (скролла) */
.task-list::-webkit-scrollbar { width: 6px; }
.task-list::-webkit-scrollbar-track { background: var(--surface-light); border-radius: 4px; }
.task-list::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.task-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}
.task-item.done { opacity: 0.5; text-decoration: line-through; }
.task-title { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 16px; }
.task-title:hover { text-decoration: underline; }
.icon-btn {
    background: none; border: none; font-size: 20px; cursor: pointer; transition: 0.2s;
}
.icon-start { color: #f39c12; }
.icon-start:hover { color: #f1c40f; transform: scale(1.1); }
.icon-check { color: #28a745; }
.icon-check:hover { color: #2ecc71; transform: scale(1.1); }