/* Apply Poppins font globally except for the table */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #3B1E08;
    text-align: center;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure tables do not use Poppins */
table {
    font-family: Arial, sans-serif;
}

/* Full-Width Header */
.header {
    width: 100%;
    background-color: #FFFFFF;
    text-align: center;
    padding: 25px 0;
    z-index: 1001;
    position: relative;
}

.header img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Ensure Header Content is Centered */
.header h1, .header h2 {
    width: auto;
    margin: 0 auto;
    text-align: center;
    display: block;
}

/* Full-Width Top Bar (Subheader) */
.top-bar {
    background-color: #3B1E08;
    color: white;
    padding: 3px 0;
    font-size: 1.3rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    z-index: 1000;

}
/*    color: #3B1E08;*/
/* Main Wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

/* Main Container */
.container {
    background: white;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 60%;
    max-width: 320px;
    margin: 15px auto;
}

/* Notification Messages */
.notification-messages {
    padding: 10px;
    font-size: 1rem;
    margin: 20px auto;
    max-width: 300px;
    text-align: center;
    border-radius: 5px;
    display: none;
}

/* Error Styling */
.notification-messages.error {
    background-color: #FDEDED;
    color: #FF0000;
    border: 1px solid #FF0000;
}

/* Success Styling */
.notification-messages.success {
    background-color: #E6F8EC;
    color: #1BD793;
    border: 1px solid #1BD793;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Input and Select Fields */
input, select {
    font-size: 1rem;
    padding: 10px;
    width: 75%;
    max-width: 220px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    display: block;
    margin: 8px auto;
}

/* Buttons */
button {
    background-color: #3B1E08;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    width: 45%;
    max-width: 150px;
    text-align: center;
    display: block;
    margin: 10px auto;
    transition: all 0.3s ease-in-out;
}

/* Button Hover Effects */
button:hover {
    background-color: #1BD793;
    color: #3B1E08;
    transform: scale(1.05);
}

button:active {
    background-color: #157F63;
    transform: scale(0.98);
}

/* Logout Button */
#logoutButton {
    background-color: #ff8b25;
    font-size: 0.75rem;
    padding: 6px 10px;
    max-width: 80px;
    height: 30px;
    display: block;
    margin: 35px auto;
}

/* Logout Hover & Active Effects */
#logoutButton:hover {
    background-color: #ff8b25;
    transform: scale(1.05);
}

#logoutButton:active {
    background-color: #3b1e08;
    transform: scale(0.98);
}

/* Mobile-Friendly Styles */
@media (max-width: 600px) {
    .container {
        width: 80%;
        padding: 12px;
    }

    input, select, button {
        max-width: 100%;
    }

    .logout-button {
        width: 80%;
    }
}

/* Loan History Styling */
#loanHistoryContainer p {
    font-size: 12px; /* Smaller font size */
    margin-bottom: 2px; /* Reduces space below the text */
    font-weight: bold; /* Keeps it readable */
    padding-bottom: 0px;
}

/* Centered Loan History Table */
#loanHistoryTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
    margin: 5px auto 25px auto;
}

/* Table Cells */
#loanHistoryTable th, #loanHistoryTable td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
}

/* Table Headers */
#loanHistoryTable th {
    background-color: #f4f4f4;
    font-size: 11px;
    font-weight: bold;
}

/* Alternate Row Colors */
#loanHistoryTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#loanHistoryTable tr:hover {
    background-color: #f1f1f1;
}

/* Responsive Table */
@media (max-width: 600px) {
    #loanHistoryTable {
        font-size: 11px;
    }
    #loanHistoryTable th, #loanHistoryTable td {
        padding: 3px;
    }
}

#nextPayDateContainer {
    margin-top: 10px;
}

#nextPayDateContainer label {
    display: block;
    margin-bottom: 5px;
}

#nextPayDate {
    width: 100%; /* Make the input wider */
    max-width: 280px; /* Slightly wider than default */
    padding: 8px;
    font-size: 14px; /* Make text inside the input a little smaller */
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Remove default blue focus outline and set custom green */
input:focus, button:focus {
    outline: 2px solid #1BD793; /* Custom green outline */
    border-color: #1BD793; /* Optional: Change border color to match */
    box-shadow: 0 0 5px rgba(27, 215, 147, 0.5); /* Soft green glow effect */
}

