/**
 * Pool Calculator - Modern UI/UX
 * Theme: Poolvarin.com Professional Blue
 * Author: Pool Calculator Team
 */

/* ========================================
   1. CSS Variables & Theme Colors
   ======================================== */
:root {
    /* Poolvarin Brand Colors */
    --pool-primary: #0066cc;
    --pool-primary-dark: #004d99;
    --pool-primary-light: #00aaff;
    --pool-accent: #0ea5e9;

    /* Neutral Colors */
    --pool-bg: #f8f9fa;
    --pool-white: #ffffff;
    --pool-text: #333333;
    --pool-text-light: #666666;
    --pool-border: #e0e0e0;

    /* Status Colors */
    --pool-success: #28a745;
    --pool-warning: #ffc107;
    --pool-error: #dc3545;

    /* Spacing */
    --pool-radius: 12px;
    --pool-radius-lg: 16px;
    --pool-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --pool-shadow-lg: 0 4px 16px rgba(0, 102, 204, 0.2);
}

/* ========================================
   2. Base Styles
   ======================================== */
.pool-calculator-wrapper {
    font-family: 'Prompt', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
}

.pool-calculator-container {
    background: var(--pool-white);
    border-radius: var(--pool-radius-lg);
    box-shadow: var(--pool-shadow);
    overflow: hidden;
}

/* ========================================
   3. Header Section
   ======================================== */
.pool-header {
    background: linear-gradient(135deg, var(--pool-primary) 0%, var(--pool-accent) 50%, var(--pool-primary-light) 100%);
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    color: var(--pool-white);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gradient animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Water wave effect */
.pool-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2));
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Bubble decorations */
.pool-header::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 6%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 10%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 12%);
    pointer-events: none;
}

.pool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--pool-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.pool-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.pool-header-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* ========================================
   4. Progress Bar
   ======================================== */
.pool-progress-container {
    background: var(--pool-bg);
    padding: 30px;
    border-bottom: 1px solid var(--pool-border);
}

.pool-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.pool-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.pool-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--pool-white);
    border: 3px solid var(--pool-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pool-text-light);
    transition: all 0.3s ease;
}

.pool-progress-step.active .pool-progress-circle {
    background: var(--pool-primary);
    border-color: var(--pool-primary);
    color: var(--pool-white);
    transform: scale(1.1);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
        transform: scale(1.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 102, 204, 0.6);
        transform: scale(1.15);
    }
}

.pool-progress-step.completed .pool-progress-circle {
    background: var(--pool-success);
    border-color: var(--pool-success);
    color: var(--pool-white);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.pool-progress-label {
    font-size: 1.05rem;
    color: var(--pool-text-light);
    font-weight: 500;
}

.pool-progress-step.active .pool-progress-label {
    color: var(--pool-primary);
    font-weight: 700;
}

.pool-progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pool-border);
    z-index: 1;
}

.pool-progress-line-fill {
    height: 100%;
    background: var(--pool-primary);
    transition: width 0.5s ease;
}

/* ========================================
   5. Step Content Area
   ======================================== */
.pool-steps-container {
    padding: 40px 30px;
    min-height: 400px;
}

.pool-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.pool-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pool-step-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pool-text);
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pool-help-btn {
    background: transparent;
    border: none;
    color: var(--pool-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pool-help-btn:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: scale(1.1);
}

.pool-step-subtitle {
    font-size: 1.2rem;
    color: var(--pool-text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* ========================================
   6. Input Fields
   ======================================== */
.pool-input-group {
    margin-bottom: 25px;
}

.pool-input-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pool-text);
    margin-bottom: 10px;
}

.pool-input-label i {
    color: var(--pool-primary);
    margin-right: 8px;
}

.pool-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.25rem;
    border: 2px solid var(--pool-border);
    border-radius: var(--pool-radius);
    transition: all 0.3s ease;
    font-family: inherit;
}

.pool-input:focus {
    outline: none;
    border-color: var(--pool-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.pool-input-hint {
    font-size: 0.85rem;
    color: var(--pool-text-light);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pool-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ========================================
   7. Selection Cards
   ======================================== */
.pool-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pool-card {
    background: var(--pool-white);
    border: 2px solid var(--pool-border);
    border-radius: var(--pool-radius);
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pool-card:hover::before {
    opacity: 1;
}

.pool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.2);
    border-color: var(--pool-primary);
}

.pool-card.selected {
    border-color: var(--pool-primary);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.pool-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--pool-success);
    border-radius: 50%;
    color: var(--pool-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pool-card-icon {
    font-size: 3rem;
    color: var(--pool-primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.pool-card:hover .pool-card-icon {
    transform: scale(1.1);
}

.pool-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pool-text);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.pool-card-description {
    font-size: 1.05rem;
    color: var(--pool-text-light);
    line-height: 1.6;
}

.pool-card-checkmark {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--pool-success);
    border-radius: 50%;
    color: var(--pool-white);
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pool-card.selected .pool-card-checkmark {
    display: flex;
}

/* ========================================
   8. Buttons
   ======================================== */
.pool-btn {
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--pool-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pool-btn-primary {
    background: linear-gradient(135deg, var(--pool-primary) 0%, var(--pool-primary-dark) 100%);
    color: var(--pool-white);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.pool-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.pool-btn-primary:active {
    transform: translateY(0);
}

.pool-btn-secondary {
    background: var(--pool-white);
    color: var(--pool-primary);
    border: 2px solid var(--pool-primary);
}

.pool-btn-secondary:hover {
    background: var(--pool-primary);
    color: var(--pool-white);
}

.pool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.pool-btn-group {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--pool-border);
}

/* ========================================
   9. Results Section
   ======================================== */
.pool-results {
    padding: 40px 30px;
    background: var(--pool-bg);
}

.pool-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pool-stat-card {
    background: var(--pool-white);
    padding: 25px;
    border-radius: var(--pool-radius);
    text-align: center;
    border: 2px solid var(--pool-border);
}

.pool-stat-label {
    font-size: 0.9rem;
    color: var(--pool-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pool-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pool-primary);
}

.pool-stat-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--pool-text-light);
}

.pool-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pool-product-card {
    background: var(--pool-white);
    border-radius: var(--pool-radius);
    padding: 20px;
    border: 2px solid var(--pool-border);
    transition: all 0.3s ease;
    position: relative;
    /* Added for badge positioning */
}

.pool-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pool-shadow-lg);
}

.pool-product-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--pool-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pool-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pool-text);
    margin-bottom: 10px;
}


.pool-product-name {
    font-size: 1rem;
    color: var(--pool-primary);
    font-weight: 600;
    padding: 12px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
}

.pool-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.pool-btn-outline {
    background: transparent;
    color: var(--pool-primary);
    border: 2px solid var(--pool-primary);
    padding: 10px 16px;
    font-size: 0.9rem;
}

.pool-btn-outline:hover {
    background: var(--pool-primary);
    color: var(--pool-white);
}

/* Quantity Badge */
.pool-quantity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--pool-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    z-index: 10;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* ========================================
   10. Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .pool-header h1 {
        font-size: 1.8rem;
    }

    .pool-header p {
        font-size: 0.95rem;
    }

    .pool-progress-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .pool-progress-label {
        font-size: 0.75rem;
    }

    .pool-steps-container {
        padding: 30px 20px;
    }

    .pool-step-title {
        font-size: 1.5rem;
    }

    .pool-cards-grid {
        grid-template-columns: 1fr;
    }

    .pool-btn-group {
        flex-direction: column;
    }

    .pool-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pool-calculator-wrapper {
        padding: 10px;
    }

    .pool-header {
        padding: 30px 20px;
    }

    .pool-header h1 {
        font-size: 1.5rem;
    }

    .pool-input-grid {
        grid-template-columns: 1fr;
    }

    .pool-stat-value {
        font-size: 2rem;
    }
}

/* ========================================
   11. Utilities & Loading
   ======================================== */
.hidden {
    display: none !important;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

#loadingOverlay.hidden {
    display: none !important;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--pool-border);
    border-top-color: var(--pool-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Color utilities */
.text-blue-600 {
    color: var(--pool-primary);
}

.text-emerald-600 {
    color: var(--pool-success);
}

.text-yellow-400 {
    color: #fbbf24;
}

.text-yellow-500 {
    color: #eab308;
}

.text-red-600 {
    color: var(--pool-error);
}

.text-purple-600 {
    color: #9333ea;
}

.text-amber-600 {
    color: #d97706;
}

.text-white {
    color: white;
}

.bg-blue-100 {
    background-color: rgba(0, 102, 204, 0.1);
}

.bg-emerald-100 {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-amber-100 {
    background-color: rgba(217, 119, 6, 0.1);
}

.bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.1);
}

.bg-red-100 {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-purple-100 {
    background-color: rgba(147, 51, 234, 0.1);
}

.bg-green-600 {
    background-color: var(--pool-success);
}

.bg-emerald-600 {
    background-color: #059669;
}

/* Spacing utilities */
.mr-2 {
    margin-right: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.w-full {
    width: 100%;
}

.text-sm {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

/* Hover effects */
.hover\:bg-emerald-700:hover {
    background-color: #047857;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Transition */
.transition-all {
    transition: all 0.3s ease;
}

/* Special button styling */
.pool-btn.bg-emerald-600 {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pool-btn.bg-emerald-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Quotation Modal Enhancement */
#quotationModal>div {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product card icon backgrounds */
.pool-product-icon.bg-blue-100 {
    background: rgba(0, 102, 204, 0.1);
}

.pool-product-icon.bg-amber-100 {
    background: rgba(217, 119, 6, 0.1);
}

.pool-product-icon.bg-emerald-100 {
    background: rgba(5, 150, 105, 0.1);
}

.pool-product-icon.bg-yellow-100 {
    background: rgba(234, 179, 8, 0.1);
}

.pool-product-icon.bg-red-100 {
    background: rgba(220, 53, 69, 0.1);
}

.pool-product-icon.bg-purple-100 {
    background: rgba(147, 51, 234, 0.1);
}

/* ========================================
   12. Quotation & Modal Styles
   ======================================== */
.pool-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.pool-modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Quotation Specifics */
.pool-modal-header {
    background: linear-gradient(90deg, #00aaff, #0066cc);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.pool-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pool-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pool-modal-close:hover {
    opacity: 1;
}

.pool-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.quotation-list {
    margin-bottom: 20px;
}

.quotation-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.quotation-item-icon {
    font-size: 2rem;
    color: #333;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.quotation-item-details {
    flex: 1;
}

.quotation-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.quotation-item-sku {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.quotation-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.quotation-footer {
    padding-top: 10px;
}

.quotation-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.quotation-total span {
    font-size: 1.1rem;
    color: #555;
}

.quotation-total .total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Success Popup specific */
.success-popup {
    max-width: 400px;
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
}

.success-icon-wrapper {
    margin-bottom: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e6f4ea;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 2.5rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.success-message {
    margin-bottom: 30px;
}

.success-message p {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 5px 0;
}

.success-message .sub-message {
    font-size: 0.95rem;
    color: #666;
}

.pool-btn-success-green {
    background: #28a745;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.pool-btn-success-green:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ========================================
   Help Modal Styles
   ======================================== */
.pool-help-btn {
    background: transparent;
    border: none;
    color: var(--pool-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.pool-help-btn:hover {
    transform: scale(1.1);
    color: var(--pool-primary-dark);
}

.pool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pool-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.pool-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.pool-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.pool-modal:not(.hidden) .pool-modal-content {
    transform: translateY(0);
}

.pool-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.pool-modal-close:hover {
    color: #333;
}

.pool-modal-icon-lg {
    font-size: 3.5rem;
    color: var(--pool-primary);
    margin-bottom: 20px;
}

.pool-help-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pool-help-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--pool-primary);
}

.pool-help-item .help-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pool-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pool-help-item .help-content h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.pool-help-item .help-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* =========================================
   Sanitization Modal Styles
   ========================================= */
.sanitization-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sanitization-card {
    background: white;
    border: 2px solid #e5e7eb;
    /* gray-200 */
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sanitization-card:hover {
    border-color: #3b82f6;
    /* blue-500 */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sanitization-card.selected {
    border-color: #2563eb;
    /* blue-600 */
    background-color: #eff6ff;
    /* blue-50 */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.sanitization-icon {
    font-size: 2.5rem;
    color: #4b5563;
    /* gray-600 */
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.sanitization-card:hover .sanitization-icon,
.sanitization-card.selected .sanitization-icon {
    color: #2563eb;
    /* blue-600 */
}

.sanitization-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    /* gray-800 */
    margin-bottom: 0.5rem;
}

.sanitization-desc {
    font-size: 0.875rem;
    color: #6b7280;
    /* gray-500 */
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sanitization-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sanitization-card {
        min-height: auto;
        padding: 1.25rem;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }

    .sanitization-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
        margin-right: 1rem;
    }
}