@import url('global.css');
@import url('index.css');

:root {
  --hue: 318;
  --button-background: oklch(75% 0.1 var(--hue) / 0.8);
  --bg-dark: oklch(45% 0.1 var(--hue) / 0.75);
  --button-foreground: oklch(15% 0.05 var(--hue));
  --bottom-glow: radial-gradient(farthest-corner at bottom center, rgba(255, 255, 255, 0.7), transparent);
  --stripes: repeating-linear-gradient(to bottom, #eee 0px, #eee 2px, #fff 2px, #fff 4px);
}

body {
  font-family: "Segoe UI Semilight", sans-serif;
  background: url("wp.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #dadada;
  margin: 0;
  padding: 0;
}

.chat-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 12px;
  background: rgba(27, 27, 27, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid #525252;
}

h1 {
  text-align: center;
  font-size: 22px;
 margin-bottom: 1rem;
  background: linear-gradient(to bottom, #e588ff, #000);
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
}

#messages {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid #444;
  border-radius: 6px;
  margin-bottom: 15px;
  scroll-behavior: smooth;
}

.msg {
  background: rgba(255,255,255,0.04);
  border: 1px solid #333;
  border-radius: 5px;
  padding: 5px 8px;
  margin-bottom: 10px;
}

.user {
  font-weight: bold;
  color: #790699;
}

.time {
  color: #aaa;
  font-size: 0.85em;
  margin-left: 10px;
}

.text {
  margin-top: 5px;
  white-space: pre-line;
  color: #f0f0f0;
}
.msg-file {
  max-width: 250px;
  height: auto;
  margin-top: 5px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  display: block;
}


.bot {
  margin-top: 6px;
  color: #57fa6f;
  font-style: italic;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  height: 70px;
  border-radius: 6px;
  border: 1px solid #444;
  padding: 10px;
  resize: vertical;
  background: rgba(0,0,0,0.4);
  color: #eee;
  font-family: "Segoe UI", sans-serif;
  margin-bottom: 10px;
}

input[type="file"] {
  margin-bottom: 10px;
  display: block;
  max-width: 250px;
  height: auto;
  margin-top: 5px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  display: block;
}


.form-container {
  max-width: 400px;
  margin: 100px auto;
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
  border: 1px solid #444;
  color: white;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
  color: white;
}

a {
  color: #3cda56;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


button, .aero-button, button.aero {
  background-color: var(--button-background);
  background: var(--bottom-glow), linear-gradient(to bottom, var(--bg-dark), var(--button-background));
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--button-background);
  border-radius: 9999px;
  cursor: pointer;
  margin: 1em 1ex;
  padding: 1ex 1em;
  position: relative;
  text-shadow: 0 2px .5em #0003;
  transition: all 300ms;
  color: var(--button-foreground);
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lunasima", sans-serif;
  font-weight: 700;
}

button::after,
button.aero::after {
  content: "";
  position: absolute;
  top: 4%;
  left: 0.5em;
  width: calc(100% - 1em);
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
  border-radius: 9999px;
  transition: background 400ms;
}

button:hover,
button:focus,
button.aero:hover,
button.aero:focus {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

button:active,
button.aero:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input#hue {
  appearance: none;
  background: linear-gradient(to right in oklch longer hue, oklch(75% 0.1 0), oklch(75% 0.1 360));
  border-radius: 9999px;
}
