body {
    background: linear-gradient(to bottom left, #2e8b57, #1e90ff, #9fe2bf);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

nav {
    background-color: #228B22; /* Dark Lime Green */
    padding: 1em 0;
    color: white;
    display: flex;
    flex-direction: column; /* Default to vertical for small screens */
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    width: 100%; /* Make links take full width in vertical mode */
    text-align: center; /* Center text in vertical mode */
}

.left-links, .right {
    display: flex;
    flex-direction: column; /* Stack links vertically by default */
    width: 100%; /* Take full width of the nav */
    align-items: center; /* Center the links */
}

@media (min-width: 768px) {
    nav {
        flex-direction: row; /* Horizontal for wider screens */
        justify-content: space-between;
    }

    nav a {
        width: auto; /* Revert to auto width */
        text-align: left; /* Revert text alignment */
    }

    .left-links, .right {
        flex-direction: row; /* Horizontal for wider screens */
        width: auto; /* Revert to auto width */
    }
}

@media (max-width: 767px) {
    .main-content {
        /* Keep the transition for a smooth push */
        transition: padding-top 0.3s ease-in-out;
    }

    nav {
        position: fixed;
        top: 0; /* Position at the top */
        left: 0;
        width: 100%;
        z-index: 1000;
        /* Start hidden above the viewport */
        transform: translateY(-100%);
        transition: transform 0.2s ease-in-out;
    }

    nav.nav-visible {
        /* Class to make it slide into view */
        transform: translateY(0);
    }
}

#sidebar {
  width: 100%;
  height: auto;
  background-color: #333;
  position: relative;
  padding-top: 20px;
  color: white;
}

#sidebar a {
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  padding: 15px;
  transition: 0.3s;
}

#sidebar a:hover {
  background-color: #555;
}

.collapsible {
  background-color: slategray;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  margin-left: 0;
  outline: none;
  font-size: 15px;
}

.active, .collapsible:hover {
  background-color: #555;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  margin-left: 0;
  background-color: slategray;
}

#layout td, #layout th {
  text-align: center;
  padding: 8px;
}

#layout th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: black;
  color: white;
}

.content a {
  color: black;
  display: block;
  padding: 8px;
  margin: 5px 0;
  background-color: slategray;
  border-radius: 5px;
  text-decoration: none;
}

.content a:hover {
  background-color: #ddd;
}

.login-container {
    background-color: #1e90ff; /* Blue color */
    padding: 2em;
    border-radius: 10px;
    margin: 2em auto; /* Center the box */
    max-width: 400px; /* Adjust width as needed */
    text-align: center; /* Center contents */
}

.login-container h1 {
    color: white;
    margin-bottom: 1em;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form elements */
}

.login-container label {
    align-self: flex-start; /* Align labels to the left */
    margin-bottom: 0.5em;
    color: white;
}

/* General form styling for input fields outside of .login-container */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"] {
    width: 300px; /* Standardize width */
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"],
.login-container input[type="tel"] {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1em;
    border: none;
    border-radius: 5px;
}

.login-container button[type="submit"] {
    background-color: #228B22; /* Dark Lime Green */
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.login-container button[type="submit"]:hover {
    background-color: #1a6f1a;
}

.login-container a.btn.btn-primary {
    background-color: #228B22; /* Dark Lime Green */
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
}

.login-container a.btn.btn-primary:hover {
    background-color: #1a6f1a;
}

.edit-person-container {
    background-color: #1e90ff; /* Blue color from login page */
    padding: 2em;
    border-radius: 10px;
    margin: 2em auto; /* Center the box */
    max-width: 800px; /* Wider for the more complex form */
}

.form-field {
    margin-bottom: 1em;
}

.form-field label {
    display: block;
    margin-bottom: 0.5em;
}


.form-group {
    margin: 1em 0;
    display: flex;
    gap: 1em;
    justify-content: flex-start;
}


@media only screen and (min-width: 600px) {
  #sidebar {
    width: 200px;
    height: 100%;
    position: fixed;
  }
  .collapsible, .content {
    margin-left: 200px;
  }
}


#landing-header {
  background-color: #228B22; /* Dark Lime Green */
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 80%;
}

/* Styling for non-form content inside the login container */
.login-container p {
    color: #fff;
    margin: 1em 0;
}

.login-container .dashboard-link {
    display: inline-block;
    background-color: #228B22; /* Dark Lime Green */
    color: white;
    padding: 0.8em 1.5em;
    margin: 0.5em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s;
}

.login-container .dashboard-link:hover {
    background-color: #1a6f1a;
}

.login-container ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.login-container li {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.cancel-button {
    background-color: #6c757d;
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
}

.cancel-button:hover {
    background-color: #5a6268;
}

/* Review Edit Page Styles */
.diff-container {
    display: flex;
    flex-direction: column; /* Default to vertical for small screens */
    gap: 20px;
}

.diff-panel {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    flex: 1; /* Each panel takes equal space */
}

.diff-panel h2 {
    text-align: center;
    margin-top: 0;
}

.diff-added {
    background-color: rgba(46, 139, 87, 0.5); /* Semi-transparent sea green */
    padding: 2px 4px;
    border-radius: 3px;
}

.reject-button {
    background-color: #dc3545; /* Red */
}

.reject-button:hover {
    background-color: #c82333; /* Darker red */
}

/* Responsive layout for two columns */
@media (min-width: 768px) {
    .diff-container {
        flex-direction: row; /* Horizontal for wider screens */
    }
    .login-container {
        max-width: 800px; /* Wider container for the review page */
    }
}

