* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    padding: 0 12px 20px;
    color: var(--accent);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    margin-bottom: 2px;
    font-size: 14px;
    user-select: none;
    border: 1px solid transparent;
    color: var(--text);
}

.nav-item:hover {
    background: var(--hover-bg);
}

.nav-item.active {
    background: var(--active-bg);
    font-weight: 600;
    border-color: var(--accent);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-count {
    margin-left: auto;
    background: var(--nav-count-bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    flex-shrink: 0;
}

.nav-item.active .nav-count {
    background: var(--accent);
    color: #fff;
}

[data-theme="contrast"] .nav-item.active .nav-count {
    color: #000;
    font-weight: bold;
}

.lists-section {
    margin-top: 24px;
}

.lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-weight: 600;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition);
}

.btn-icon-sm:hover {
    background: var(--hover-bg);
    color: var(--text);
}

/* ==================== ПАПКИ ==================== */
.folder-item {
    position: relative;
    padding-right: 40px;
}

.folder-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.folder-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-count {
    margin-left: 4px;
    flex-shrink: 0;
}

.folder-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
    z-index: 1;
}

.folder-item:hover .folder-delete-btn {
    display: block;
}

.folder-delete-btn:hover {
    background: var(--red);
    color: #fff;
}

.nav-item.muted {
    color: var(--text-secondary);
    font-style: italic;
    cursor: default;
}

.nav-item.muted:hover {
    background: transparent;
}

/* ==================== ТЕГИ В САЙДБАРЕ ==================== */
.lists-subheader {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 12px 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tag-nav-item {
    padding: 8px 12px;
    font-size: 13px;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
    z-index: 1;
}

.tag-nav-item {
    position: relative;
    padding-right: 40px;
}

.tag-nav-item:hover .tag-delete-btn {
    display: block;
}

.tag-delete-btn:hover {
    background: var(--red);
    color: #fff;
}

/* ==================== ТЕМЫ В САЙДБАРЕ ==================== */
.theme-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 2px solid var(--border);
}

.theme-nav-item {
    padding: 8px 12px;
    font-size: 13px;
}

.theme-nav-item .nav-icon {
    font-size: 14px;
}

/* ==================== ОСНОВНАЯ ОБЛАСТЬ ==================== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    padding: 20px 32px 16px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.current-folder {
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

/* ==================== ПОИСК ==================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--input-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    max-width: 300px;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 100, 207, 0.1);
}

.search-icon {
    font-size: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    min-width: 120px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: var(--hover-bg);
}

.search-highlight {
    background: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

[data-theme="dark"] .search-highlight {
    background: #ffc107;
    color: #000;
}

/* ==================== КНОПКИ ==================== */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--text);
    transition: all var(--transition);
}

.btn:hover {
    background: var(--hover-bg);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

[data-theme="contrast"] .btn-primary {
    color: #000;
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--accent-hover);
    opacity: 0.9;
}

.btn-danger {
    color: var(--red);
    border-color: var(--red);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ==================== КОНТЕНТ ==================== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 32px;
}

.add-task-area {
    margin-bottom: 20px;
}

.add-task-form {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.add-task-form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.add-task-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    background: transparent;
    color: var(--text);
}

.add-task-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.add-task-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.folder-select {
    padding: 7px 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    outline: none;
    max-width: 150px;
}

.folder-select:focus {
    border-color: var(--accent);
}

.date-input {
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    background: var(--input-bg);
    color: var(--text);
}

.date-input:focus {
    border-color: var(--accent);
}

/* ==================== СПИСОК ЗАДАЧ ==================== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.task-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border);
}

.task-item.editing {
    border-color: var(--accent);
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--checkbox-border);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    position: relative;
    background: transparent;
}

.task-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
}

[data-theme="contrast"] .task-checkbox:checked {
    background: #ffff00;
    border-color: #ffff00;
}

.task-checkbox:checked::after {
    content: '✓';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

[data-theme="contrast"] .task-checkbox:checked::after {
    color: #000;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.task-title {
    font-size: 14px;
    word-break: break-word;
    line-height: 1.5;
}

.task-title.done {
    text-decoration: line-through;
    color: var(--done-text);
}

.task-link {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
    word-break: break-all;
}

.task-link:hover {
    color: var(--link-hover);
    background: var(--hover-bg);
}

.task-link.done {
    color: var(--done-text);
    opacity: 0.6;
}

.task-link-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
}

.task-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.task-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.task-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid;
}

.folder-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.task-date.overdue {
    color: var(--red);
    font-weight: 500;
}

.task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}

.task-item:hover .task-actions {
    opacity: 1;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--hover-bg);
    color: var(--text);
}

.icon-btn.star.active {
    color: var(--star);
}

.icon-btn.delete:hover {
    background: var(--red);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.edit-input {
    border: 2px solid var(--accent);
    outline: none;
    font-size: 14px;
    width: 100%;
    padding: 4px 8px;
    background: var(--edit-bg);
    border-radius: 4px;
    color: var(--text);
}

.clear-completed {
    margin-top: 16px;
    text-align: center;
}

/* ==================== ТУЛТИП ССЫЛОК ==================== */
.link-tooltip {
    position: fixed;
    background: var(--text);
    color: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}

.link-tooltip.visible {
    opacity: 1;
}

/* ==================== КОНТЕКСТНОЕ МЕНЮ ==================== */
.context-menu {
    display: none;
    position: fixed;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    min-width: 200px;
    padding: 4px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    transition: background var(--transition);
}

.context-menu-item:hover {
    background: var(--hover-bg);
}

.context-menu-separator {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

.context-menu-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.context-menu-danger {
    color: var(--red);
}

.context-menu-danger:hover {
    background: var(--red);
    color: #fff;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 2px solid var(--border);
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--hover-bg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 2px solid var(--border);
}

/* ==================== ПАПКИ (МОДАЛКИ) ==================== */
.folder-name-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
}

.folder-name-input:focus {
    border-color: var(--accent);
}

.folder-color-picker {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--bg);
}

/* ==================== ТЕГИ (МОДАЛКИ) ==================== */
.tag-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.tag-manage-name {
    flex: 1;
    font-size: 14px;
}

.tag-manage-type {
    font-size: 11px;
    color: var(--text-secondary);
}

.tags-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* ==================== ИМПОРТ ==================== */
.import-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.import-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.import-option:hover {
    border-color: var(--accent);
    background: var(--hover-bg);
}

.option-content strong {
    display: block;
    margin-bottom: 4px;
}

.option-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--input-bg);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--accent);
    background: var(--hover-bg);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.file-upload-area p {
    color: var(--text-secondary);
    margin: 8px 0;
}

.file-types {
    font-size: 12px;
    opacity: 0.7;
}

.import-preview {
    margin-top: 20px;
    padding: 16px;
    background: var(--input-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.import-preview h4 {
    margin: 0 0 12px 0;
}

.preview-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.preview-stat {
    font-size: 13px;
    color: var(--text-secondary);
}

.preview-task-list {
    max-height: 200px;
    overflow-y: auto;
}

.preview-task {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.preview-task:last-child {
    border-bottom: none;
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    color: #fff;
    font-weight: 500;
    z-index: 3000;
    max-width: 400px;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: var(--accent);
}

/* ==================== ЭФФЕКТЫ AERO (WINDOWS 7) ==================== */
[data-theme="aero"] .sidebar {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    background: linear-gradient(180deg, 
        rgba(220, 232, 244, 0.85) 0%, 
        rgba(210, 222, 238, 0.75) 50%, 
        rgba(200, 215, 230, 0.7) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="aero"] .header {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(240, 245, 250, 0.85) 50%, 
        rgba(230, 238, 245, 0.8) 100%);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-bottom: 1px solid rgba(180, 200, 220, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="aero"] .task-item {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(245, 248, 252, 0.8) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 215, 230, 0.5);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="aero"] .task-item:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(245, 250, 255, 0.9) 100%);
    border-color: rgba(150, 180, 210, 0.7);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="aero"] .add-task-form {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(245, 248, 252, 0.75) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 215, 230, 0.5);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="aero"] .add-task-form:focus-within {
    border-color: rgba(58, 123, 213, 0.5);
    box-shadow: 
        0 0 0 3px rgba(58, 123, 213, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="aero"] .btn {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(235, 240, 245, 0.85) 100%);
    border: 1px solid rgba(180, 200, 220, 0.6);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

[data-theme="aero"] .btn:hover {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(240, 245, 250, 0.95) 100%);
    border-color: rgba(150, 180, 210, 0.8);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="aero"] .btn-primary {
    background: linear-gradient(180deg, 
        #5a9de8 0%, 
        #3a7bd5 50%, 
        #2e6bc4 100%);
    border: 1px solid #2564b0;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="aero"] .btn-primary:hover {
    background: linear-gradient(180deg, 
        #6baaed 0%, 
        #4a8ad8 50%, 
        #3a7bd5 100%);
    border-color: #1d4fa0;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="aero"] .nav-item.active {
    background: linear-gradient(180deg, 
        rgba(200, 220, 240, 0.7) 0%, 
        rgba(180, 205, 230, 0.6) 100%);
    border: 1px solid rgba(150, 180, 210, 0.5);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="aero"] .modal-content {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 245, 250, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 200, 220, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="aero"] .context-menu {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 200, 220, 0.5);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="aero"] .task-checkbox:checked {
    background: linear-gradient(135deg, #5a9de8, #3a7bd5);
    border-color: #2564b0;
}

[data-theme="aero"] .icon-btn.star.active {
    color: #e8a800;
    text-shadow: 0 0 6px rgba(232, 168, 0, 0.3);
}

[data-theme="aero"] .notification {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="aero"] .notification.success {
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.9), rgba(30, 147, 59, 0.9));
}

[data-theme="aero"] .notification.error {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.9), rgba(200, 40, 55, 0.9));
}

[data-theme="aero"] .add-task-input:focus,
[data-theme="aero"] .edit-input:focus,
[data-theme="aero"] .date-input:focus,
[data-theme="aero"] .folder-select:focus {
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
}

/* ==================== СТИЛИ ПУНКТОВ ТЕМ ДЛЯ ВСЕХ ТЕМ ==================== */

/* Светлая тема */
:root .theme-nav-item,
[data-theme="light"] .theme-nav-item {
    color: #1a1a1a;
}
:root .theme-nav-item:hover,
[data-theme="light"] .theme-nav-item:hover {
    background: #e8e8e8;
}
:root .theme-nav-item.active,
[data-theme="light"] .theme-nav-item.active {
    background: #dce8f9;
    color: #1a1a1a;
}

/* Тёмная тема */
[data-theme="dark"] .theme-nav-item {
    color: #e0e0e0;
}
[data-theme="dark"] .theme-nav-item:hover {
    background: #3a3a3a;
}
[data-theme="dark"] .theme-nav-item.active {
    background: #1a3a5c;
    color: #ffffff;
}

/* Aero тема */
[data-theme="aero"] .theme-nav-item {
    color: #1a2a3a;
}
[data-theme="aero"] .theme-nav-item:hover {
    background: rgba(200, 215, 230, 0.5);
}
[data-theme="aero"] .theme-nav-item.active {
    background: rgba(180, 200, 220, 0.6);
    color: #1a2a3a;
}

/* Контрастная тема */
[data-theme="contrast"] .theme-nav-item {
    color: #ffffff;
}
[data-theme="contrast"] .theme-nav-item:hover {
    background: #ffff00;
    color: #000000;
}
[data-theme="contrast"] .theme-nav-item.active {
    background: #ffff00;
    color: #000000;
}

/* Ретро тема */
[data-theme="retro"] .theme-nav-item {
    color: #2c1810;
}
[data-theme="retro"] .theme-nav-item:hover {
    background: #d4c4a8;
}
[data-theme="retro"] .theme-nav-item.active {
    background: #d4c4a8;
    color: #2c1810;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 16px 8px;
    }
    .sidebar-title,
    .nav-item span:not(.nav-icon),
    .nav-count,
    .lists-header,
    .lists-subheader {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 10px;
    }
    .header {
        padding: 16px 20px;
    }
    .content {
        padding: 16px 20px;
    }
    .add-task-actions .date-input {
        width: 120px;
    }
    .search-box {
        max-width: 200px;
    }
}

/* ==================== БЕЙДЖ ПРОСРОЧКИ ==================== */
.overdue-badge {
    background: var(--red);
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    flex-shrink: 0;
    line-height: 1.4;
}

/* ==================== УВЕДОМЛЕНИЯ С КНОПКОЙ ==================== */
.notification {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-text {
    flex: 1;
}

.notification-action {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.notification-action:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* ==================== ПУСТОЕ СОСТОЯНИЕ С КНОПКОЙ ==================== */
.empty-state-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
}

/* ==================== DRAG-N-DROP ==================== */
.task-item {
    cursor: grab;
}

.task-item:active {
    cursor: grabbing;
}

.task-item.dragging {
    opacity: 0.35;
    cursor: grabbing;
}

.task-item.drag-over-top {
    border-top: 3px solid var(--accent);
}

.task-item.drag-over-bottom {
    border-bottom: 3px solid var(--accent);
}

.task-item input,
.task-item button,
.task-item a,
.task-item select,
.task-item textarea,
.task-item .date-input {
    cursor: auto;
}

/* ==================== КОРЗИНА ==================== */
.task-item.trash-item {
    cursor: default;
    opacity: 0.9;
}

.task-item.trash-item .task-title {
    color: var(--text-secondary);
}

.task-item.trash-item:hover {
    opacity: 1;
}

.task-item.trash-item .task-actions {
    opacity: 1; /* кнопки всегда видны в корзине */
}

.task-item.trash-item .task-actions .icon-btn.restore:hover {
    background: #28a745;
    color: #fff;
}

.task-item.trash-item .task-actions .icon-btn.delete:hover {
    background: var(--red);
    color: #fff;
}

/* Бейдж счётчика корзины — приглушённый, чтобы не отвлекал */
.nav-item[data-filter="trash"] .nav-count {
    opacity: 0.8;
}

.nav-item[data-filter="trash"].active .nav-count {
    opacity: 1;
}