/* ============================================================
   FILTERS & SEARCH STYLES - Стили поиска и фильтров
   ============================================================ */

/* ============================================================
   Поиск в header
   ============================================================ */
.search-container {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    outline: none;
    border-color: #2196F3;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    width: 350px;
}

.search-input::placeholder {
    color: #999;
}

/* ============================================================
   Панель фильтров
   ============================================================ */
.filters-toolbar {
    background: #f5f5f5;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.filters-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Чекбокс фильтра */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox:hover {
    color: #2196F3;
}

/* Селект фильтра */
.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.filter-select:hover {
    border-color: #2196F3;
}

/* Кнопка сброса фильтров */
.btn-secondary {
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #2196F3;
    color: #2196F3;
}

/* ============================================================
   Уведомления Banner
   ============================================================ */
.notification-banner {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-banner.overdue {
    background: #ffebee;
    color: #c62828;
}

.notification-banner.approaching {
    background: #fff3e0;
    color: #e65100;
}

.notification-banner.hidden {
    display: none;
}

/* ============================================================
   Адаптивность для маленьких экранов
   ============================================================ */
@media (max-width: 768px) {
    .search-input {
        width: 200px;
    }

    .search-input:focus {
        width: 250px;
    }

    .filters-toolbar {
        padding: 1rem;
    }

    .filters-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .notification-banner {
        padding: 0.75rem 1rem;
        font-size: 0.938rem;
    }
}

/* ============================================================
   Анимации
   ============================================================ */
.notification-banner {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
