@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

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

:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #131a2a;
    --bg-tertiary: #1a2236;
    --text-primary: #eaf6ff;
    --text-secondary: #7ddfff;
    --text-tertiary: #999999;
    --border: #1e293b;
    --border-hover: #d0d0d0;
    --primary: #00eaff;
    --accent: #3a8fff;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ff3b3b;
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-hover: rgba(0, 0, 0, 0.08);
    --shadow-card: rgba(0, 0, 0, 0.06);
    --gradient-primary: linear-gradient(90deg, #00eaff 0%, #3a8fff 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body, html {
    overflow-x: hidden;
}

body {
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    min-height: 100vh;
    letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5 {
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    color: var(--primary);
    text-shadow: 0 0 8px #00eaff, 0 0 2px #3a8fff;
    letter-spacing: 0.08em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 0 24px 2px #00eaff33, 0 0 0 2px #00eaff44 inset;
    border: 2px solid #00eaff44;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Неоновая рамка */
.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 0 24px 4px #00eaff99, 0 0 0 2px #3a8fff55 inset;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Позволяет переносить элементы */
    gap: 20px; /* Пространство между элементами */
    text-align: left; /* Выравнивание по левому краю на десктопе */
    margin-bottom: 48px;
    padding: 24px 0;
}

.header-content {
    flex-grow: 1; /* Позволяет заголовку занимать доступное место */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Запрещает блоку сжиматься */
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Вкладки в современном стиле */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 1px 3px var(--shadow);
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 1.5px solid #00eaff55;
    box-shadow: 0 0 12px 2px #00eaff33;
    margin-bottom: 18px;
    padding: 12px 18px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-card);
    transform: translateY(-1px);
    background: linear-gradient(90deg, #3a8fff 0%, #00eaff 100%);
    color: #fff;
    box-shadow: 0 0 16px 4px #00eaff99;
}

.tab-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
    background: #00eaff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Современный дизайн для задач */
.todo-app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 0 24px 2px #00eaff33, 0 0 0 2px #00eaff44 inset;
    border: 2px solid #00eaff44;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Современная форма добавления */
.modern-input-section {
    margin-bottom: 32px;
}

.input-container {
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    transition: all 0.3s ease;
    align-items: center;
}

.input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    height: 52px;
    box-sizing: border-box;
}

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

.modern-add-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
}

.modern-add-btn:hover {
    transform: translateY(-2px);
    background: #00eaff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
}

/* Фильтры */
.filters-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 1.5px solid #00eaff55;
    box-shadow: 0 0 12px 2px #00eaff33;
    margin-bottom: 18px;
    padding: 12px 18px;
}

.date-filters, .status-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.date-filter-btn, .status-filter-btn {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.date-filter-btn:hover, .status-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    background: #00eaff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
}

.date-filter-btn.active, .status-filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Современный список задач */
.modern-todo-list {
    margin-bottom: 32px;
}

.todo-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.todo-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 40px;
    opacity: 0.8;
}

.modern-todo-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-todo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.modern-todo-item:hover::before {
    transform: scaleY(1);
}

.modern-todo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.modern-todo-item.completed {
    opacity: 0.7;
    background: var(--bg-tertiary);
}

.modern-todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.modern-todo-item.completed .todo-date {
    opacity: 0.6;
}

.modern-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--bg-primary);
}

.modern-checkbox:checked {
    background: var(--gradient-primary);
    border-color: transparent;
}

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

.todo-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

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

.modern-edit-btn, .modern-delete-btn {
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.modern-edit-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.modern-edit-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.modern-delete-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.modern-delete-btn:hover {
    background: var(--error);
    color: white;
    transform: scale(1.1);
}

/* Современная статистика */
.modern-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 1.5px solid #00eaff55;
    box-shadow: 0 0 12px 2px #00eaff33;
    margin-bottom: 18px;
    padding: 12px 18px;
}

.modern-stats .stat-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.modern-stats .stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modern-stats .stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
}

.modern-stats .stat-info {
    flex: 1;
}

.modern-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modern-stats .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.clear-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    grid-column: 1 / -1;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.clear-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-2px);
    background: #ff3b3b;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #ff3b3bcc;
}

/* Пустые состояния */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px dashed var(--border);
    font-weight: 500;
}

/* Адаптивность для всех устройств */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .todo-app,
    .sport-app {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        align-items: center; /* Центрируем все в колонке */
        text-align: center; /* Центрируем текст */
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content h1 {
        font-size: 24px;
    }
    
    .user-info {
        justify-content: center; /* Центрируем элементы внутри user-info */
        width: 100%;
    }
    
    /* Вкладки */
    .tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 120px;
    }
    
    /* Форма добавления задач */
    .input-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .input-container input {
        width: 100%;
        height: 48px;
    }
    
    .modern-add-btn {
        width: 100%;
        height: 48px;
        min-width: unset;
    }
    
    /* Фильтры */
    .filters-section {
        padding: 16px;
    }
    
    .date-filters, .status-filters {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .date-filter-btn, .status-filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    /* Статистика */
    .modern-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .modern-stats .stat-card {
        padding: 16px;
    }
    
    .modern-stats .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modern-stats .stat-number {
        font-size: 24px;
    }
    
    /* Быстрые действия */
    .quick-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding-bottom: 0;
    }
    .quick-btn {
        padding: 8px 12px;
        font-size: 12px;
        margin: 2px;
        min-width: unset;
        flex: unset;
    }
    
    /* Активности */
    .activity-input {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group select,
    .input-group input {
        width: 100%;
        height: 48px;
    }
    
    .add-btn {
        width: 100%;
        height: 48px;
    }
    
    /* Достижения */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .achievement-card {
        padding: 16px;
    }
    
    /* Графики */
    .chart-container {
        padding: 16px;
    }
    
    .activity-chart {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .todo-app,
    .sport-app {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header-content h1 {
        font-size: 20px;
    }
    
    /* Вкладки */
    .tabs {
        padding: 8px;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    /* Фильтры */
    .filters-section {
        padding: 12px;
    }
    
    .date-filter-btn, .status-filter-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    /* Быстрые действия */
    .quick-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
        padding-bottom: 0;
    }
    .quick-btn {
        padding: 6px 8px;
        font-size: 11px;
        margin: 1px;
        min-width: unset;
        flex: unset;
    }
    
    /* Статистика */
    .modern-stats {
        padding: 12px;
    }
    
    .modern-stats .stat-card {
        padding: 12px;
    }
    
    .modern-stats .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modern-stats .stat-number {
        font-size: 20px;
    }
    
    /* Модальное окно */
    .modal-content {
        padding: 16px;
        margin: 16px;
        min-width: unset;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 8px;
    }
    
    .todo-app,
    .sport-app {
        padding: 12px;
    }
    
    .tab-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .quick-btn {
        font-size: 10px;
        padding: 4px 6px;
        min-width: unset;
    }
    
    .date-filter-btn, .status-filter-btn {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 60px;
    }
}

/* Стили для спортивной секции */
.sport-app h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.sport-app h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Быстрые действия — десктоп */
.quick-actions {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.quick-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 6px !important;
    overflow-x: hidden !important;
    flex-wrap: unset !important;
    white-space: normal !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.quick-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    max-width: 180px;
    white-space: normal;
    word-break: break-word;
    margin: 0;
}
.quick-btn .emoji {
    font-size: 20px;
}
.quick-btn .text {
    color: #fff;
    transition: color 0.2s;
}
.quick-btn:hover, .quick-btn:focus {
    background: #fff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
}
.quick-btn:hover .text, .quick-btn:focus .text {
    color: #0a0f1c;
}

@media (max-width: 900px) {
    .quick-actions {
        max-width: 100vw;
    }
    .quick-buttons {
        gap: 10px;
    }
    .quick-btn {
        min-width: 90px;
        font-size: 13px;
        padding: 8px 8px;
    }
}

.activity-input {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.activity-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group select,
.input-group input {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
}

.input-group select:focus,
.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.input-group select {
    flex: 1;
}

.input-group input {
    flex: 1;
}

#customActivityName {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    margin-top: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
}

/* Графики */
.charts-section {
    margin-bottom: 40px;
}

.chart-container {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.chart {
    height: 240px;
    position: relative;
    margin-top: 24px;
}

.chart-bar {
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.chart-bar:hover::before {
    left: 100%;
}

.chart-bar:hover {
    background: var(--gradient-secondary);
    transform: scaleY(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Статистика */
.today-stats {
    margin-top: 24px;
}

.today-stats h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 16px;
}

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

/* Годовая статистика */
.yearly-stats {
    margin-top: 24px;
    margin-bottom: 24px;
}

.yearly-stats h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.yearly-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.yearly-stat-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.yearly-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-success);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.yearly-stat-card:hover::before {
    opacity: 0.05;
}

.yearly-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--success);
}

.yearly-stat-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-success);
    border-radius: 16px;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.yearly-stat-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.yearly-stat-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.yearly-stat-value {
    color: var(--success);
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.yearly-stat-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 500;
}

/* История активности */
.activity-history {
    margin-bottom: 40px;
}

.history-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.history-filter {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.history-filter.active,
.history-filter:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.activity-list {
    max-height: 450px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-secondary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-item:hover::before {
    transform: scaleY(1);
}

.activity-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--shadow-hover);
    transform: translateX(4px);
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.activity-emoji {
    font-size: 24px;
    transition: transform 0.3s ease;
    min-width: 32px;
    text-align: center;
}

.activity-item:hover .activity-emoji {
    transform: scale(1.1);
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
}

.activity-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.activity-count {
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 16px;
    min-width: 40px;
    text-align: center;
}

.activity-delete {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    font-weight: 500;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-delete:hover {
    background: var(--error);
    color: white;
    transform: scale(1.05);
}

/* Activity Chart */
.activity-chart {
    margin-top: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.activity-chart h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.activity-chart canvas {
    height: 300px !important;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item,
.activity-item {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Система авторизации */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 0 24px 2px #00eaff33, 0 0 0 2px #00eaff44 inset;
    border: 2px solid #00eaff44;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* Неоновая рамка */
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: 0 0 24px 4px #00eaff99, 0 0 0 2px #3a8fff55 inset;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-switch span {
    color: var(--text-secondary);
    font-size: 14px;
}

.switch-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.switch-btn:hover {
    color: var(--accent);
}

/* Основное приложение */
.app-container {
    min-height: 100vh;
    background: var(--bg-primary);
}

.app-container.hidden {
    display: none;
}

/* Обновленный header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.header-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00eaff;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px 4px #00eaff99;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#userName {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.logout-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-1px);
    background: #ff3b3b;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #ff3b3bcc;
}

/* Утилиты */
.hidden {
    display: none !important;
}

/* Адаптивность для авторизации */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
        margin: 16px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .header {
        flex-direction: column;
        align-items: center; /* Центрируем все в колонке */
        text-align: center; /* Центрируем текст */
    }
    
    .user-info {
        justify-content: center; /* Центрируем элементы внутри user-info */
        width: 100%;
    }
}

/* Модальное окно профиля */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal.hidden { display: none; }
.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 95vw;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #10182b;
    border: 2px solid #00eaff99;
    box-shadow: 0 0 32px 8px #00eaff55;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--error); }

.profile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #00eaff;
    box-shadow: 0 0 16px 2px #00eaff99;
    background: #10182b;
}
.profile-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 4px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.profile-btn:hover {
    background: var(--accent);
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
    background: #00eaff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
}
.save-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 0;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Неоновый скроллбар */
::-webkit-scrollbar {
    width: 8px;
    background: #10182b;
}
::-webkit-scrollbar-thumb {
    background: #00eaff55;
    border-radius: 8px;
}

/* Неоновый текст */
.stat-number, .number, .activity-count {
    color: #00eaff;
    text-shadow: 0 0 8px #00eaff, 0 0 2px #3a8fff;
}

/* Эффект голограммы для рамок */
.container, .auth-card, .modal-content, .tab-content, .todo-app, .sport-app {
    border-image: linear-gradient(120deg, #00eaff 0%, #3a8fff 100%) 1;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container, .auth-card, .modal-content, .tab-content, .todo-app, .sport-app {
        padding: 10px;
    }
    .tabs, .filters-section, .modern-stats, .today-stats, .activity-history, .activity-chart {
        padding: 8px 4px;
    }
}

.social-buttons.center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 12px;
}
.social-btn.google-btn {
    min-width: 240px;
    font-size: 18px;
    padding: 16px 28px;
    border-radius: 25px;
}

.input-group input {
    flex: 1;
}

.add-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'Orbitron', 'Exo', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    box-shadow: 0 0 12px 2px #00eaff55;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.add-btn:hover, .add-btn:focus {
    background: #fff;
    color: #0a0f1c;
    box-shadow: 0 0 18px 6px #00eaffcc;
    transform: translateY(-1px);
}

/* Достижения */
.achievements-section {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: 0 0 24px 2px #00eaff33, 0 0 0 2px #00eaff44 inset;
    border: 2px solid #00eaff44;
    position: relative;
    overflow: hidden;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.achievement-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    filter: grayscale(100%);
}

.achievement-card.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    border-color: #00eaff;
    box-shadow: 0 0 16px 4px #00eaff55;
}

.achievement-card.unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.achievement-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.achievement-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.achievement-progress {
    margin-top: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    position: relative;
}

.achievement-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.achievement-card.unlocked .achievement-progress-bar {
    background: linear-gradient(90deg, #00eaff 0%, #3a8fff 100%);
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-card.unlocked:hover {
    box-shadow: 0 8px 25px rgba(0, 234, 255, 0.3);
}

@media (max-width: 600px) {
    .quick-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .quick-btn {
        min-width: 100px;
        flex: 0 0 auto;
    }
}

@media (max-width: 400px) {
    .quick-buttons {
        gap: 4px;
    }
    .quick-btn {
        min-width: 90px;
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Принудительно убираем скролл у быстрых действий */
.quick-buttons {
  overflow-x: unset !important;
  white-space: normal !important;
}

.motivational-quote-card {
  margin: 24px 0 32px 0;
  padding: 22px 18px 18px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 #00eaff33;
  font-size: 1.08rem;
  font-family: 'Inter', 'Exo', Arial, sans-serif;
  font-weight: 500;
  text-align: center;
  position: relative;
  min-height: 56px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1);
}
.motivational-quote-card::before {
  content: '💡 Цитата дня';
  display: block;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.next-quote-btn {
  margin-top: 14px;
  padding: 8px 18px;
  background: #fff;
  color: #0a0f1c;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', 'Exo', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 #00eaff33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.next-quote-btn:hover, .next-quote-btn:focus {
  background: #00eaff;
  color: #fff;
  box-shadow: 0 4px 16px 0 #00eaff99;
  outline: none;
}

/* Ежедневное напоминание */
.daily-reminder-section {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.daily-reminder-section:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(58, 143, 255, 0.1);
}

.daily-reminder-section h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text-primary);
}

.daily-reminder-section p {
    max-width: 400px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.reminder-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.reminder-input-container.hidden {
    display: none;
}

#dailyReminderTime {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#dailyReminderTime:focus, #dailyReminderTime:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.set-reminder-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 143, 255, 0.2);
}

.set-reminder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 143, 255, 0.3);
}

.reminder-display {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 20px;
    min-height: 48px;
}

.reminder-display.hidden {
    display: none;
}

.reminder-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto;
}

.reminder-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.delete-reminder-btn {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.delete-reminder-btn:hover {
    background: var(--error);
    color: white;
}

.charts-section {
    margin-top: 40px;
    padding-top: 40px;
}

/* Секция Целей */
.goals-section {
    margin-top: 40px;
}

.goal-input-container {
    display: flex;
    flex-direction: column; /* Изменено на ستون */
    gap: 12px;
    margin-bottom: 24px;
}

#goalInput {
    /* flex: 1; убрано, так как больше не нужно */
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#goalInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.goal-card.completed {
    opacity: 0.6;
    background: #1a2236;
}

.goal-card.completed .goal-header h4 {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.goal-header h4 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.goal-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.goal-actions .complete-goal-btn:hover { color: var(--success); }
.goal-actions .delete-goal-btn:hover { color: var(--error); }

.progress-updates-list {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.update-item {
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.update-text {
    color: var(--text-primary);
}

.update-date {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-align: right;
}

.add-update-container {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.add-update-container input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.add-update-container button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.add-update-container button:hover {
    background: var(--accent-hover);
}

.add-goal-container {
    display: flex;
}

.add-goal-container input {
    flex-grow: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px 0 0 8px;
}

.add-goal-container button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-goal-container button:hover {
    background: var(--accent-hover);
}

/* Стили для кастомного скроллбара */
.goals-list-container::-webkit-scrollbar {
    width: 8px;
}

.goals-section {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.goals-section h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.goals-section p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.goals-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 10px; /* для скроллбара */
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.goal-card.completed {
    background-color: rgba(0, 0, 0, 0.4);
    text-decoration: line-through;
    opacity: 0.7;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    flex-grow: 1;
}

.goal-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.goal-actions button:hover {
    opacity: 1;
}

.progress-updates-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.update-item {
    padding: 0.5rem;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.update-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    float: right;
}

.add-update-container {
    display: flex;
    margin-top: 1rem;
}

.add-update-container input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.7rem;
    border-radius: 6px 0 0 6px;
}

.add-update-container button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-update-container button:hover {
    background: var(--accent-hover);
}

.add-goal-container {
    display: flex;
}

.add-goal-container input {
    flex-grow: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px 0 0 8px;
}

.add-goal-container button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-goal-container button:hover {
    background: var(--accent-hover);
} 
 
 / *   !5:F8O  A8=E@>=870F88  * / 
 . s y n c - s e c t i o n   { 
         m a r g i n - t o p :   3 0 p x ; 
         p a d d i n g :   2 0 p x ; 
         b a c k g r o u n d :   v a r ( - - b g - t e r t i a r y ) ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
 } 
 
 . s y n c - s e c t i o n   h 3   { 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
         f o n t - s i z e :   1 6 p x ; 
 } 
 
 . s y n c - s e c t i o n   p   { 
         c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         f o n t - s i z e :   1 4 p x ; 
         l i n e - h e i g h t :   1 . 5 ; 
 } 
 
 . s y n c - b t n   { 
         b a c k g r o u n d :   v a r ( - - g r a d i e n t - p r i m a r y ) ; 
         c o l o r :   w h i t e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   1 2 p x   2 4 p x ; 
         b o r d e r - r a d i u s :   8 p x ; 
         c u r s o r :   p o i n t e r ; 
         f o n t - w e i g h t :   6 0 0 ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
         w i d t h :   1 0 0 % ; 
         f o n t - s i z e :   1 4 p x ; 
 } 
 
 . s y n c - b t n : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - a c c e n t - h o v e r ) ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 5 8 ,   1 4 3 ,   2 5 5 ,   0 . 3 ) ; 
 } 
 
 . s y n c - b t n : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 }  
 