body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0fff0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
nav {
  background: linear-gradient(135deg, #2e8b57, #3cb371);
  padding: 1em 0;
  display: flex;
  gap: 1em;
  justify-content: center;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-bottom: 4px solid #1c5e3c;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 1em;
  padding: 0.3em 0.8em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
nav a:hover, nav a:active, nav a:visited {
  background: #357a38;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.bottom-nav {
  background: linear-gradient(135deg, #3cb371, #2e8b57);
  padding: 0.5em 0;
  width: 100vw;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 4px solid #1c5e3c;
  display: flex;
  justify-content: flex-start;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.back-btn {
  background: linear-gradient(90deg, #e53935 0%, #b71c1c 100%);
  color: #fff;
  border: none;
  border-radius: 20px 0 0 20px;
  padding: 20px 40px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s, transform 0.2s;
  height: 50px;
}
.back-btn:hover {
  background: linear-gradient(90deg, #357a38 0%, #6bbf59 100%);
  transform: scale(1.04);
}
h1 {
  margin: 4em 0 1em 0;
  text-align: center;
  color: #2e4e2e;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
form {
  margin: 2em 0;
  text-align: center;
}
input, button {
  font-family: inherit;
}
.modal-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  min-width: 320px;
  text-align: center;
}
.modal input {
  margin: 0.5em 0;
  padding: 0.5em;
  width: 80%;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.modal button {
  margin: 0.5em;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  border: none;
  background: #4b7a4b;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.modal .error {
  color: #e53935;
  margin-top: 0.5em;
}
#preview-results-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  margin: 2em;
}

#preview {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: cover;
  display: none;
}

#results {
  width: 300px;
  height: 300px;
  overflow-y: auto;
  padding: 1.5em;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #e6f2e6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 1.1em;
  line-height: 1.6;
}

#results h3 {
  margin-top: 0;
  color: #2e4e2e;
}

#results p {
  margin: 0.5em 0;
}

#results strong {
  color: #2e8b57;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
}


.login-container {
  width: 900px;
  margin: 80px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  font-size: x-large;
}

.login-container h2 {
  margin-bottom: 24px;
  color: #0dba0d;
}

.login-container input {
  width: 90%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login-container input:focus {
  outline: none;
  border-color: #0dba0d;
  box-shadow: 0 0 5px rgba(13,186,13,0.5);
}

.login-container button {
  width: 95%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  background-color: #0dba0d;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.login-container button:hover {
  background-color: #0aa50a;
}

#swap-btn {
  background-color: transparent;
  color: #0dba0d;
  font-weight: bold;
  margin-top: 8px;
}

#swap-btn:hover {
  text-decoration: underline;
  background-color: transparent;
}

.error {
  color: red;
  margin-top: 10px;
  font-weight: bold;
  min-height: 20px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #3cb371, #2e8b57);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 10;
}


.back-btn:hover {
  background-color: #bbb;
}

.logout-btn {
    padding: 8px 16px;
  border-radius: 8px;
  background-color: #0033be;
  color: white;
  border: none;
  font-weight: bold;
  font-size: large;
  cursor: pointer;
  height: 50px;
}
.logout-btn:hover {
  background-color: #5679ee;
}