@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* { box-sizing: border-box; }

body {
  background: #0a0a0a;
  color: #ccf2ff;
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  display: flex;
  height: 100vh;
}

.scanlines::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(204, 242, 255, 0.03),
    rgba(204, 242, 255, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 999;
}

.header {
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #444;
  background-color: #111;
  color: #ff004c;
  text-shadow: 0 0 5px #ff004c;
}

/* Sidebar styling */
.sidebar {
  width: 250px;
  background: #222;
  color: white;
  padding: 15px;
  box-sizing: border-box;
  height: 100vh;
  display: flex;
  flex-direction: column; /* This will stack the elements vertically */
}

.sidebar table {
  width: 100%;
  border-collapse: collapse;
}

.sidebar th, .sidebar td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.sidebar a {
  color: #ff004c;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Footer at the bottom of sidebar */
.sidebar .footer {
  margin-top: auto; /* This ensures the footer will always stay at the bottom */
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #121212;
  height: 100vh;
  overflow-y: auto;
}

.chat-box {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.msg {
  margin-bottom: 1.5rem;
  animation: flicker 0.8s ease;
}

.msg-user {
  color: #fa5555;
}

.msg-text {
  margin-left: 1rem;
}

.input-box {
  display: flex;
  border-top: 1px solid #444;
  padding: 1rem;
  background: #121212;
}

input {
  flex: 1;
  padding: 0.5rem;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #ccf2ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
}

button {
  margin-left: 1rem;
  background: #ff004c;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-family: inherit;
  cursor: pointer;
}

.divergence {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 0.8rem;
  background: rgba(255,0,76,0.08);
  border: 1px solid #ff004c;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: #ff004c;
  text-shadow: 0 0 4px #ff004c;
}

@keyframes flicker {
  0%   { opacity: 0; transform: scale(0.98); }
  40%  { opacity: 1; }
  70%  { opacity: 0.5; }
  100% { opacity: 1; transform: scale(1); }
}
