/* wwwroot/css/service-tiles.css */
.service-tiles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tiles-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .filter-btn.active {
        background: #1976D2;
        border-color: #1976D2;
        color: #fff;
    }

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tile {
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

    .tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

.tile-active {
    box-shadow: 0 4px 12px rgba(25,118,210,0.35);
}

.tile-icon {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-svg {
    width: 32px;
    height: 32px;
}

.tile-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tile-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.tile-desc {
    font-size: 0.8rem;
    color: #666;
}

/* Fade container */
.fade-container.fade-out {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.fade-container.fade-in {
    opacity: 1;
    transition: opacity 0.15s ease-in;
}

.tile {
    border-radius: 0.75rem;
    padding: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
    transition: all .2s ease;
}

    .tile:hover {
        transform: translateY(-2px);
    }

.tile-svg {
    width: 32px;
    height: 32px;
}

.tile {
    position: relative;
    overflow: hidden;
}

    .tile::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        width: 5px;
        height: 5px;
        background: rgba(0,0,0,0.15);
        transform: scale(0);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.8s ease;
    }

    .tile:active::after {
        transform: scale(40);
        opacity: 1;
        left: var(--ripple-x);
        top: var(--ripple-y);
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--modal-bg);
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.close-btn {
    margin-top: 1rem;
}

