/* Cost Per Night Calculator Specific Styles */

/* Cost Breakdown Visualization */
.cost-breakdown {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
}

.cost-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 16px 0;
    position: relative;
}

.cost-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        #10b981 0deg 180deg,
        #3b82f6 180deg 270deg,
        #f59e0b 270deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cost-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.cost-value {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.cost-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.purchase {
    background: #10b981;
}

.legend-color.additional {
    background: #3b82f6;
}

.legend-color.maintenance {
    background: #f59e0b;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.checkbox-item:hover {
    border-color: #2563eb;
    background: #f1f5f9;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    accent-color: #2563eb;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #2563eb;
    font-weight: 500;
}

.primary-result {
    background: linear-gradient(135deg, #eff6ff, #f1f5f9);
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

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

.result-header h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Roboto Mono', monospace;
}

.cost-breakdown {
    margin: 20px 0;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.breakdown-chart {
    height: 120px;
    background: linear-gradient(90deg, 
        #2563eb 0% 60%, 
        #60a5fa 60% 80%, 
        #93c5fd 80% 90%, 
        #dbeafe 90% 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 12px;
}

.breakdown-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    font-size: 12px;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breakdown-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.detail-label {
    font-weight: 500;
    color: #374151;
}

.detail-value {
    font-weight: 600;
    color: #2563eb;
    font-family: 'Roboto Mono', monospace;
}

.value-analysis {
    margin: 32px 0;
}

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

.analysis-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

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

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

.analysis-card.good {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #f1f5f9);
}

.analysis-card.average {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

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

.analysis-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.analysis-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
}

.analysis-card.excellent .analysis-value {
    color: #065f46;
}

.analysis-card.good .analysis-value {
    color: #1e40af;
}

.analysis-card.average .analysis-value {
    color: #92400e;
}

.analysis-card.poor .analysis-value {
    color: #dc2626;
}

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

.comparison-results {
    margin: 32px 0;
}

.comparison-chart {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
}

.comparison-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.comparison-item:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

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

.comparison-name {
    font-weight: 600;
    color: #1e293b;
}

.comparison-cost {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Roboto Mono', monospace;
}

.comparison-item.winner .comparison-cost {
    color: #065f46;
}

.value-recommendations {
    margin: 32px 0;
}

.recommendations-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.recommendation-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

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

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recommendation-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.recommendation-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.value-guide {
    space-y: 12px;
}

.benchmark-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.benchmark-item strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.benchmark-item span {
    display: block;
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    font-family: 'Roboto Mono', monospace;
}

.benchmark-item small {
    color: #64748b;
    font-size: 12px;
}

.lifespan-factors {
    space-y: 12px;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.factor-item i {
    color: #2563eb;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.factor-item span {
    color: #374151;
    font-size: 13px;
}

.cost-factors {
    space-y: 12px;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.factor-name {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.factor-impact {
    font-weight: 600;
    color: #2563eb;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .comparison-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
