/* styles.css - Dark mode, glassmorphism UI */

/* Global reset & dark background */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(220, 15%, 10%);
  color: hsl(210, 30%, 90%);
  overflow: hidden;
}

/* Container with subtle glass effect */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

header.header h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
  color: hsl(210, 40%, 96%);
}

section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 600;
  color: hsl(210, 30%, 80%);
}

input[type="file"] {
  color: hsl(210,30%,80%);
}

select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  outline: none;
}

select, textarea {
  background: rgba(255,255,255,0.1);
  color: hsl(210,30%,90%);
}

button {
  cursor: pointer;
  background: hsl(210, 50%, 30%);
  color: #fff;
  transition: background 0.2s;
}
button:hover {
  background: hsl(210, 55%, 35%);
}

.send-btn {
  align-self: flex-end;
  margin-top: 4px;
}

.chat-log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 8px;
}
.chat-log li {
  margin-bottom: 6px;
}
.chat-log .user { color: hsl(210, 80%, 70%); }
.chat-log .assistant { color: hsl(150, 70%, 80%); }

.exec-log {
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  white-space: pre-wrap;
}

/* Modal styling */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  text-align: center;
}
.modal-content input { width: 100%; margin-top: 8px; }
.perm-btn { margin: 8px; }

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 10px; }
  header.header h1 { font-size: 1.5rem; }
}
