/* ============================================================
   TRASH MODAL - Стили для корзины удалённых карточек
   ============================================================ */

.trash-modal {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.trash-filters {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.trash-filters .form-group {
    flex: 1;
    margin: 0;
}

.trash-filters label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.trash-list {
    overflow-y: auto;
    padding: 0.5rem 0;
    max-height: calc(90vh - 250px);
}

/* Пустая корзина */
.trash-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.trash-empty p {
    font-size: 1.125rem;
    margin: 0;
}

/* Ошибка */
.trash-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #dc3545;
}

.trash-error p {
    font-size: 1rem;
    margin: 0;
}

/* Карточка в корзине */
.trash-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.trash-item:hover {
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Заголовок карточки */
.trash-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.trash-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
    flex: 1;
}

.trash-item-priority {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Приоритеты */
.trash-item.priority-low .trash-item-priority {
    background: #d1ecf1;
    color: #0c5460;
}

.trash-item.priority-medium .trash-item-priority {
    background: #fff3cd;
    color: #856404;
}

.trash-item.priority-high .trash-item-priority {
    background: #f8d7da;
    color: #721c24;
}

/* Описание */
.trash-item-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

/* Метаданные */
.trash-item-meta {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.trash-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.trash-meta-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.trash-meta-label {
    font-weight: 500;
    color: #495057;
}

.trash-meta-value {
    color: #212529;
}

.text-warning {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Действия */
.trash-item-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-restore,
.btn-permanent-delete {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-restore {
    background: #28a745;
    color: white;
}

.btn-restore:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-permanent-delete {
    background: #dc3545;
    color: white;
}

.btn-permanent-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .trash-modal {
        width: 95%;
        max-height: 95vh;
    }

    .trash-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trash-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .trash-item-actions {
        flex-direction: column;
    }

    .trash-list {
        max-height: calc(95vh - 300px);
    }
}

/* ============================================================
   BULK DELETE - Массовое удаление
   ============================================================ */

.column-actions {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.btn-bulk-delete {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bulk-delete:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.date-range-buttons,
.date-range-buttons-trash {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.date-preset,
.date-preset-trash {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.bulk-delete-preview {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.bulk-delete-preview p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
}

.bulk-delete-preview strong {
    color: #dc3545;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .date-range-buttons,
    .date-range-buttons-trash {
        flex-direction: column;
    }

    .date-preset,
    .date-preset-trash {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .trash-item {
        padding: 0.75rem;
    }

    .trash-item-title {
        font-size: 1rem;
    }

    .trash-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
