﻿/* mortgage-pages.css */
/* Styles the MortgageApp "/" page to match the MortgagePayoff card look.
   Works with your current mix of Bootstrap + MudBlazor + InputNumber/InputSelect.
*/

/* ---- Page shell ---- */
.mortgage-page {
    padding-bottom: 32px;
}

.mortgage-shell {
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    background: #fff;
}

/* Keep your form column from stretching too wide on large screens */
.mortgage-page .col-md-8.col-lg-6 {
    max-width: 560px;
}

/* ---- Shared card base ---- */
.mortgage-section {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-left-width: 6px;
    border-left-color: transparent;
    background: #fff;
}

/* This matches your existing MortgagePayoff CSS naming */
.mortgage-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-left-width: 6px;
}

.mortgage-card--info {
    border-left-color: #6a1b9a; /* purple */
    background: rgba(106, 27, 154, 0.04);
}

.extra-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-left-width: 6px;
    border-left-color: transparent;
}

.extra-card--monthly {
    border-left-color: #3f51b5; /* indigo */
    background: rgba(63, 81, 181, 0.04);
}

.extra-card--principal {
    border-left-color: #2e7d32; /* green */
    background: rgba(46, 125, 50, 0.04);
}

/* ---- Labels and section titles ---- */
.mortgage-page h6 {
    font-weight: 700;
    margin-top: 4px;
}

.mortgage-page .form-label {
    font-weight: 600;
    margin-bottom: 6px;
}

/* ---- Make Bootstrap inputs look closer to MudBlazor outlined inputs ---- */
.mortgage-page .form-control,
.mortgage-page .form-select {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.18);
    padding: 10px 12px;
    box-shadow: none;
}

    .mortgage-page .form-control:focus,
    .mortgage-page .form-select:focus {
        border-color: rgba(106, 27, 154, 0.55);
        box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.12);
    }

/* Make the built-in validation messages cleaner */
.mortgage-page .validation-message,
.mortgage-page .field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
}

/* ---- MudNumericField spacing so it matches Bootstrap fields ---- */
.mortgage-page .mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

/* Your mb-3 divs define spacing; make it consistent */
.mortgage-page .mb-3 {
    margin-bottom: 14px !important;
}

/* Give Mud outlined inputs a subtle surface similar to the other app */
.mortgage-page .mud-input-outlined {
    background: rgba(255,255,255,0.80);
    border-radius: 12px;
}

/* ---- HR / divider ---- */
.mortgage-page hr {
    opacity: 0.5;
}

/* ---- Button polish (MudButton renders a button internally) ---- */
.mortgage-page .mud-button-root {
    border-radius: 12px;
    height: 44px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ---- Small helper text ---- */
.mortgage-page .text-muted.small {
    margin-top: 6px;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .mortgage-shell {
        padding: 16px !important;
    }

    .mortgage-section,
    .mortgage-card,
    .extra-card {
        padding: 16px !important;
    }

    .mortgage-page .col-md-8.col-lg-6 {
        max-width: 100%;
    }
}
.mortgage-page .mortgage-section.h-100 {
    height: 100%;
}
