/* public/css/gothic.css */

/* 1. Theme colors & fonts */
:root {
  --bg: #1a1a1a;
  --fg: #e0e0e0;
  --highlight: #9966cc;
  --font-main: 'Cinzel', serif;
  --font-mono: 'Fira Code', monospace;
}

/* 2. Global resets */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.5;
}
a {
  color: var(--highlight);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 3. Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0.5em 0;
  color: var(--highlight);
  text-transform: uppercase;
}

/* 4. Form elements */
input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  background: #222;
  border: 1px solid #444;
  color: var(--fg);
  border-radius: 4px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 4px var(--highlight);
}
button {
  background: var(--highlight);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.2s;
}
button:hover {
  opacity: 0.85;
}

/* 5. Registration Wizard */
.register-container {
  max-width: 600px;
  margin: 3% auto;
  padding: 2rem;
  background: rgba(26,26,26,0.95);
  border: 1px solid var(--highlight);
  border-radius: 8px;
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.status {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* 6. Dashboard Grid & Widgets */
#dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.widget {
  background: rgba(26,26,26,0.9);
  border: 1px solid var(--highlight);
  border-radius: 6px;
  padding: 1rem;
  min-height: 150px;
}

/* 7. Chat UI */
#chat-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0.25rem;
}
.chat-tab {
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.chat-tab.active {
  background: var(--highlight);
  color: var(--bg);
}
#toggle-chat {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
}
#chat-window {
  position: fixed;
  bottom: 40px;
  left: 10px;
  width: 300px;
  max-height: 400px;
  display: none;
  flex-direction: column;
  background: rgba(26,26,26,0.95);
  border: 1px solid var(--highlight);
  border-radius: 6px;
}
#chat-header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #333;
}
#chat-title {
  flex: 1;
  font-weight: bold;
}
#chat-messages {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
#chat-input {
  border: none;
  border-top: 1px solid #333;
  padding: 0.5rem;
  background: #222;
  color: var(--fg);
  font: inherit;
}
