body {
    background-color: #FCFCFC;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
}
button {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* Page styling */
#login, #user {
    background-color: #969696;
}

/* Header section */
header {
    text-align: center;
    border-bottom: 3px solid #3C7A89;
    background-color: #F1F1ED;
    overflow-y: hidden;
}
header h1 {
    font-size: 3em;
    color: #11414b;
    margin: 20px 0;
}
header aside {
    float: right;
    position: absolute;
    right: 20px;
    top: 20px;
}
header aside button {
    width: 140px;
    height: 50px;
    font-size: large;
}

/* Login area */
.login {
    padding: 50px;
    border-radius: 20px;
    min-width: 400px;
    max-width: 600px;
    margin: 100px auto;
    border: 2px solid #3C7A89;
    background-color: #E5E5E0;
}
.login h2 {
    margin-bottom: 10px;
    color: #1F515D;
}
.login h2:first-child {
    margin-top: 0;
}
.login input[type=text], .login input[type=password] {
    width: 100%;
    padding: 12px 20px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.login input[type=button], .login input[type=submit] {
    width: 100%;
    background-color: #519aac;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    padding: 14px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.login input[type=button]:hover, .login input[type=submit]:hover {
    background-color: #43899b;
}
.login p {
    color: rgb(198, 28, 28);
    text-align: center;
    font-weight: bold;
}

/* User Area */
#user article {
    margin: 0 auto;
    text-align: center;
    max-width: 1600px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: space-around;
}
.card {
    margin: 20px;
    width: 400px;
    min-height: 100px;    
    padding: 10px;
    color: #1F515D;

    border-radius: 10px;
    border: 2px solid #3C7A89;
    background-color: #E5E5E0;
}
.card table {
    width: 100%;
}
.card td {
    font-weight: bold;
    color: rgb(80, 80, 80);
}
.card td:first-child {
    padding-bottom: 3px;
    padding-top: 3px;
}
#current_bal, #pending_bal {
    font-size: 1.8em;
    color: black;
}
.transactions {
    padding: 40px;
}
.transactions h1 {
    margin-bottom: 10px;
    margin-top: 0;
}
.transactions h2 {
    font-size: 1.1em;
    text-align: left;
    color: rgb(67, 67, 67);
    margin-bottom: 5px;
}
.transactions table {
    border-collapse: collapse;
}
.transactions td, .transactions th {
    border: 1px solid black;
    color: black;
    background-color: #FCFCFC ;
}
.transactions td {
    font-weight: unset;
    padding-bottom: 0;
}
.transactions th {
    background-color: lightgray;
}
#table_upcoming td, #table_past td {
    font-size: 0.8em;
}

/* Administrator Panel */
#admin article {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    height: -webkit-fill-available;
}
.navigation {
    margin-top: 30px;
    width: 400px;
    height: 750px;
}
.navigation button {
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    font-weight: bold;
    font-size: large;
    color: #11414b;
}
.navigation button:first-child {
    margin-top: 0;
}

.panel {
    margin-top: 30px;
    width: 1100px;
    height: 750px;
    border: 2px solid #3C7A89;
}
.panel iframe {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* admin panels */
#panel {
    text-align: center;
}
#panel header {
    text-align: center;
    border-bottom: 3px solid #3C7A89;
    background-color: #ebf3f9;
    overflow-y: hidden;
}
#panel header h1 {
    font-size: 1.5em;
    color: #11414b;
    margin: 10px 0;
}
#panel table {
    width: 100%;
    border-collapse: collapse;
}
#panel td, #panel th {
    border: 1px solid black;
}
#panel th {
    background-color: lightgrey;
}
#panel input[type='submit'], #admin_recurring input[type='submit'] {
    max-width: 400px;
    width: 100%;
    min-height: 30px;
}
#admin_transactions td {
    font-size: 0.7em;
    width: min-content;
}
#admin_recurring td {
    text-align: center;
    font-size: 0.8em;
}
#admin_user_balances td, .admin_users td {
    text-align: center;
}
#tenancy th:first-child {
    width: 30%
}
#tenancy {
    table-layout: fixed;
}
#tenancy textarea {
    width: 100%;
}

#log {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    text-align: left;
}

/* Style for the "Report Payment" card */
.card input[type="number"] {
    width: calc(100% - 30px);
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    margin-bottom: 20px;
}
.card button {
    width: 100%;
    background-color: #519aac;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
}
.card button:hover {
    background-color: #43899b;
}
