.container {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
}

/* Input Fields */
input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Loan Information (span elements) */
span {
    display: block;
    margin-top: 5px;
    color: #2f8e03;
    font-size: 14px;
    font-style: italic;
}

/* Error Message */
.error-message {
    color: red;
    font-size: 14px;
}

/* Button */
button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.shedule-summary {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    display: flex;
    gap: 20%;
}
/* Loan Information Box */
.loan_details,
.loan-info {
    margin-top: 20px;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#loanSpects table {
text-align: left;
}

.highlight {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}
/* Basic modal overlay styles */
#results {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay color */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure modal is on top */
    overflow: auto; /* Enable scrolling of the overlay if content overflows */
}

/* Modal content styling */
.modal-content {
    background-color: #d2d3f4;
    padding: 20px;
    width: 90%; /* You can adjust the width */
    max-height: 100%; /* Maximum height for the modal */
    overflow: auto; /* Allow scrolling inside modal if the content overflows */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Optional: Styling for the modal close button */
#closeModal {
    position: absolute;
    top: 10px;
    right: 10%;
    background-color: red;
    color: white;
    border: 2px double white;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

#closeModal:hover {
    background-color: #ff2a2a;
}

/* Table Styling */
table {
    width: auto;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Table Headers */
table th {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    text-align: left;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    border-top: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
}

/* Table Cells */
table td {
    padding: 3px 10px;
    text-align: left;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

/* Alternate Row Coloring */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}


/* Tooltip for detailed data when hovered */
table td:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Table Footer */
table tfoot {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

table tfoot td {
    padding: 15px 20px;
    text-align: center;
}
S
button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media screen and (max-width: 780px) {
    .shedule-summary {
        text-align: left;
        display: grid;
        gap: 10%;
    }
    
    #loanSpects table {
        width: 100%;
    }
}