@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Google Meet Dark Mode Palette with premium accents */
  --bg-main: #0c0d0f;
  --bg-surface: #1e1f22;
  --bg-surface-glass: rgba(30, 31, 36, 0.55);
  --bg-control: #2b2c2f;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: #3b82f6;
  
  --text-primary: #e3e3e3;
  --text-secondary: #9e9e9e;
  --text-disabled: #616161;
  
  --color-blue: #3b82f6;
  --color-blue-hover: #2563eb;
  --color-blue-bg: rgba(59, 130, 246, 0.15);
  
  --color-red: #ea4335;
  --color-red-hover: #d93025;
  --color-red-bg: rgba(234, 67, 53, 0.15);
  
  --color-green: #0f9d58;
  --color-green-hover: #0b8043;
  --color-green-bg: rgba(15, 157, 88, 0.15);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 50%;
  
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Base Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Landing Page Styling (index.html) --- */
.landing-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow blobs */
.landing-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  top: -10%;
  right: 10%;
  pointer-events: none;
}

.landing-container::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  bottom: -15%;
  left: 5%;
  pointer-events: none;
}

/* Two-column layout */
.landing-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  z-index: 5;
}

/* Left side (Config Panel & Text) */
.landing-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  color: var(--color-blue);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.landing-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #fff;
}

.landing-headline span {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Glass Card form container */
.setup-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  transition: var(--transition-smooth);
}

.setup-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  width: 100%;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: var(--color-red);
  color: #fff;
}

.btn-danger:hover {
  background: var(--color-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.35);
}

/* Success Screen (Room details generated) */
.success-screen {
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-green-bg);
  color: var(--color-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(15, 157, 88, 0.2);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.success-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.link-box {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 24px;
  align-items: center;
}

.link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: var(--color-blue);
  color: #fff;
}

/* Right side (Hero Graphic container) */
.landing-graphic-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-glass-frame {
  background: rgba(255, 255, 255, 0.01);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: floatImage 6s ease-in-out infinite;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- Meeting Room Workspace (room.html) --- */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-main);
}

.app-header {
  height: 64px;
  background: rgba(12, 13, 15, 0.85);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
}

.room-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.user-tag span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-green);
}

.status-dot.sharing {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}


/* Core workspace container */
.workspace {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 12px;
  gap: 12px;
}

/* Call Feed Panel */
.call-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f1013;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

/* Responsive Grid for Videos */
.video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  align-content: center;
  justify-content: center;
}

/* Adjustments based on count */
.video-grid.single {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.video-grid.double {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.video-grid.pinned {
  grid-auto-flow: dense;
}

/* Video Frame Card */
.video-container {
  position: relative;
  background: #17181c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.video-container.local-active-speaker,
.video-container.active-speaker {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-blue-bg);
}

.video-container.pinned {
  grid-column: span 2;
  grid-row: span 2;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-lg);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror local/camera feeds */
}

.video-container.screenshare video {
  object-fit: contain;
  transform: none; /* No mirror for screenshare */
}

/* Camera Placeholder (Avatar) */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #17181c;
  z-index: 2;
  transition: var(--transition-smooth);
}

.avatar-circle {
  width: 72px;
  height: 72px;
  background: #3c4043;
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.placeholder-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Floating overlay inside video tiles */
.video-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  background: rgba(30, 31, 36, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.video-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.username-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-badge {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.video-status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.status-icon-muted {
  color: var(--color-red);
  display: flex;
  align-items: center;
}

/* Pin Action button on tile overlay */
.btn-pin {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-pin:hover {
  background: var(--color-blue);
  transform: scale(1.05);
}

.btn-pin.pinned {
  background: var(--color-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.btn-pin svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}


/* Bottom Control Bar - clean floating controls */
.control-bar {
  height: 76px;
  background: #121315;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

.control-group-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-basis: 30%;
}

.info-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Centered meeting media controls */
.control-group-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-control);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ctrl-btn:hover {
  background: #3c4043;
  transform: scale(1.05);
}

.ctrl-btn.muted {
  background: var(--color-red);
}

.ctrl-btn.muted:hover {
  background: var(--color-red-hover);
}

.ctrl-btn.recording {
  background: var(--color-red-bg);
  border: 1px solid rgba(234, 67, 53, 0.3);
  color: var(--color-red);
  animation: pulse-recording 1.8s infinite;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(234, 67, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0); }
}

.ctrl-btn.active {
  background: var(--color-blue-bg);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.ctrl-btn.active:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-end-meeting {
  border-radius: 50px;
  background: var(--color-red);
  color: white;
  width: auto;
  height: 42px;
  padding: 0 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-end-meeting:hover {
  background: var(--color-red-hover);
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

/* Right toggle group */
.control-group-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-basis: 30%;
}


/* --- Sidebar Slide-out panels --- */
.sidebar {
  width: 360px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 15;
}

.sidebar.closed {
  width: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
  margin-left: -12px;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
}

.sidebar-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-tab {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.sidebar-tab:hover {
  color: var(--text-primary);
}

.sidebar-tab.active {
  color: var(--color-blue);
}

.sidebar-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-blue);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.tab-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.tab-panel.active {
  display: flex;
}


/* Chat Bubble Styles */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 12px;
}

.message-bubble {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  animation: messageSlide 0.25s ease-out;
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-bubble.incoming {
  align-self: flex-start;
}

.message-bubble.outgoing {
  align-self: flex-end;
}

.msg-sender {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 0 2px;
}

.msg-sender.sender-host {
  color: #c084fc;
}

.msg-content-wrapper {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.incoming .msg-content-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.outgoing .msg-content-wrapper {
  background: var(--color-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 4px;
  padding: 0 2px;
}

.incoming .msg-time {
  align-self: flex-start;
}

.outgoing .msg-time {
  align-self: flex-end;
}

/* System notice */
.message-bubble.system {
  max-width: 100%;
  align-self: center;
  text-align: center;
}

.system-msg-content {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

/* Input design in chat */
.chat-input-area {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
  resize: none;
  height: 40px;
}

.chat-input:focus {
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.05);
}

.btn-send {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-send:hover {
  background: var(--color-blue-hover);
  transform: scale(1.02);
}


/* People tab styles */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.person-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-control);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.person-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.person-badge {
  font-size: 0.65rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-mute-guest {
  background: var(--color-red-bg);
  border: 1px solid rgba(234, 67, 53, 0.2);
  color: var(--color-red);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mute-guest:hover {
  background: var(--color-red);
  color: white;
}


/* --- Floating Host Request Overlay cards --- */
.lobby-requests-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
  width: 100%;
}

.lobby-request-card {
  background: rgba(30, 31, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.request-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.request-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.request-email {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.request-actions {
  display: flex;
  gap: 8px;
}

.request-actions button {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.request-actions .btn-approve {
  background: var(--color-green);
  color: white;
}

.request-actions .btn-approve:hover {
  background: var(--color-green-hover);
}

.request-actions .btn-deny {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.request-actions .btn-deny:hover {
  background: var(--color-red);
  color: white;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .landing-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .brand-section {
    justify-content: center;
  }
  .setup-card {
    margin: 0 auto;
  }
  .workspace {
    flex-direction: column-reverse;
  }
  .sidebar {
    width: 100%;
    height: 280px;
  }
}

@media (max-width: 576px) {
  .landing-container {
    padding: 20px;
  }
  .landing-headline {
    font-size: 2.2rem;
  }
  .app-header {
    padding: 0 12px;
  }
  .room-badge {
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  .workspace {
    padding: 4px;
    gap: 4px;
  }
  .call-area {
    border-radius: var(--radius-lg);
  }
  .video-grid {
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 8px;
  }
  .control-bar {
    padding: 0 12px;
  }
  .info-btn {
    display: none;
  }
}

/* Custom Dropdown Component Styling */
.custom-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.custom-dropdown:hover .custom-dropdown-trigger {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.custom-dropdown.open .custom-dropdown-trigger {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.custom-dropdown-trigger svg.chevron {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  transition: transform 0.25s ease;
}

.custom-dropdown.open .custom-dropdown-trigger svg.chevron {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: rgba(26, 27, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.custom-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-dropdown-option {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.custom-dropdown-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.custom-dropdown-option.active {
  background: var(--color-blue-bg);
  color: var(--color-blue);
}

.custom-dropdown-option svg.check-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-blue);
}

/* Raise Hand overlay badge */
.video-hand-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  animation: pulse-yellow 2s infinite, popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

/* Animations */
@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Sidebar hand-raising animation */
@keyframes pulse-yellow-glow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Modal overlay & custom card styling */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-card {
  background: rgba(30, 31, 36, 0.95);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Host action buttons styling */
.btn-host-action {
  transition: var(--transition-smooth);
}
.btn-host-action:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.05);
}
.global-host-controls button {
  transition: var(--transition-smooth);
}
.global-host-controls button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Custom Dropdown Dropup Override */
.custom-dropdown.dropup .custom-dropdown-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(8px);
}
.custom-dropdown.dropup.open .custom-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
}

/* Focus mode: hides non-focused video tiles when a tile is pinned or presented */
.video-grid.focus-mode {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}
.video-grid.focus-mode .video-container:not(.focused-tile) {
  display: none !important;
}
.video-grid.focus-mode .focused-tile {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Audio wave animation styles */
.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
  margin-left: 6px;
}
.audio-wave span {
  display: inline-block;
  width: 2px;
  height: 3px;
  background-color: var(--color-green);
  border-radius: 50px;
  animation: bounce-wave 0.8s ease-in-out infinite alternate;
}
.audio-wave span:nth-child(2) {
  animation-delay: 0.25s;
}
.audio-wave span:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes bounce-wave {
  0% { height: 3px; }
  100% { height: 12px; }
}
