/* ==========================================================================
   Google Meet Clone - Complete Design System & Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #202124;
  --bg-deep: #131314;
  --bg-tile: #2d2e30;
  --bg-tile-hover: #35363a;
  --bg-surface: #28292c;
  --bg-surface-elevated: #303134;
  --bg-controls: #1e1f22;
  --bg-panel: #1e1f20;
  
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #80868b;
  --text-inverse: #202124;

  --google-blue: #1a73e8;
  --google-blue-hover: #1b66c9;
  --google-blue-light: #8ab4f8;
  --google-red: #ea4335;
  --google-red-hover: #d93025;
  --google-green: #34a853;
  --google-yellow: #fbbc04;
  --google-purple: #9c27b0;
  --google-purple-light: #c58af9;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #8ab4f8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
}

/* ==========================================================================
   Header Navigation (Home & Lobby)
   ========================================================================== */
.meet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  height: 64px;
}

.meet-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.meet-logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

.meet-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-time {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.icon-button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */
.home-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  gap: 60px;
  align-items: center;
}

.home-hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.home-hero p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  background-color: var(--google-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--google-blue-hover);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.join-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--text-secondary);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 44px;
  width: 250px;
  height: 48px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: 1px solid var(--text-muted);
}

.input-with-icon input:focus {
  border-color: var(--google-blue-light);
  box-shadow: 0 0 0 1px var(--google-blue-light);
}

.btn-join {
  color: var(--google-blue-light);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.btn-join:hover:not(:disabled) {
  background-color: rgba(138, 180, 248, 0.08);
}

.btn-join:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.features-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.home-preview-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.preview-grid-mockup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mockup-tile {
  background: var(--bg-tile);
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
}

.mockup-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-callout {
  text-align: center;
  padding-top: 12px;
}

.preview-callout h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.preview-callout p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Lobby / Green Room Styles
   ========================================================================== */
.lobby-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lobby-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  max-width: 1040px;
  width: 100%;
  gap: 48px;
  align-items: center;
}

.preview-screen-wrapper {
  position: relative;
  background: var(--bg-deep);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror selfie */
}

.preview-avatar-fallback {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.preview-controls {
  position: absolute;
  bottom: 16px;
  display: flex;
  gap: 16px;
  z-index: 10;
}

.circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.circle-btn:hover {
  background-color: #3c4043;
}

.circle-btn.off {
  background-color: var(--google-red);
  border-color: transparent;
}

.circle-btn.off:hover {
  background-color: var(--google-red-hover);
}

.audio-level-meter {
  position: absolute;
  bottom: 24px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.meter-bar {
  width: 4px;
  height: 4px;
  background: var(--google-green);
  border-radius: 2px;
  transition: height 0.08s ease;
}

.lobby-join-form h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.lobby-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.lobby-form-group {
  margin-bottom: 20px;
}

.lobby-form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.lobby-input {
  width: 100%;
  height: 48px;
  font-size: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-sm);
}

.color-picker-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #fff;
  transform: scale(1.15);
}

.btn-join-now {
  width: 100%;
  height: 50px;
  background-color: var(--google-blue);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.btn-join-now:hover {
  background-color: var(--google-blue-hover);
}

.people-in-meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 180, 248, 0.12);
  color: var(--google-blue-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Meeting Room Main Stage & Video Grid
   ========================================================================== */
.meeting-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Top Notification / Banner Bar (Private Call, Screen Share) */
.meeting-top-banner {
  background: linear-gradient(90deg, #6a1b9a, #4a148c);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-banner-action {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.btn-banner-action:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-banner-close {
  background: var(--google-red);
}

/* Main Container: Video Stage + Side Drawer */
.meeting-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 12px 16px 88px 16px; /* 88px for bottom bar */
  gap: 16px;
}

.video-stage-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
  height: 100%;
}

/* Responsive Grid of Video Tiles */
.video-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 12px;
  justify-content: center;
  align-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

/* Grid Layout variations */
.video-grid.peers-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1000px;
  max-height: 85vh;
}

.video-grid.peers-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1280px;
}

.video-grid.peers-3,
.video-grid.peers-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-width: 1280px;
}

.video-grid.peers-5,
.video-grid.peers-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-width: 1380px;
}

.video-grid.peers-many {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1400px;
}

/* Spotlight layout when someone is presenting or pinned */
.video-stage-container.spotlight-active .video-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  grid-template-rows: 1fr;
  height: 100%;
}

.video-stage-container.spotlight-active .spotlight-tile {
  grid-column: 1;
  height: 100%;
  max-height: 100%;
}

.video-stage-container.spotlight-active .filmstrip-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 100%;
}

.video-stage-container.spotlight-active .filmstrip-container .video-tile {
  aspect-ratio: 16/9;
  min-height: 135px;
}

/* Video Tile Card */
.video-tile {
  position: relative;
  background-color: var(--bg-tile);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 120px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.video-tile:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.video-tile.speaking {
  border-color: var(--google-blue-light);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.35);
}

.video-tile.in-private-call {
  border-color: var(--google-purple-light);
  box-shadow: 0 0 0 3px rgba(197, 138, 249, 0.4);
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

.video-tile.is-local video:not(.is-screen) {
  transform: scaleX(-1); /* mirror local camera */
}

.video-tile video.is-screen {
  object-fit: contain;
  background-color: #000;
  transform: none !important;
}

/* Avatar Fallback */
.tile-avatar {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Tile Overlays */
.tile-name-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-controls-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 6;
}

.video-tile:hover .tile-controls-overlay {
  opacity: 1;
}

.tile-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.tile-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tile-control-btn.active {
  background: var(--google-blue);
}

.tile-hand-raised {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fbbc04;
  color: #202124;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: var(--shadow-md);
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.tile-private-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--google-purple);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

/* ==========================================================================
   Bottom Floating Toolbar (Google Meet Signature)
   ========================================================================== */
.meeting-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: var(--bg-dark);
  z-index: 30;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 200px;
}

.footer-meeting-time {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.footer-meeting-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-meeting-code:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-center-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
  color: #fff;
  transition: all 0.15s ease;
  position: relative;
}

.ctrl-btn:hover {
  background-color: #43474d;
}

.ctrl-btn.active {
  background-color: rgba(138, 180, 248, 0.2);
  color: var(--google-blue-light);
}

.ctrl-btn.off {
  background-color: var(--google-red);
  color: #fff;
}

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

.ctrl-btn.end-call {
  background-color: var(--google-red);
  width: 60px;
  border-radius: 28px;
}

.ctrl-btn.end-call:hover {
  background-color: var(--google-red-hover);
}

.ctrl-btn.purple-active {
  background-color: var(--google-purple);
  color: #fff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: flex-end;
}

.side-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
}

.side-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.side-toggle-btn.active {
  color: var(--google-blue-light);
  background-color: rgba(138, 180, 248, 0.15);
}

.badge-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--google-blue);
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--google-blue-light);
}

/* ==========================================================================
   Side Drawer (Chat, People, Info, Settings)
   ========================================================================== */
.side-panel {
  width: 360px;
  background-color: var(--bg-panel);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  animation: slideInRight 0.25s ease;
  z-index: 25;
}

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

.panel-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3 {
  font-size: 17px;
  font-weight: 500;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.panel-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.panel-tab.active {
  color: var(--google-blue-light);
  border-bottom-color: var(--google-blue-light);
}

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

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

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-sender-name {
  font-weight: 600;
  color: var(--text-primary);
}

.chat-badge-private {
  background: var(--google-purple);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
}

.chat-text {
  font-size: 14px;
  color: #fff;
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  border-radius: 12px;
  border-top-left-radius: 2px;
  max-width: 90%;
  word-break: break-word;
  line-height: 1.4;
}

.chat-bubble.is-self .chat-text {
  background: #1a73e8;
  align-self: flex-end;
  border-top-left-radius: 12px;
  border-top-right-radius: 2px;
}

.chat-input-wrapper {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.chat-recipient-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-recipient-selector select {
  font-size: 12px;
  padding: 4px 8px;
  height: 28px;
  background: var(--bg-surface);
}

.chat-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-box input {
  flex: 1;
  height: 42px;
  font-size: 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  padding: 0 16px;
}

.btn-send-chat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--google-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send-chat:hover {
  background: var(--google-blue-hover);
}

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

.people-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.people-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.people-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.people-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.people-info {
  display: flex;
  flex-direction: column;
}

.people-name {
  font-size: 14px;
  font-weight: 500;
}

.people-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.people-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-private-call {
  background: rgba(156, 39, 176, 0.18);
  color: var(--google-purple-light);
  border: 1px solid rgba(156, 39, 176, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-private-call:hover {
  background: rgba(156, 39, 176, 0.35);
}

/* Floating Emoji Reactions & Animations */
.emoji-picker-popup {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  z-index: 50;
  animation: popUp 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
  from { transform: translateX(-50%) scale(0.8); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}

.emoji-btn {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.emoji-btn:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.1);
}

.flying-emoji {
  position: absolute;
  bottom: 100px;
  font-size: 34px;
  pointer-events: none;
  z-index: 100;
  animation: floatUp 2.5s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-250px) scale(1.4) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-500px) scale(1.1) rotate(-15deg);
  }
}

/* Modal and Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 96px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: #323639;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--google-blue);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

.toast.toast-purple {
  border-left-color: var(--google-purple);
}

.toast.toast-success {
  border-left-color: var(--google-green);
}

.toast.toast-danger {
  border-left-color: var(--google-red);
}

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

/* Responsive adjustments */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-actions {
    justify-content: center;
  }
  .lobby-card {
    grid-template-columns: 1fr;
  }
  .side-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 80px;
    width: 100%;
    max-width: 360px;
  }
  .footer-meeting-time, .footer-meeting-code {
    display: none;
  }
}
