:root {
  --primary-blue: #2A7DE1;
  --accent-green: #27C37E;
  --accent-purple: #7C3AED;
  --bg-dark: #0E1116;
  --bg-card: rgba(20, 24, 32, 0.9);
}

body {
  background: var(--bg-dark);
  color: #f5f5f5;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  min-height: 100vh;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#installBtn {
  border: 1px solid var(--accent-green);
  margin: 10px 0;
}
#installBtn:hover {
  background-color: var(--accent-green);
  color: #fff;
}

.logo-img { width: 80px; height: auto; }

.gradient-text {
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--bg-card);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  color: white; border: none; font-weight: bold;
  padding: 10px; border-radius: 10px; transition: 0.3s;
}
.btn-gradient:hover { opacity: 0.9; }

.video-wrapper {
  position: relative; background: black; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.video-wrapper video { width: 100%; height: auto; aspect-ratio: 16/9; display:block; }
.video-wrapper .label {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.6);
  padding: 3px 8px; font-size: 0.8rem; border-radius: 4px;
}

.chat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px; height: 260px;
  overflow-y: auto; padding: 8px;
}
.chat-message { margin-bottom: 8px; }
.chat-message.you { text-align: right; }
.chat-message .bubble {
  display: inline-block; padding: 8px 12px; border-radius: 12px;
  max-width: 75%; word-wrap: break-word; overflow-wrap: anywhere;
}
.chat-message.you .bubble {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue)); color: white;
}
.chat-message.peer .bubble {
  background: linear-gradient(135deg, var(--accent-green), var(--primary-blue)); color: white;
}
.msg-status {
  display: inline-block; margin-left: 6px; font-size: 0.75rem; color: #bbb;
}

.chat-image {
  max-width: 260px; max-height: 180px; border-radius: 8px; display: block;
}
.embed-responsive { position: relative; width: 260px; height: 146px; border-radius: 8px; overflow: hidden; }
.embed-responsive iframe { width: 100%; height: 100%; border: 0; display:block; }

.system-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px; padding: 8px; height: 260px;
  display: flex; flex-direction: column;
}
.system-feed { flex: 1; overflow-y: auto; font-size: 0.9rem; color: #ccc; }
.system-message {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px; border-radius: 6px; margin-bottom: 6px;
  border-left: 3px solid transparent;
}
.system-message .time {
  color: #aaa; font-size: 0.75rem; margin-top: 2px;
}

/* Keyword highlighting types */
.system-message.info        { border-left-color: #6fb1ff; }
.system-message.peer_left   { border-left-color: #64d8ff; background: rgba(0, 191, 255, 0.15); color: #bfefff; }
.system-message.session_end { border-left-color: #ffb74d; background: rgba(255, 165, 0, 0.15); color: #ffe0b2; }
.system-message.blocked     { border-left-color: #ff6b6b; background: rgba(255, 0, 0, 0.15); color: #ffc1c1; }

/* Connection dot */
.conn-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #6c757d; border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 991px) { /* Make the two panels stack on small screens */
  .chat-box, .system-box { height: 220px; }
}
