:root {
    --primary-color: #4CAF50; /* Современный зеленый */
    --secondary-color: #8BC34A; /* Светло-зеленый */
    --accent-color: #388E3C; /* Темно-зеленый */
    --light-color: #F0F4F8; /* Более мягкий светло-голубой/серый для фона */
    --dark-color: #333333; /* Темно-серый */
    --text-color: #555555; /* Средне-серый для текста */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Более выраженная тень */
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color); /* Используем новый светлый фон */
    color: var(--text-color);
    line-height: 1.6;
    /* overflow-x: hidden; */ /* УДАЛЕНО */
    /* position: relative; */ /* УДАЛЕНО */
}

.glitter-background {
    /* УДАЛЕНО */
}

@keyframes glitterLightPlay {
    /* УДАЛЕНО */
}

#particles-js {
    /* УДАЛЕНО */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* position: relative; */ /* УДАЛЕНО */
    /* z-index: 1; */ /* УДАЛЕНО */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Более тонкая и светлая граница */
}

h1 {
    font-family: 'Montserrat', sans-serif; /* Изменено на Montserrat */
    color: var(--dark-color);
    font-size: 2rem;
    text-shadow: none; /* УДАЛЕНО */
}

h1 i {
    margin-right: 10px;
    color: var(--accent-color); /* Цвет иконки */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

#username {
    color: var(--dark-color);
    text-shadow: none; /* УДАЛЕНО */
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Используем основной цвет */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem; /* Увеличим размер смайлика */
}

.task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.task-form input, .task-form select {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: white;
    transition: all 0.3s ease;
}

.task-form input:focus, .task-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.task-form input {
    flex-grow: 1;
}

.task-form select {
    width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.task-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px; /* Немного меньше радиус */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Добавляем анимацию transform */
    /* position: relative; */ /* УДАЛЕНО */
    /* overflow: hidden; */ /* УДАЛЕНО */
}

.task-form button::before {
    /* УДАЛЕНО */
}

.task-form button:hover::before {
    /* УДАЛЕНО */
}

.task-form button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px); /* Легкий подъем при наведении */
}

.task-statuses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.status-column {
    background-color: white;
    border-radius: 10px; /* Немного меньше радиус */
    padding: 20px;
    box-shadow: var(--shadow); /* Используем более выраженную тень */
    min-height: 400px;
    transition: transform 0.3s ease; /* Анимация для колонок */
}

.status-column:hover {
    transform: translateY(-5px); /* Легкий подъем при наведении на колонку */
}

.status-column h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-column h2 i {
    color: var(--primary-color); /* Цвет иконки */
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    background-color: var(--light-color); /* Сделаем карточки чуть светлее, чем фон колонки */
    padding: 15px;
    border-radius: 8px; /* Немного меньше радиус */
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.2s ease; /* Добавляем анимацию transform */
    /* transform: translateY(-3px); */ /* УДАЛЕНО */
}

.task-card.in-progress {
    border-left-color: #FFC107; /* Желтый для "В работе" */
}

.task-card.done {
    border-left-color: #4CAF50; /* Зеленый для "Выполнено" */
    opacity: 1; /* Полная непрозрачность */
}

.task-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Более заметная тень при наведении */
    transform: translateY(-3px); /* Легкий подъем при наведении */
}

.task-text {
    margin-bottom: 12px; /* Увеличиваем отступ снизу */
    color: var(--dark-color);
    font-weight: 500; /* Делаем текст задачи немного жирнее */
}

.task-meta {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос элементов на новую строку */
    gap: 8px 15px; /* Вертикальный и горизонтальный отступ */
    font-size: 0.85rem; /* Немного увеличим размер шрифта */
    color: var(--text-color);
    margin-bottom: 10px; /* Отступ перед кнопками действий */
}

.task-meta span {
    display: inline-flex; /* Используем flex для выравнивания иконок */
    align-items: center;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.05); /* Легкий фон для каждого элемента метаинформации */
    padding: 4px 8px;
    border-radius: 5px;
}

.task-meta span i {
    color: var(--primary-color); /* Цвет иконки для единообразия */
}

.task-meta span.task-creator {
    font-weight: 500;
    color: var(--dark-color);
}

.task-meta span.task-deadline {
    font-weight: 500;
    color: #D32F2F; /* Красный цвет для дедлайна */
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.task-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px; /* Меньший радиус */
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease; /* Добавляем анимацию transform */
    /* position: relative; */ /* УДАЛЕНО */
    /* overflow: hidden; */ /* УДАЛЕНО */
}

.task-actions button::before {
    /* УДАЛЕНО */
}

.task-actions button:hover::before {
    /* УДАЛЕНО */
}

.task-actions button:hover {
    transform: scale(1.05); /* Легкое увеличение при наведении */
    opacity: 0.9;
}

.start-btn {
    background-color: var(--secondary-color);
    color: white;
}

.back-btn {
    background-color: #607D8B; /* Серый цвет для кнопки "Назад" */
    color: white;
}

.complete-btn {
    background-color: #4CAF50; /* Зеленый */
    color: white;
}

.delete-btn {
    background-color: #F44336; /* Красный */
    color: white;
}

.assigned-to {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.assigned-mama {
    background-color: #FFCDD2; /* Светло-розовый */
    color: var(--dark-color);
}

.assigned-papa {
    background-color: #BBDEFB; /* Светло-голубой */
    color: var(--dark-color);
}

.assigned-nadya {
    background-color: #DCB3DE; /* Светло-фиолетовый */
    color: var(--dark-color);
}

.assigned-tolya {
    background-color: #C8E6C9; /* Светло-зеленый */
    color: var(--dark-color);
}

.assigned-family {
    background-color: #B2DFDB; /* Мятный */
    color: var(--dark-color);
}

/* Существующие стили, которые вы уже используете, остаются */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1; /* Отправляем на задний план */
}

.floating-hearts div {
    position: absolute;
    /* background-color: rgba(255, 192, 203, 0.6);  Удаляем фон */
    /* transform: rotate(45deg);  Удаляем поворот */
    opacity: 0;
    animation: float 10s ease-in infinite;
    font-size: 2rem; /* Размер смайликов */
    line-height: 1; /* Убираем лишнее пространство */
    text-align: center;
}

.floating-hearts div::before,
.floating-hearts div::after {
    content: none; /* Удаляем псевдоэлементы, формирующие сердце */
}

/* Стили для каждого сердца (nth-child), которые задают начальные позиции и вариации анимации */
.floating-hearts div:nth-child(1) {
    left: 10%;
    width: 40px; /* Увеличим область для смайлика */
    height: 40px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.floating-hearts div:nth-child(2) {
    left: 20%;
    width: 45px;
    height: 45px;
    animation-duration: 15s;
    animation-delay: 1s;
}

.floating-hearts div:nth-child(3) {
    left: 30%;
    width: 38px;
    height: 38px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.floating-hearts div:nth-child(4) {
    left: 40%;
    width: 50px;
    height: 50px;
    animation-duration: 14s;
    animation-delay: 3s;
}

.floating-hearts div:nth-child(5) {
    left: 50%;
    width: 42px;
    height: 42px;
    animation-duration: 11s;
    animation-delay: 4s;
}

.floating-hearts div:nth-child(6) {
    left: 60%;
    width: 48px;
    height: 48px;
    animation-duration: 13s;
    animation-delay: 5s;
}

.floating-hearts div:nth-child(7) {
    left: 70%;
    width: 35px;
    height: 35px;
    animation-duration: 9s;
    animation-delay: 6s;
}

.floating-hearts div:nth-child(8) {
    left: 80%;
    width: 46px;
    height: 46px;
    animation-duration: 16s;
    animation-delay: 7s;
}

.floating-hearts div:nth-child(9) {
    left: 90%;
    width: 39px;
    height: 39px;
    animation-duration: 10s;
    animation-delay: 8s;
}

.floating-hearts div:nth-child(10) {
    left: 5%;
    width: 43px;
    height: 43px;
    animation-duration: 12s;
    animation-delay: 9s;
}

.floating-hearts div:nth-child(11) {
    left: 95%;
    width: 37px;
    height: 37px;
    animation-duration: 11s;
    animation-delay: 10s;
}

/* Определение самой анимации */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg); /* Начинаем без вращения */
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%) rotate(720deg); /* Заканчиваем с полными двумя оборотами */
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
        /* display: flex; */ /* Уже есть */
        /* align-items: center; */ /* Уже есть */
        /* gap: 10px; */ /* Уже есть */
    }

    #username {
        order: 2; /* Перемещаем имя пользователя после аватара */
        margin-left: auto; /* Выравниваем по правому краю */
    }

    .avatar {
        order: 1; /* Аватар первым */
    }

    .action-btn {
        order: 3; /* Кнопка выхода последней */
    }

    h1 {
        width: 100%;
        text-align: center;
    }

    .task-statuses {
        grid-template-columns: 1fr;
    }
    
    .task-form {
        flex-direction: row; /* Изменяем на горизонтальное расположение */
        flex-wrap: wrap; /* Разрешаем перенос элементов */
        justify-content: center;
        gap: 10px; /* Уменьшаем отступ между элементами */
    }
    
    .task-form input {
        flex-basis: 100%; /* Занимает всю ширину */
    }

    .task-form select {
        width: 100%;
        flex-basis: 100%; /* Занимает всю ширину */
    }

    .date-input-wrapper, .time-input-wrapper {
        width: 48%; /* Примерно половина ширины с небольшим отступом */
        flex-grow: 1;
        height: 46px;
    }

    .task-form button {
        flex-basis: 100%; /* Кнопка добавления на всю ширину */
    }
}

/* Добавляем стили для новых плавающих элементов */
.floating-hearts div:nth-child(12) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(13) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(14) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(15) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(16) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(17) {
    /* УДАЛЕНО */
}

.floating-hearts div:nth-child(18) {
    /* УДАЛЕНО */
}

/* Стили для кнопки выхода */
.action-btn {
    padding: 8px 15px;
    background-color: #f44336; /* Красный цвет для кнопки выхода */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
}

.date-input-wrapper, .time-input-wrapper {
    position: relative;
    display: inline-block;
    width: 140px; /* Ширина для даты */
    margin-right: 10px;
}

.time-input-wrapper {
    width: 120px; /* Ширина для времени */
}

.date-input-wrapper input[type="date"],
.time-input-wrapper input[type="time"] {
    width: 100%;
    height: 46px;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    opacity: 1; /* УБЕРИТЕ opacity: 0 */
    position: relative;
    z-index: 1;
}

.date-input-wrapper .date-icon,
.time-input-wrapper .time-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2;
    pointer-events: auto; /* РАЗРЕШИТЕ клики по иконке */
}

.date-input-wrapper:hover .date-icon,
.time-input-wrapper:hover .time-icon,
.date-input-wrapper input[type="date"]:focus + .date-icon,
.time-input-wrapper input[type="time"]:focus + .time-icon {
    color: var(--primary-color);
}
/* Скрыть нативные иконки в input[type="date"] и input[type="time"] */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 3;
}

/* Для Firefox */
@-moz-document url-prefix() {
    .date-icon,
    .time-icon {
        display: none !important;
    }
    
    .date-input-wrapper input[type="date"],
    .time-input-wrapper input[type="time"] {
        padding-right: 15px !important;
    }
}