@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
     font-family: "Poppins", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header and Navigation */
.main-header {
    background-color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.calculator-tabs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.calculator-tabs li {
    margin-left: 10px;
}

.calculator-tabs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.calculator-tabs a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.calculator-tabs li.active a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Calculator Container */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Calculator Form Layout */
.calculator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.calculator-inputs {
    flex: 1;
    min-width: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.results-panel {
    width: 400px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
}

/* Input Sections */
.input-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.input-section label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.input-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    outline: none;
}

/* Dropdown Field */
.dropdown-field {
    position: relative;
    width: 100%;
}

.dropdown-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Sliders */
.slider-container {
    margin-top: 15px;
    position: relative;
}

.mortgage-amount-slider,
.amortization-slider {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    width: 50%;
    height: 100%;
    background-color: #2563EB;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.slider-thumb {
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 2px solid #2563EB;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
}

/* Sections */
.section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    background-color: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    flex-grow: 1;
}

.view-schedule-link {
    color: #2563EB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Rate Inputs */
.rate-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.rate-input-field {
    flex: 1;
    min-width: 120px;
}

.rate-input-field label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.rate-input-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rate-type-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rate-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rate-button.active {
    background-color: #2563EB;
    color: white;
    border-color: #2563EB;
}

.rate-term-field {
    flex: 1;
    min-width: 150px;
}

.rate-term-field label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Amortization Inputs */
.amortization-inputs {
    margin-top: 20px;
}

.amortization-inputs label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.amortization-years-months {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.amortization-years-months input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #2563EB;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Results Panel Styles */
.settings-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    cursor: pointer;
}

.payment-result {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.payment-result h4 {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.payment-amount .frequency {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

/* Tabs */
.payment-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #2563EB;
}

.tab.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.tab-content {
    margin-bottom: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Payment Breakdown */
.breakdown-chart {
    margin-bottom: 20px;
}

.chart-bar {
    height: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.principal-bar {
    height: 100%;
    background-color: #3b82f6;
}

.interest-bar {
    height: 100%;
    background-color: #ef4444;
}

.breakdown-items {
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.breakdown-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.breakdown-item.principal .breakdown-dot {
    background-color: #3b82f6;
}

.breakdown-item.interest .breakdown-dot {
    background-color: #ef4444;
}

.breakdown-label {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.breakdown-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.total-payment {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.total-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.total-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Term and Total Summary */
.term-summary,
.total-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Balance and Amortization */
.balance-end-of-term,
.effective-amortization {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.balance-label,
.effective-label {
    font-size: 14px;
    color: #666;
}

.balance-value,
.effective-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Report Button */
#get-report-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: #8351e4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 25px 0 15px;
    transition: background-color 0.3s ease;
}

#get-report-btn:hover {
    background-color: #7340d3;
}

.app-note {
    text-align: center;
    color: #2563EB;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.brand {
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Animation for changing values */
.value-changing {
    animation: highlight-change 1s ease;
}

@keyframes highlight-change {
    0% {
        color: #2c3e50;
    }
    50% {
        color: #4361ee;
    }
    100% {
        color: #2c3e50;
    }
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .calculator-form {
        flex-direction: column;
    }

    .calculator-inputs {
        min-width: 100%;
    }

    .results-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 15px;
    }

    .main-header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .calculator-tabs ul {
        justify-content: center;
    }

    .calculator-tabs li {
        margin: 5px;
    }

    .rate-inputs {
        flex-direction: column;
    }

    .rate-type-buttons {
        flex-direction: row;
    }

    .rate-button {
        flex: 1;
    }
} 

/*===============*/
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #130092;
}
.calculator-tabs a {
    color: #130092;
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.calculator-tabs li.active a {
    color: #fff;
    background-color: rgb(26 0 144);
    font-weight: 600;
}
h1{
    color:  #130092;
}
.rate-button.active,
.download-btn,#get-report-btn{
    background-color: #37ca37;
}
.rate-button.active{
    border-color:#37ca37 ;
}

.download-btn:hover,
.calculator-tabs a:hover{
    color:  #130092;
}
.slider-track{
    background-color: #37ca37;
}
.slider-thumb{
    border-color:#130092 ;
}
.icon-circle svg path:not([fill="none"]){
    fill: #130092;
}
button#calculateBtn{
    display: none;
}
.calculator-form,
.section,
.input-section,
.rate-section-content,
.expense-item,
.expense-input-field.monthly-field, .expense-input-field.yearly-field,
.dropdown-select,
.fixed-results-box{
    border-radius: 0;
    border: 1px solid #ccc;
}
.results-box{
    box-shadow: none;
}
.download-btn:hover,#get-report-btn:hover{
    background-color: #1a0090;
    color: #fff;
}

.logo img {
    width: 145px;
}

button.mobile-menu-toggle {
    display: none;
}
.calculator-form{
    border: none;
}
.input-section,.section{
    padding: 20px !important;
}
.tab.active {
    color: #1a0090;
    border-bottom-color: #1a0090;
}
.view-schedule-link{
    color: #1a0090;
}
.icon-circle svg{
    stroke: #1a0090;
}
.toggle-switch input:checked + .slider{
    background-color: #1a0090;
}

@media(max-width:1200px){
.main-header .container{
    flex-direction: row !important;
}
.logo{
    margin: 0;
}
    nav.calculator-tabs {
        display: none;
        position: absolute;
        top: 100%;
        background-color: #fff;
        left: 0;
        width: 100%;
    }
    header {
        position: relative;
        z-index: 99;
    }
    button.mobile-menu-toggle{
        display: block;
    }
    .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #1a0090;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}
button.mobile-menu-toggle.active  ~ nav.calculator-tabs{
    display: block;
}
.calculator-tabs ul{
    flex-direction: column;
    padding: 15px;
}
.calculator-tabs a{
    display: inline-block;
}
.calculator-container *{
    max-width: 100%;
    min-width: unset;
}
.amortization-inputs,.amortization-years-months input,
.amortization-years-months{
    width: 100%;
}
}