/**
 * Style dla integracji Qupto z tabelą mieszkań
 */

/* Powiadomienie o aktywnym filtrze etapu */
.qupto-filter-notification {
    background: #2b4c8c;
    background: linear-gradient(135deg, #2b4c8c 0%, #3a5fa0 100%);
    color: #fff;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(43, 76, 140, 0.2);
    animation: slideDown 0.3s ease-out;
}

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

.qupto-filter-notification .notification-text {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qupto-filter-notification strong {
    font-weight: 600;
    color: #ffd700;
}

.qupto-filter-notification .notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: 1;
}

.qupto-filter-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Przycisk resetu filtra etapu */
.qupto-reset-filter {
    background: #2b4c8c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.qupto-reset-filter:hover {
    background: #3a5fa0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(43, 76, 140, 0.3);
}

/* Wyróżnienie etapu w tabeli gdy filtr jest aktywny */
.qupto-filter-active .flats-table-wrapper {
    border: 2px solid #2b4c8c;
    border-radius: 8px;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(43, 76, 140, 0.02), transparent);
}

/* Animacja ładowania podczas filtrowania */
.qupto-filtering {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.qupto-filtering::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2b4c8c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsywność */
@media (max-width: 768px) {
    .qupto-filter-notification {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .qupto-filter-notification .notification-text {
        font-size: 14px;
    }
    
    .qupto-reset-filter {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
    }
}