/* index.css */

:root {
  --primary: #119400;
  --alt: #199400c4;
  --bg: #b4ffb8;
  --text: #1e293b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--primary);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

form div {
  display: flex;
  flex-direction: column;
}

form span {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #475569;
}

input {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--primary);
}

button {
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: var(--alt);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.websocketbox {
  position:absolute;
  top: 6rem;
  left: 1rem;
  padding: .25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 250px;
  background: var(--card-bg);
  animation-name: fade-away;
  animation-duration: 5s;
}

@keyframes fade-away {
  0% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0; display: none;}
}

ul.websocketalert {
    list-style-type: none;
    background-color: rgba(255, 255, 255, 0.336);
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .menu {
    flex-wrap: wrap;
    gap: 1rem;
  }

  form {
    width: 90%;
  }
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --primary: #119400;
    --alt: #199400c4;
    --bg: rgb(10, 10, 10);
    --text: #f1f5f9;
    --card-bg: rgb(20, 20, 20);
    --border: #334155;
  }

  body {
    background: var(--bg);
    color: var(--text);
  }

  header, form {
    box-shadow: none;
  }

  input, button {
    color-scheme: dark;
    }
}
*/