/* Loan EMI Calculator Styles - Based on SIP Calculator */

.calculator-section {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
}

.calculator-header {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-header h1 {
    font-size: 56px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.calculator-header .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Calculator Wrapper */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: linear-gradient(145deg, #2F3142 0%, #252736 100%);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    margin: 0 auto;
}

/* Input Groups */
.input-group-custom {
    margin-bottom: 40px;
}

.input-group-custom:last-child {
    margin-bottom: 0;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.input-label-row label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.input-value-display {
    display: flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
}

.input-value-display .currency,
.input-value-display .unit {
    color: #4CAF50;
    font-weight: 600;
    font-size: 15px;
}

.inline-input {
    background: transparent;
    border: none;
    color: #4CAF50;
    font-weight: 700;
    font-size: 18px;
    width: 100px;
    text-align: right;
    font-family: "Source Sans Pro", sans-serif;
}

.inline-input:focus {
    outline: none;
}

.duration-input {
    width: 40px;
}

.rate-input {
    width: 50px;
}

/* Custom Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4CAF50 0%, #f44336 100%);
    outline: none;
    margin: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #4CAF50;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #4CAF50;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Preset Chips */
.preset-chips {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: "Source Sans Pro", sans-serif;
}

.chip:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.chip.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(244, 67, 54, 0.2) 100%);
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Loan Type Section */
.loan-type-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loan-type-section label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
}

.loan-type-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.loan-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.loan-chip i {
    font-size: 20px;
}

.loan-chip:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.loan-chip.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    color: #4CAF50;
}

.loan-chip.active i {
    color: #4CAF50;
}

/* Results Section */
.calculator-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Donut Chart */
.donut-chart-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-ring {
    transition: stroke 0.3s ease;
}

.donut-segment {
    transition: stroke-dasharray 0.6s ease-out, stroke-dashoffset 0.6s ease-out;
}

.donut-segment.principal {
    stroke: #4CAF50;
}

.donut-segment.interest {
    stroke: #f44336;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.donut-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

/* Result Breakdown */
.result-breakdown {
    width: 100%;
    max-width: 280px;
}

.breakdown-item {
    display: flex;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
}

.breakdown-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
}

.breakdown-indicator.principal {
    background: #4CAF50;
}

.breakdown-indicator.interest {
    background: #f44336;
}

.breakdown-indicator.total {
    background: linear-gradient(135deg, #4CAF50, #f44336);
}

.breakdown-indicator.emi {
    background: linear-gradient(135deg, #7c4dff, #448aff);
}

.breakdown-item.emi {
    background: rgba(124, 77, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    border-bottom: none;
    margin-bottom: 8px;
}

.breakdown-item.emi .breakdown-value {
    color: #b388ff;
    font-size: 24px;
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.breakdown-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

/* CTA Section */
.cta-section {
    margin-top: 30px;
    text-align: center;
}

.cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.download-btn img {
    height: 48px;
}

/* Amortization Section */
.amortization-section {
    margin-top: 60px;
    background: linear-gradient(145deg, #2F3142 0%, #252736 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.breakdown-header {
    text-align: center;
    margin-bottom: 30px;
}

.breakdown-header h2 {
    font-size: 32px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.breakdown-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Yearly Table */
.yearly-table-container {
    margin-top: 20px;
}

/* Chart Container */
.chart-container {
    margin-bottom: 30px;
}

.chart-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 30px 20px 20px;
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    max-width: 60px;
    position: relative;
    height: 100%;
}

.bar-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.bar-stack:hover {
    transform: scaleY(1.02);
    filter: brightness(1.1);
}

.bar-principal {
    background: #4CAF50;
    width: 100%;
}

.bar-interest {
    background: #f44336;
    width: 100%;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover .bar-value {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.year-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    width: 60px;
    text-align: center;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.legend-color.principal {
    background: #4CAF50;
}

.legend-color.interest {
    background: #f44336;
}

.legend-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.table-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

.table-toggle:hover {
    background: rgba(76, 175, 80, 0.2);
}

.table-toggle i {
    transition: transform 0.3s ease;
}

.table-toggle.expanded i {
    transform: rotate(180deg);
}

.yearly-table-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.yearly-table-wrapper.show {
    max-height: 1000px;
    overflow-y: hidden;
}

@media (max-width: 576px) {
    .yearly-table-wrapper {
        overflow-x: auto;
    }
}

.yearly-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.yearly-table th,
.yearly-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yearly-table th:first-child,
.yearly-table td:first-child {
    text-align: left;
}

.yearly-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
}

.yearly-table td {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.yearly-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Prepayment Toggle Section */
.prepayment-toggle-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prepayment-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

.prepayment-toggle:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.prepayment-toggle i {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.prepayment-toggle.expanded i {
    transform: rotate(180deg);
}

/* Prepayment Panel */
.prepayment-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 20px;
}

.prepayment-panel.show {
    max-height: 800px;
}

/* Prepayment Enable Toggle */
.prepayment-enable-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prepayment-enable-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.prepayment-enable-label input[type="checkbox"] {
    display: none;
}

.prepayment-enable-label .toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.prepayment-enable-label .toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.prepayment-enable-label input:checked+.toggle-slider {
    background: #4CAF50;
}

.prepayment-enable-label input:checked+.toggle-slider::before {
    left: 23px;
    background: #fff;
}

.prepayment-enable-label .toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Prepayment Mode Tabs */
.prepayment-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.prepayment-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prepayment-tab i {
    font-size: 18px;
}

.prepayment-tab:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: rgba(76, 175, 80, 0.8);
}

.prepayment-tab.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    color: #4CAF50;
}

.prepayment-tab.active i {
    color: #4CAF50;
}

/* Prepayment Inputs */
.prepayment-inputs {
    display: block;
}

.prepayment-inputs .input-group-custom {
    margin-bottom: 24px;
}

.prepayment-inputs .input-group-custom:last-child {
    margin-bottom: 0;
}

/* Prepayment Content - Disabled State */
.prepayment-content {
    transition: opacity 0.3s ease;
}

.prepayment-content.disabled {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: rgba(47, 49, 66, 0.6);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(244, 67, 54, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 28px;
    color: #4CAF50;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-family: "Raleway", sans-serif;
}

.info-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .calculator-results::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), rgba(244, 67, 54, 0.4), transparent);
        margin-bottom: 30px;
    }

    .calculator-header h1 {
        font-size: 36px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .loan-type-chips {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .calculator-section {
        padding: 100px 0 60px;
    }

    .calculator-wrapper {
        padding: 24px;
    }

    .preset-chips {
        gap: 8px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .donut-chart-container {
        width: 180px;
        height: 180px;
    }

    .donut-value {
        font-size: 22px;
    }
}

/* Prepayment Comparison Section */
.prepayment-comparison-section {
    margin-top: 60px;
    background: linear-gradient(145deg, #2F3142 0%, #252736 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Comparison Card */
.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.comparison-card.highlight {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.04) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

.comparison-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-card-header i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.comparison-card.highlight .comparison-card-header i {
    color: #4CAF50;
}

.comparison-card-header span {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.comparison-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

.stat-value.savings {
    color: #4CAF50;
}

/* Savings Summary */
.savings-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.savings-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.savings-card:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 175, 80, 0.4);
}

.savings-card.interest-saved {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.savings-card.tenure-reduced {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
}

.savings-card.total-savings {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.savings-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.savings-icon i {
    font-size: 24px;
    color: #4CAF50;
}

.savings-card.tenure-reduced .savings-icon {
    background: rgba(33, 150, 243, 0.15);
}

.savings-card.tenure-reduced .savings-icon i {
    color: #2196F3;
}

.savings-card.total-savings .savings-icon {
    background: rgba(255, 193, 7, 0.15);
}

.savings-card.total-savings .savings-icon i {
    color: #FFC107;
}

.savings-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.savings-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

.savings-value.highlight {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Prepayment Insight */
.prepayment-insight {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prepayment-insight i {
    font-size: 24px;
    color: #4CAF50;
    flex-shrink: 0;
}

.prepayment-insight span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Responsive - Prepayment */
@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .savings-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .prepayment-comparison-section {
        padding: 24px;
    }

    .prepayment-mode-tabs {
        flex-direction: column;
    }

    .savings-value {
        font-size: 18px;
    }
}

/* View Analysis Button */
.view-analysis-btn-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-analysis-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2196F3;
    font-weight: 600;
    font-size: 14px;
}

.view-analysis-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.view-analysis-btn i {
    font-size: 18px;
}

/* Prepayment Badge in Table */
.prepay-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 4px;
    font-size: 10px;
    color: #4CAF50;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}