/* CSS стили для страницы статуса задач - обновленный дизайн */


.refresh-btn {
    color: #333;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #f0f7ff;
    border-color: #cfd8e3;
}

.refresh-btn:disabled {
    background: #e9e9e9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.refresh-icon {
    font-size: 1.1rem;
    animation: none;
    transition: transform 0.3s ease;
}

.refresh-btn.refresh-loading .refresh-icon {
    animation: spin 1s linear infinite;
}

.refresh-btn.refresh-loading {
    opacity: 0.7;
    cursor: not-allowed;
}







.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {   
    background: #dddcdc;
}

.brief-btn {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brief-btn:hover {
    background: #f0f7ff;
    border-color: #cfd8e3;
    color: #333;
}

.brief-icon {
    font-size: 1.1em;
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-progress {
    margin-top: 1rem;
    width: 300px;
    max-width: 80%;
    position: relative;
    z-index: 1001;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00154C, #3498db);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Сообщение об ошибке */
.error {
    background: #fee;
    color: #c53030;
    padding: 20px;
    border-radius: 12px;
    margin: 20px;
    border: 1px solid #fed7d7;
    text-align: center;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Контейнер задач */
.tasks-container {
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Колонки задач */
.status-column {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* .status-column:hover {
    transform: translateY(-4px);
} */

.column-header {
    padding: 20px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-header.new {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.column-header.work {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.task-count {
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 800;
    color: #00154C; 
}

/* Список задач */
.tasks-list {
    padding: 0;
    min-height: 0px;
    /* Убрали скролл для лучшего отображения всех задач */
}

/* Индикатор загрузки в колонке */
.column-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    text-align: center;
    min-height: 150px;
}

.column-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(102, 102, 102, 0.3);
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.column-loading-text {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Стиль для пустых колонок - объединенный подход */
.tasks-list:empty::before,
.tasks-list.empty-column::before {
    content: "Нет задач";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #bdc3c7;
    font-size: 1rem;
    font-style: italic;
}

.tasks-list.empty-column {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

/* Карточка задачи */
.task-card {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.task-card:hover {
    background: #f8f9fa;
    padding-left: 24px;
}

.task-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.4;
    padding: 0.2rem 0;
    border-radius: 0.3rem;
}

/* Убрали hover для названия задачи - теперь копирование только по клику на всю карточку */

.task-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.task-deadline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #666;
}

.deadline-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Стикеры задач */
.task-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-sticker {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

.sticker-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Последнее обновление */
.last-updated {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 14px;
    margin-top: 2rem;
}

.update-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 0.4rem;
    color: #3498db;
    font-size: 0.8rem;
}



/* Адаптивность */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }



    .task-card:hover {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {


    .refresh-btn {
        padding: 10px 16px;
        font-size: 16px;
    }
}

/* Анимации появления */

@keyframes taskAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    40% {
        opacity: 0.6;
        transform: translateY(-8px) scale(1.05);
    }
    80% {
        opacity: 0.9;
        transform: translateY(2px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Плавные анимации для элементов статуса */
.tasks-container {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.loading-indicator {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.error {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Анимация для кнопок статуса */
.refresh-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.refresh-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brief-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.brief-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.task-card {
    opacity: 1; /* Обычные задачи сразу видимы */
    transform: translateY(0) scale(1); /* Установим базовое состояние */
}

.task-card-new {
    opacity: 0;
    animation: taskAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Удаляем класс task-card-new после завершения анимации */
.task-card-new.task-animation-complete {
    animation: none;
    opacity: 1;
    transform: translateY(0) scale(1);
}
