/**
 * MRS. NUDGELY - WELLNESS & LOAN TRACKING STYLES
 * ================================================
 */

/* ==================== LOAN TRACKING STYLES ==================== */

.loan-status-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.loan-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.loan-type-badge {
    background: #5a5452;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.loan-progress {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.loan-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.loan-status-message {
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.loan-status-message.status-on_track {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.loan-status-message.status-attention {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #f57c00;
}

.loan-status-message.status-clear_to_close {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #2e7d32;
    font-weight: 600;
}

.loan-milestones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.loan-milestone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}

.loan-milestone.completed {
    background: #e8f5e9;
}

.loan-milestone.completed .milestone-status {
    color: #2e7d32;
}

.loan-milestone.in-progress {
    background: #e3f2fd;
    border-left: 3px solid #1976d2;
}

.loan-milestone.issue {
    background: #ffebee;
    border-left: 3px solid #c62828;
}

.milestone-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.milestone-name {
    flex: 1;
    color: #333;
}

.milestone-status {
    font-size: 14px;
    color: #999;
}

.loan-conditions {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.loan-conditions h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.condition-item.status-cleared {
    color: #2e7d32;
}

.condition-item.status-pending {
    color: #666;
}

.condition-item.status-submitted {
    color: #1976d2;
}

.appraisal-gap-alert {
    background: #ffebee;
    border: 2px solid #c62828;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    color: #c62828;
    font-weight: 600;
}

.gap-details {
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
    color: #666;
}

.loan-lender-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.loan-lender-contact button {
    background: #5a5452;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.loan-lender-contact button:hover {
    background: #4a4442;
}

.last-contact {
    font-size: 11px;
    color: #888;
}

/* ==================== WELLNESS STYLES ==================== */

.wellness-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.wellness-score {
    text-align: center;
    margin-bottom: 20px;
}

.wellness-score .score-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wellness-score .score-value {
    font-size: 48px;
    font-weight: 300;
    margin: 10px 0;
}

.wellness-score.healthy .score-value {
    color: #2e7d32;
}

.wellness-score.caution .score-value {
    color: #f57c00;
}

.wellness-score.warning .score-value {
    color: #c62828;
}

.score-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.wellness-streak-badge {
    text-align: center;
    font-size: 14px;
    color: #f57c00;
    margin-bottom: 15px;
}

.wellness-alerts {
    margin-bottom: 15px;
}

.wellness-alert {
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}

.wellness-alert.warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #f57c00;
}

.wellness-alert.critical {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.wellness-message {
    background: #f5f5f0;
    padding: 15px;
    border-radius: 4px;
    font-style: italic;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.message-source {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    font-style: normal;
}

.wellness-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wellness-actions button {
    background: #5a5452;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.wellness-actions button:hover {
    background: #4a4442;
}

/* ==================== WELLNESS CHECK-IN MODAL ==================== */

.wellness-checkin-modal {
    max-width: 500px;
    margin: 0 auto;
}

.wellness-header {
    text-align: center;
    margin-bottom: 25px;
}

.wellness-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.wellness-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.wellness-header .wellness-streak {
    display: inline-block;
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.wellness-form {
    margin-bottom: 20px;
}

.wellness-question {
    margin-bottom: 25px;
}

.wellness-question-text {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.wellness-scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wellness-scale-option {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.wellness-scale-option:hover {
    border-color: var(--option-color, #5a5452);
    background: #f5f5f5;
}

.wellness-scale-option.selected {
    border-color: var(--option-color, #5a5452);
    background: var(--option-color, #5a5452);
    color: #fff;
}

.wellness-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wellness-select-option {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.wellness-select-option:hover {
    border-color: #5a5452;
    background: #f5f5f5;
}

.wellness-select-option.selected {
    border-color: #5a5452;
    background: #5a5452;
    color: #fff;
}

.wellness-text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.wellness-text-input:focus {
    outline: none;
    border-color: #5a5452;
}

.wellness-submit {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.wellness-submit-btn {
    background: #5a5452;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.wellness-submit-btn:hover {
    background: #4a4442;
}

.wellness-skip-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.wellness-skip-btn:hover {
    color: #333;
    text-decoration: underline;
}

.wellness-footer {
    text-align: center;
    font-size: 12px;
    color: #888;
}

.wellness-footer p {
    margin: 0;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 600px) {
    .wellness-scale {
        flex-direction: column;
    }

    .wellness-scale-option {
        min-width: 100%;
    }

    .loan-lender-contact {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
