/**
 * Sanitization Modal Styles
 * Modal for selecting sanitization system type
 */

/* Modal Overlay */
.pool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pool-modal.hidden {
    display: none;
}

.pool-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.pool-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.pool-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.pool-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

/* Modal Header */
.pool-modal-header {
    padding: 40px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pool-modal-icon-lg {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pool-modal-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.pool-modal-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Modal Body */
.pool-modal-body {
    padding: 30px;
}

/* Sanitization Options Grid */
.sanitization-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* Sanitization Card */
.sanitization-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sanitization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sanitization-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.sanitization-card:hover::before {
    transform: scaleX(1);
}

.sanitization-card:active {
    transform: translateY(-2px);
}

/* Sanitization Icon */
.sanitization-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.sanitization-card:hover .sanitization-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Sanitization Title & Description */
.sanitization-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.sanitization-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .sanitization-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pool-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .pool-modal-header {
        padding: 30px 20px 15px;
    }

    .pool-modal-body {
        padding: 20px;
    }

    .sanitization-card {
        padding: 25px 15px;
    }
}