/* Debt-to-Income Calculator Specific Styles */

/* Section Headers */
.section-header {
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #bae6fd;
}

.section-header:first-of-type {
    margin-top: 0;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #003049;
    margin: 0;
}

/* DTI Results Display */
.dti-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* DTI Ratio Cards */
.dti-card {
    background: linear-gradient(to bottom right, #003049, #00436b);
    border-radius: 8px;
    padding: 20px;
    color: white;
}

.dti-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dti-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #bae6fd;
}

.dti-card-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dti-card-badge.excellent {
    background-color: #16a34a;
    color: white;
}

.dti-card-badge.good {
    background-color: #22c55e;
    color: white;
}

.dti-card-badge.fair {
    background-color: #eab308;
    color: #1a1a1a;
}

.dti-card-badge.high {
    background-color: #f97316;
    color: white;
}

.dti-card-badge.critical {
    background-color: #dc2626;
    color: white;
}

.dti-percentage {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.dti-description {
    font-size: 14px;
    color: #bae6fd;
    margin-bottom: 16px;
}

/* Progress Bar */
.dti-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dti-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dti-progress-bar.excellent {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.dti-progress-bar.good {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.dti-progress-bar.fair {
    background: linear-gradient(90deg, #eab308, #f59e0b);
}

.dti-progress-bar.high {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.dti-progress-bar.critical {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.dti-thresholds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* Breakdown Section */
.dti-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(186, 230, 253, 0.2);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #bae6fd;
}

.breakdown-row:last-child {
    margin-bottom: 0;
}

.breakdown-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(186, 230, 253, 0.3);
    font-weight: 600;
    color: white;
}

/* Qualification Status Section */
.qualification-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.qualification-title {
    font-size: 18px;
    font-weight: 600;
    color: #003049;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #bae6fd;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.qualification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qualification-icon.qualified {
    background: #dcfce7;
    color: #16a34a;
}

.qualification-icon.conditional {
    background: #fef9c3;
    color: #ca8a04;
}

.qualification-icon.unlikely {
    background: #fee2e2;
    color: #dc2626;
}

.qualification-icon svg {
    width: 14px;
    height: 14px;
}

.qualification-details {
    flex: 1;
    min-width: 0;
}

.qualification-loan-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.qualification-status {
    font-size: 12px;
    color: #666;
}

/* Recommended Housing Section */
.recommended-section {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
}

.recommended-title {
    font-size: 16px;
    font-weight: 600;
    color: #003049;
    margin-bottom: 12px;
}

.recommended-amount {
    font-size: 32px;
    font-weight: 700;
    color: #003049;
    margin-bottom: 8px;
}

.recommended-description {
    font-size: 14px;
    color: #666;
}

.recommended-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #bae6fd;
}

.recommended-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #003049;
}

.recommended-row:last-child {
    margin-bottom: 0;
}

/* Status Colors for Results Text */
.status-excellent {
    color: #16a34a;
}

.status-good {
    color: #22c55e;
}

.status-fair {
    color: #eab308;
}

.status-high {
    color: #f97316;
}

.status-critical {
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .section-header h2 {
        font-size: 16px;
    }

    .dti-percentage {
        font-size: 36px;
    }

    .qualification-grid {
        grid-template-columns: 1fr;
    }

    .recommended-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .dti-card {
        padding: 16px;
    }

    .dti-percentage {
        font-size: 32px;
    }

    .dti-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .qualification-section {
        padding: 16px;
    }

    .recommended-section {
        padding: 16px;
    }
}
