/*
==========================================
Finance Calculators
Professional UI v1.0
==========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.fc-container{

    max-width:1200px;

    margin:40px auto;

    padding:30px;

    background:#ffffff;

    border-radius:16px;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

    font-family:
    "Segoe UI",
    Arial,
    sans-serif;

}

.fc-header{

    text-align:center;

    margin-bottom:35px;

}

.fc-header h2{

    font-size:34px;

    color:#1f2937;

    margin-bottom:10px;

    font-weight:700;

}

.fc-header p{

    color:#6b7280;

    font-size:17px;

    line-height:1.7;

}

/*======================
GRID
=======================*/

.fc-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

}

/*======================
INPUT CARD
=======================*/

.fc-input-card{

    background:#f8fafc;

    padding:25px;

    border-radius:15px;

    border:1px solid #e5e7eb;

}

.fc-field{

    margin-bottom:35px;

}

.fc-field:last-child{

    margin-bottom:0;

}

.fc-field label{

    display:block;

    font-size:15px;

    font-weight:600;

    color:#374151;

    margin-bottom:12px;

}

.fc-input-group{

    display:flex;

    align-items:center;

    background:#fff;

    border:1px solid #d1d5db;

    border-radius:10px;

    overflow:hidden;

}

.fc-input-group span{

    padding:14px 16px;

    background:#f3f4f6;

    font-weight:600;

    color:#374151;

}

.fc-input-group input{

    width:100%;

    border:none;

    outline:none;

    padding:14px;

    font-size:18px;

    background:white;

}

.fc-input-group input::-webkit-inner-spin-button{

    display:none;

}

/*======================
SLIDER
=======================*/

input[type=range]{

    width:100%;

    margin-top:15px;

    cursor:pointer;

}

/*======================
RESULTS
=======================*/

.fc-results{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

}

.fc-result-card{

    background:#ffffff;

    border:1px solid #e5e7eb;

    border-radius:14px;

    padding:25px;

    box-shadow:0 8px 18px rgba(0,0,0,.05);

    transition:.3s;

}

.fc-result-card:hover{

    transform:translateY(-5px);

}

.fc-title{

    display:block;

    color:#6b7280;

    font-size:14px;

    margin-bottom:10px;

}

.fc-result-card h3{

    color:#2563eb;

    font-size:28px;

    font-weight:700;

}

/*======================
CHART
=======================*/

.fc-chart-section{

    margin-top:50px;

    background:#f8fafc;

    padding:30px;

    border-radius:15px;

}

.fc-chart-section h3{

    margin-bottom:20px;

    color:#1f2937;

}



/*======================
TABLE
=======================*/

.fc-table-section{

    margin-top:50px;

}

.fc-table-section h3{

    margin-bottom:20px;

    color:#1f2937;

}

.fc-table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:10px;

}

.fc-table thead{

    background:#2563eb;

    color:#fff;

}

.fc-table th{

    padding:16px;

    text-align:center;

    font-size:15px;

}

.fc-table td{

    padding:16px;

    border-bottom:1px solid #e5e7eb;

    text-align:center;

}

.fc-table tbody tr:hover{

    background:#f8fafc;

}

/*======================
MOBILE
=======================*/

@media(max-width:992px){

.fc-grid{

grid-template-columns:1fr;

}

.fc-results{

grid-template-columns:1fr;

}

}

@media(max-width:600px){

.fc-container{

padding:20px;

margin:20px;

}

.fc-header h2{

font-size:28px;

}

.fc-result-card h3{

font-size:24px;

}

.fc-input-group input{

font-size:16px;

}

.fc-table{

display:block;

overflow-x:auto;

white-space:nowrap;

}

}
/* ======================================
   Chart Wrapper
====================================== */

.fc-chart-wrapper{


    max-width:300px;

    height:300px;

    margin:20px auto;

    position:relative;

}

#fc-chart{

    width:100% !important;

    height:100% !important;

}

/*=====================================
TABLE HEADER
======================================*/

.fc-table-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:20px;

flex-wrap:wrap;

gap:20px;

}

.fc-year-selector{

display:flex;

align-items:center;

gap:10px;

}

.fc-year-selector label{

font-weight:600;

color:#374151;

}

.fc-year-selector select{

padding:10px 15px;

border:1px solid #d1d5db;

border-radius:8px;

font-size:15px;

background:#fff;

cursor:pointer;

}

/*=====================================
TABLE WRAPPER
======================================*/

.fc-table-wrapper{

max-height:550px;

overflow:auto;

border:1px solid #e5e7eb;

border-radius:12px;

}

/*=====================================
STICKY HEADER
======================================*/

.fc-table thead th{

position:sticky;

top:0;

background:#2563eb;

z-index:2;

}

/*=====================================
ZEBRA STRIPES
======================================*/

.fc-table tbody tr:nth-child(even){

background:#f9fafb;

}

.fc-table tbody tr:hover{

background:#e0f2fe;

transition:.25s;

}

/*=====================================
LOAN SUMMARY BAR
======================================*/

.fc-summary-bar{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:15px;

    margin-bottom:25px;

}

.fc-summary-item{

    background:#ffffff;

    border:1px solid #e5e7eb;

    border-radius:12px;

    padding:18px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.fc-summary-item span{

    display:block;

    color:#6b7280;

    font-size:14px;

    margin-bottom:8px;

}

.fc-summary-item strong{

    color:#1f2937;

    font-size:20px;

    font-weight:700;

}


/*=====================================
ACTION BAR
======================================*/

.fc-action-bar{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:25px;

}

.fc-btn{

    background:#2563eb;

    color:#ffffff;

    border:none;

    padding:12px 20px;

    border-radius:8px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:all .25s ease;

}

.fc-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.fc-btn:active{

    transform:translateY(0);

}

@media(max-width:768px){

    .fc-action-bar{

        flex-direction:column;

    }

    .fc-btn{

        width:100%;

    }

}