/* STU Console Styles */

/* Import the futuristic STU fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&family=Share+Tech+Mono&display=swap');

/* Base styling */
body {
  margin: 0;
  padding: 0;
  color: #e8e8e8;
  background-color: #010d1e;
  font-family: 'Rajdhani', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

/* Header for the app shell */
.header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: #011627;
  border-bottom: 1px solid #022b4c;
}

.header .logo {
  height: 42px;
  margin-right: 16px;
}

.header .title {
  font-size: 20px;
  font-weight: 700;
}

/* Layout container for app.html */
.main {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* Sidebar / drawer */
.sidebar {
  width: 260px;
  background-color: #011627;
  border-right: 1px solid #022b4c;
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #022b4c;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.sidebar ul li {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid #022b4c;
  transition: background-color 0.15s ease;
  font-size: 16px;
}

.sidebar ul li:hover {
  background-color: #022b4c;
}

.sidebar ul li.active {
  background-color: #064663;
}

.sidebar .new-chat {
  padding: 14px 18px;
  border-top: 1px solid #022b4c;
  text-align: center;
}

.sidebar .new-chat button {
  width: 100%;
  padding: 10px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background-color: #00bcd4;
  color: #011627;
  cursor: pointer;
}

/* Chat area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #0a2342;
}

.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.message {
  margin-bottom: 12px;
  max-width: 80%;
}

.message.user {
  align-self: flex-end;
  text-align: right;
}

.message.bot {
  align-self: flex-start;
}

.message .bubble {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.message.user .bubble {
  background-color: #064663;
  color: #ffffff;
  border-top-right-radius: 0;
}

.message.bot .bubble {
  background-color: #022b4c;
  color: #e8e8e8;
  border-top-left-radius: 0;
}

/* Composer input bar */
.composer {
  display: flex;
  padding: 14px 18px;
  border-top: 1px solid #022b4c;
  background-color: #011627;
}

.composer input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background-color: #0a2342;
  color: #e8e8e8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
}

.composer button {
  margin-left: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background-color: #00bcd4;
  color: #011627;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.composer button:hover {
  background-color: #02a0b3;
}

/* Login page */
.login-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(1, 13, 30, 0.6);
}

.login-card {
  position: relative;
  background-color: rgba(1, 22, 39, 0.85);
  padding: 24px;
  border-radius: 8px;
  width: min(420px, 90vw);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.login-card .logo {
  height: 56px;
  margin-bottom: 12px;
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-card label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #7aa5c7;
}

.login-card input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background-color: #0a2342;
  color: #e8e8e8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
}

.login-card button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  background-color: #00bcd4;
  color: #011627;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.login-card button.secondary {
  background-color: #022b4c;
  color: #7aa5c7;
}

/* Splash page */
.splash {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #010d1e;
  color: #e8e8e8;
  text-align: center;
}

.splash img {
  width: 180px;
  margin-bottom: 20px;
}

.splash h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.splash p {
  margin: 0;
  font-size: 16px;
  color: #7aa5c7;
}

/* Protocols page */
.protocols-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: #e8e8e8;
}

.protocols-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(1, 13, 30, 0.75);
}

.protocols-content {
  position: relative;
  padding: 40px 20px;
}

.protocols-content h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.protocols-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.protocols-list li {
  margin-bottom: 14px;
  padding: 14px;
  background-color: rgba(1, 22, 39, 0.85);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.protocols-list li h3 {
  margin: 0;
  font-size: 18px;
  margin-bottom: 6px;
}

.protocols-list li p {
  margin: 0;
  font-size: 14px;
  color: #a4c0da;
}