/* Comfort Adjustment Calculator Specific Styles */

/* Adjustment Summary Display */
.adjustment-summary {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #10b981;
}

.summary-header {
    text-align: center;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.summary-subtitle {
    font-size: 14px;
    color: #064e3b;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.summary-card.immediate {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.summary-card.moderate {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.summary-card.comprehensive {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.summary-card.optimal {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.summary-card.immediate .summary-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-card.moderate .summary-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.summary-card.comprehensive .summary-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.summary-card.optimal .summary-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-card.immediate .summary-value {
    color: #dc2626;
}

.summary-card.moderate .summary-value {
    color: #d97706;
}

.summary-card.comprehensive .summary-value {
    color: #1d4ed8;
}

.summary-card.optimal .summary-value {
    color: #059669;
}

.summary-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Recommended Solutions */
.recommended-solutions {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.solution-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.solution-item:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.solution-item.priority-high {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.solution-item.priority-medium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.solution-item.priority-low {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.solution-info {
    flex: 1;
}

.solution-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.solution-category {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.solution-item.priority-high .solution-category {
    background: #fee2e2;
    color: #dc2626;
}

.solution-item.priority-medium .solution-category {
    background: #fef3c7;
    color: #d97706;
}

.solution-item.priority-low .solution-category {
    background: #dcfce7;
    color: #059669;
}

.solution-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-align: right;
}

.solution-details {
    margin: 16px 0;
}

.solution-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.solution-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 12px;
}

.solution-effectiveness {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.effectiveness-label {
    font-size: 14px;
    color: #64748b;
}

.effectiveness-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 12px;
    overflow: hidden;
}

.effectiveness-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.effectiveness-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Cost Analysis */
.cost-analysis {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cost-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.cost-item:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cost-category {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.cost-total {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-label {
    font-size: 14px;
    color: #64748b;
}

.cost-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Solution Types Sidebar */
.solution-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type-item {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.type-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.type-item.immediate {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.type-item.moderate {
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
    border-color: #f59e0b;
}

.type-item.comprehensive {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.type-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.type-item.immediate .type-name {
    color: #dc2626;
}

.type-item.moderate .type-name {
    color: #d97706;
}

.type-item.comprehensive .type-name {
    color: #1d4ed8;
}

.type-description {
    font-size: 12px;
    color: #64748b;
}

/* Effectiveness List */
.effectiveness-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.effectiveness-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.effectiveness-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.solution-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.effectiveness-rating {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    background: #dcfce7;
    padding: 4px 8px;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cost-breakdown {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .adjustment-summary {
        padding: 20px;
    }
    
    .recommended-solutions {
        padding: 20px;
    }
    
    .cost-analysis {
        padding: 20px;
    }
    
    .solution-item {
        padding: 16px;
    }
    
    .cost-item {
        padding: 16px;
    }
    
    .summary-value {
        font-size: 20px;
    }
    
    .solution-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .solution-price {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .summary-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .adjustment-summary {
        padding: 16px;
    }
    
    .recommended-solutions {
        padding: 16px;
    }
    
    .cost-analysis {
        padding: 16px;
    }
    
    .solution-item {
        padding: 12px;
    }
    
    .cost-item {
        padding: 12px;
    }
    
    .type-item {
        padding: 10px;
    }
    
    .effectiveness-item {
        padding: 10px;
    }
    
    .solution-benefits {
        flex-direction: column;
        gap: 6px;
    }
    
    .effectiveness-bar {
        margin: 0 8px;
    }
}
