
/**
 * Spacare Spa Calculator CSS
 * Modern, responsiv design med grön färgpalett
 */

.spa-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.1);
}

.spa-calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.spa-calculator-header h2 {
    color: #059669;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.spa-calculator-header p {
    color: #6b7280;
    font-size: 1.1em;
    margin: 0;
}

.calculator-step {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.calculator-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.calculator-step h3 {
    color: #047857;
    font-size: 1.5em;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 3px solid #d1fae5;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 1.1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group small {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-next,
.btn-calculate {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-next:hover,
.btn-calculate:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-back {
    background: #f3f4f6;
    color: #374151;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-restart {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-restart:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
}

/* Resultat styling */
.chemical-recommendation {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.chemical-recommendation h4 {
    color: #047857;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.chemical-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #059669;
    margin: 10px 0;
}

.chemical-instruction {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-top: 15px;
}

.warnings {
    margin-bottom: 25px;
}

.warning-item {
    background: #fef3c7;
    border: 2px solid #fcd34d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: #92400e;
}

.maintenance-tips {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.maintenance-tips h4 {
    color: #1d4ed8;
    margin-top: 0;
}

.maintenance-tips ul {
    list-style: none;
    padding: 0;
}

.maintenance-tips li {
    padding: 5px 0;
    color: #1e40af;
}

.maintenance-tips li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
}

/* Laddning */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

/* Responsiv design */
@media (max-width: 768px) {
    .spa-calculator-container {
        padding: 15px;
        margin: 10px;
    }
    
    .calculator-step {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .spa-calculator-header h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .spa-calculator-container {
        padding: 10px;
    }
    
    .calculator-step {
        padding: 15px;
    }
    
    .spa-calculator-header h2 {
        font-size: 1.8em;
    }
}
