body {
  background: #111;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Ensures content isn't touching screen edges on mobile */
  box-sizing: border-box;
}

.container {
  background: #222;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 30px 20px;
  box-shadow: 0 0 15px #0ff;
  box-sizing: border-box;
}

h1 {
  color: #0ff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

p {
  line-height: 1.5;
  font-size: 1rem;
}

button {
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: #0ff;
  color: #111;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0cc;
}

/* Simulator styles */

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 1rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.success {
  background-color: #0f0a;
  color: #0f0;
  border: 2px solid #0f0;
}

.failure {
  background-color: #f00a;
  color: #f00;
  border: 2px solid #f00;
}

.query {
  background: #111;
  padding: 10px;
  margin-top: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #0ff;
  border-radius: 8px;
  white-space: pre-wrap;
  user-select: text;
}

.back-btn {
  margin-top: 25px;
  background: #555;
  color: #ddd;
}

.back-btn:hover {
  background: #777;
}

/* Responsive Design */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  p, label, input, .result, .query, button {
    font-size: 0.95rem;
  }

  .container {
    padding: 20px 15px;
  }
}
