:root {
  --bg: #05060a;
  --bg-elevated: #111320;
  --accent: #4f46e5;
  --accent-soft: rgba(79,70,229,0.15);
  --danger: #ef4444;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2933;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
}

/* Branding */

.brand-header, .brand-footer {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-header {
  border-bottom: 1px solid var(--border);
}

.brand-footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.brand-logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-logo span {
  color: var(--accent);
}

.brand-logo.small {
  font-size: 18px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 14px;
}

/* Landing */

.landing-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-main {
  flex: 1;
  display: flex;
  gap: 24px;
  padding: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  flex: 1;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #020617, #020617);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.card-primary {
  background: radial-gradient(circle at top left, var(--accent-soft), #020617);
}

.card h1, .card h2 {
  margin-top: 0;
}

.join-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Buttons & inputs */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  background: #1f2937;
  color: var(--text);
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(79,70,229,0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
}

/* Room layout */

.room-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(3,7,18,0.9);
  backdrop-filter: blur(10px);
}

.room-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid var(--border);
}

.status-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

.status-ok {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

/* Main area */

.room-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  min-height: 0;
}

.video-area {
  position: relative;
  background: #000;
  overflow: hidden;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: minmax(160px, 1fr);
  gap: 4px;
  height: 100%;
}

/* Video tiles */

.video-tile {
  position: relative;
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
  border-radius: 6px;
}

.video-tile.muted-video video {
  filter: brightness(0.3);
}

.overlay-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  padding: 6px;
  border-radius: 50%;
  font-size: 16px;
}

/* Controls */

.controls-bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
}

/* Sidebar */

.sidebar {
  border-left: 1px solid var(--border);
  background: #020617;
  display: flex;
  flex-direction: column;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.sidebar-panel {
  display: none;
  flex: 1;
  padding: 10px;
}

.sidebar-panel.active {
  display: flex;
  flex-direction: column;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 13px;
}

.chat-line {
  margin-bottom: 6px;
}

.chat-line strong {
  color: var(--accent);
}

.chat-input {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

.participants-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  font-size: 14px;
}

.participants-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.participant-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.participant-badges {
  font-size: 11px;
  color: var(--muted);
}

.participant-actions button {
  margin-left: 4px;
  font-size: 11px;
  padding: 4px 8px;
}

                body {
              margin: 0;
              font-family: Arial, Helvetica, sans-serif;
            }

            .topnav {
              overflow: hidden;
              background-color: #ffffff;
            }

            .topnav a {
              float: left;
              color: #1a1a1a;
              text-align: center;
              padding: 12px 14px;
              text-decoration: none;
              font-size: 17px;
            }

            .topnav a:hover {
              background-color: #ddd;
              color: black;
            }

            .topnav a.active {
              background-color: #ffffff;
              color: black;
            }
								   
            .topnav-right {
              float: right;
            }

            .imager img {
              border: 1px solid #ddd;
              width: 150px;
              border-radius: 10%;
              margin: 20px;
            }

            .imager img:hover {
              box-shadow: 0 0 2px 1px rgba(151, 161, 165, 0.5);
									   
            }    
