
:root {
  --background: #0d1117;
  --surface: #161b22;
  --primary: linear-gradient(to right, #00c6ff, #7d5fff);
  --text: #ffffff;
  --text-muted: #999999;
  --error: #ff4d4f;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 20px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

h1 {
  margin-top: 0;
}

.input {
  width: 100%;
  padding: 12px;
  background: #0d1117;
  color: var(--text);
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 16px;
}

.input:focus {
  outline: none;
  border-color: #7d5fff;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.error {
  background: var(--error);
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: bold;
}

.header {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.header img {
  display: block;
  margin: 0 auto;
  max-width: 300px;
  height: auto;
}

.header-text {
  text-align: center;
}

.chat-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
}

#user-input {
  height: 80px !important;
  max-height: 80px !important;
  min-height: 80px !important;
  resize: none; /* se vuoi disattivare ridimensionamento */
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
  max-width: 700px;
  margin-bottom: 12px;
  border-radius: 6px;
  padding: 12px;
  background: white;
  color: #000;
  border: 1px solid #ccc;
}
#chat-form button[type="submit"] {
  width: 100%;
  max-width: 700px;
  padding: 12px;
  background: linear-gradient(to right, #00c6ff, #7d5fff);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#chat-form button[type="submit"]:hover {
  opacity: 0.9;
}

.footer {
  text-align: center;
  margin-top: 40px;
}

.footer a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, #00c6ff, #7d5fff);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.9;
}
