html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}
h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}
.loan-info {
    border-radius: 5px;
    margin-bottom: 20px;
}
.loan-info p {
    margin: 5px 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}
th {
    background-color: #f2f2f2;
    text-align: center;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
.main-page {
    padding: 20px;
}
.form-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    background: #FFF;
    border-radius: 5px;
    margin-bottom: 20px;
}
.details-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.table-container {
    padding: 20px;
    background: #FFF;
    border-radius: 5px;
    margin-bottom: 20px;
}
.input-group {
    display: flex;
    flex-direction: column;
    width: 33.33%;
    gap: 10px;
}
.data-group {
    display: flex;
    flex-direction: column;
    width: 25%;
}
label {
    width: 100%;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input, select {
    width: 96%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.details-container img {
    border-radius: 5px;
    background-color: #ccc;
    max-height: 210px;
    object-fit: cover;
    cursor: pointer;
    width: 100%;
}
button {
    background-color: #fec910;
    color: #000000;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
button:hover {
    background-color: #000000;
    color: #FFFFFF;
}
.negative {
    color: red;
}
.readonly {
    background-color: #f0f0f0;
}
.navbar {
    position: sticky;
    top: 0;
    background-color: #000;
    padding: 10px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-logo {
    height: 48px;
    width: auto;
}
.details-logo {
    height: 48px;
    width: auto;;
}
.details-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    background: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    color: #FFFFFF;
}
.details-title {
    border-left: 1px solid #303030;
    padding-left: 20px;
}
#amortizationTable {
    overflow-x: auto;
    scrollbar-width: thin;
    -ms-overflow-style: thin;
    margin-bottom: 20px;
}
#amortizationTable::-webkit-scrollbar {
    height: 6px;
}
#amortizationTable::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
button:hover .loader {
    border: 2px solid #FFFFFF;
    border-bottom-color: transparent;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 
@media (max-width: 768px) {
    .form-container, #previewPDF .details-container {
        flex-direction: column;
    }
    .input-group, #previewPDF .data-group {
        width: 100%;
    }
}
@media (max-width: 572px) {
    #previewPDF h2 {
        font-size: 14px;
    }

    #previewPDF .details-logo {
        height: 32px;
    }

    #previewPDF {
        font-size: 12px;
    }
}