
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style-type: none;
}

.error-message {
    font-weight: bold;
    color: red;
    margin: 10px 0 10px 0;
}

body {
    background: #f6f8f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#container {
    display: flex;
    width: 80%;
    height: 80%;
    background: white;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left Side - Login */
#login-box {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#login-box form {
    width: 100%;
    padding: 40px;
    margin-bottom: 100px;
}

#login-box h1 {
    margin: 40px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    background: #f1f1f1;
    border-radius: 8px;
    font-size: 16px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.options input {
    width: min-content;
    margin: 0 15px 0 0;
}

.row {
    display: flex;
    justify-content: space-between;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#login-btn {
    background: #4d8c3f;
    color: white;
    margin-top: 10px;
    width: fit-content;
}

#login-btn:hover {
    background: #3e6f30;
}

/* Right Side - Guest */
#guest-box {
    width: 40%;
    background: #4d8c3f;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.guest-btn {
    background: none;
    border: 2px solid white;
    color: white;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
}

.guest-btn:hover {
    background: white;
    color: #4d8c3f;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu {
    font-size: 24px;
    cursor: pointer;
}

/* Footer */
footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
}

.tag {
    background: #4d8c3f;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.content-wrapper {
    width: 80%;
    height: 80%;
    position: absolute;
    background-color: #f5f7f1;
    border: none;
}

header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.date-time {
    display: flex;
    flex-direction: column;
    align-items: end;
    padding-right: 2em;
}

.active-header {
    background-color: #263f25;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}

.header-time {
    font-size: 1.5em;
    font-weight: bold;
    color: #4c8c3e;
}

.header-date {
    font-size: 1.5em;
    font-weight: bold;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: end;
    background-color: #f6f6f6;
    width: fit-content;
}

.nav li {
    border-radius: 8px 8px 0 0;
    height: fit-content;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav li a {
    color: #575656;
}

.nav li.active-header a {
    color: white;
    font-weight: bold;
}

.admin-nav {
    display: flex;
    flex-direction: row;
    background-color: #f6f6f6;
    width: fit-content;
    bottom: 0;
}

.admin-nav li {
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.admin-nav li a {
    color: black;
}

.active-admin {
    background-color: #4b8b3e;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}

.admin-nav li.active-admin a {
    color: white;
    font-weight: bold;
}

.content {
    width: 100%;
    height: fit-content;
    padding: 2em 3em;
    background-color: #ffffff;
    box-shadow: 5px 10px 10px 4px rgba(0,0,0,0.1);
    min-height: calc(100% - 5em);
}

.admin-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.admin-menu button {
    width: fit-content;
    height: fit-content;
    padding-left: 1.8em;
    padding-right: 1.8em;
    background-color: #4c8c3e;
    color: white;
}

.admin-menu h2 {
    font-size: 3em;
}

.tableOverlay {
    width: 100%;
}

table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 6px; /* Gives nice gap between rows including header */
    width: 100%;
}

th {
    padding: 1.2em 2.6em 1.2em 2.6em;
    background: #f0f0f0;
}

td {
    padding: 1em 2.6em 1em 2.6em;
    background: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;

}

td img {
    height: 1.5em;
    cursor: pointer;
}

/* Specific header background override */
thead th {
    background-color: #d9d9d9;
    text-align: left;
    color: #585757;
}

/* Rounded corners on left/right of each row */
tr th:first-child,
tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

tr th:last-child,
tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    letter-spacing: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 139, 62, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.overlay-form {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    background-color: white;
    padding: 3em;
    border-radius: 12px;
}

.overlay-form h2 {
    font-size: 2.5em;
    padding-bottom: 15px;
}

.overlay-form form .data {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal columns */
    gap: 16px;                      /* Space between items */
    align-items: start;            /* Align inputs to the top */
}

.overlay-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    padding-left: 5px;
}

.overlay-form input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    box-sizing: border-box;
}

.overlay-form form > button {
    background: #4d8c3f;
    color: white;
    margin-top: 10px;
    width: fit-content;
    font-weight: bold;
}

.overlay-form .row {
    display: flex;
    justify-content: left;
}

.overlay-form .row * {
    padding-right: 10px;
}

.overlay-form .row input {
    width: 10em;
    margin-right: 10px;
}

#loadFromAres {
    border: 2px solid #f4f4f4;
    background: white;
    width: fit-content;
}

#back-anchor {
    padding: 12px;
    border-radius: 8px;
    background: #4d8c3f;
    color: white;
    margin-top: 10px;
    width: fit-content;
}


