/**
 * =============================================================================
 * DISCLAIMER & NOTICE
 * =============================================================================
 * This project is an independent demonstration, educational UI simulation, and prototype.
 * It is strictly for demo/testing purposes and has NO affiliation, association,
 * sponsorship, authorization, or endorsement with or by Google LLC, Google Meet,
 * Alphabet Inc., or any of their subsidiaries and affiliates.
 * All trademarks, service marks, logos, and brand names are the property of their
 * respective owners.
 * =============================================================================
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  user-select: none;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  user-select: none;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:root {
  --font-family: 'Google Sans Flex', 'Google Sans', 'Google Sans Text', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg-primary: #ffffff;
  --text-primary: #1f1f1f;
  --text-secondary: #444746;
  --text-tertiary: #747775;

  --color-green-btn-bg: #c4eed0;
  --color-green-btn-text: #072711;
  --color-green-btn-hover: #b2e6bf;

  --color-upgrade-bg: #d3e3fd;
  --color-upgrade-text: #041e49;
  --color-upgrade-hover: #c2d8fc;

  --color-search-bg: #eaf1fb;
  --color-search-focus: #ffffff;
  --color-join-disabled-bg: #e0e2ec;
  --color-join-disabled-text: #8e918f;
  --color-join-active-bg: #0b57d0;
  --color-join-active-text: #ffffff;

  --color-nav-active-pill: #c2e7ff;
  --color-nav-active-text: #001d35;

  --color-safety-banner-bg: #d3e3fd;
  --color-safety-banner-title: #041e49;
  --color-safety-banner-text: #444746;
  --color-safety-btn-border: #72777d;

  --color-avatar-bg: #512da8;
  --color-icon-hover: #f0f4f9;
}

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

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 20px;
  background-color: var(--bg-primary);
  user-select: none;
  z-index: 10;
}

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

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.meet-logo-img {
  width: 124px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Nav Right: Search & Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.code-input-container {
  display: flex;
  align-items: center;
  background-color: var(--color-search-bg);
  height: 44px;
  border-radius: 22px;
  padding: 0 6px 0 14px;
  width: 260px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.code-input-container:focus-within {
  background-color: var(--color-search-focus);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border-color: #d0d7de;
}

.keyboard-icon {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  margin-right: 8px;
}

.code-input-container input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}

.code-input-container input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.join-btn {
  border: none;
  background-color: var(--color-join-disabled-bg);
  color: var(--color-join-disabled-text);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 18px;
  cursor: default;
  transition: all 0.2s ease;
  height: 32px;
}

.join-btn.active {
  background-color: var(--color-join-active-bg);
  color: var(--color-join-active-text);
  cursor: pointer;
}

.join-btn.active:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.new-meeting-btn-top {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-green-btn-bg);
  color: var(--color-green-btn-text);
  border: none;
  height: 44px;
  padding: 0 20px 0 16px;
  border-radius: 22px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.new-meeting-btn-top:hover {
  background-color: var(--color-green-btn-hover);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background-color: var(--color-icon-hover);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.user-avatar:hover {
  box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.15);
}

.avatar-letter {
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   Layout: Sidebar + Main
   ========================================================================== */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 92px;
  padding: 24px 8px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-primary);
  user-select: none;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.nav-tab {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  width: 100%;
  border-radius: 12px;
  transition: transform 0.15s ease;
}

.nav-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-tab:hover .nav-icon-wrapper:not(.active-pill) {
  background-color: var(--color-icon-hover);
}

.nav-icon-wrapper.active-pill {
  background-color: var(--color-nav-active-pill);
  color: var(--color-nav-active-text);
}

.nav-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-family);
  letter-spacing: 0.2px;
}

.nav-tab.active .nav-label {
  color: var(--color-nav-active-text);
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 40px 40px 24px;
  display: flex;
  justify-content: center;
}

.content-container {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
}

/* Schedule Header: Date + Week Strip */
.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px 0;
  margin-bottom: 12px;
}

.date-selector-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-date-text {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.calendar-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.calendar-icon-btn:hover {
  background-color: var(--color-icon-hover);
}

/* Week Strip */
.week-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strip-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.strip-arrow:hover {
  background-color: var(--color-icon-hover);
}

.days-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 56px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s ease;
  user-select: none;
}

.day-item:hover:not(.active) {
  background-color: var(--color-icon-hover);
}

.day-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

.day-number {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Active Day Item Capsule */
.day-item.active {
  background-color: var(--color-nav-active-pill);
}

.day-item.active .day-name {
  color: var(--color-nav-active-text);
  font-weight: 600;
}

.day-item.active .day-number {
  color: var(--color-nav-active-text);
  font-weight: 600;
}

/* ==========================================================================
   Safety Banner
   ========================================================================== */
.safety-banner {
  background-color: var(--color-safety-banner-bg);
  border-radius: 1000px;
  padding: 14px 24px 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shield-badge {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-safety-banner-title);
}

.banner-subtitle {
  font-size: 13px;
  color: var(--color-safety-banner-text);
  font-weight: 400;
}

.learn-more-btn {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-safety-banner-title);
  border: 1px solid rgba(114, 119, 125, 0.4);
  padding: 7px 18px;
  border-radius: 18px;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.learn-more-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(114, 119, 125, 0.8);
}

/* ==========================================================================
   Green Room "Ready to join?" Section (Under Safety Banner)
   ========================================================================== */
.green-room-main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  padding: 0 12px;
}

.green-room-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: 100%;
  max-width: 980px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.main-camera-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-camera-screen {
  width: 480px;
  height: 290px;
  max-width: calc(100vw - 48px);
  background-color: #202124;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
}

.main-audio-ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(138, 180, 248, 0.4);
  animation: mainRipple 1.8s infinite ease-out;
  pointer-events: none;
  display: block;
}

@keyframes mainRipple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.main-camera-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.main-camera-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #512da8;
  color: #ffffff;
  font-size: 34px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.main-camera-status-text {
  font-size: 14px;
  color: #9aa0a6;
}

.main-camera-media-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.main-media-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.main-media-btn.off {
  background-color: #ea4335;
  color: #ffffff;
}

.main-media-btn.off:hover {
  background-color: #d93025;
}

.main-media-btn.active {
  background-color: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.main-media-btn.sparkle-btn {
  background-color: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.main-media-btn.sparkle-btn:hover {
  background-color: #f1f3f4;
}

.main-ready-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 280px;
}

.main-ready-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.main-ready-subtext {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.main-code-pill {
  background: #f1f3f4;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.main-code-pill .code-label {
  color: var(--text-secondary);
}

.main-code-pill .code-text {
  font-weight: 600;
  color: #1a73e8;
}

.main-join-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-join-now-btn {
  background-color: #1a73e8;
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
}

.main-join-now-btn:hover {
  background-color: #1557b0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.main-join-now-btn.joining {
  background-color: #1a73e8;
  opacity: 0.9;
  cursor: default;
  pointer-events: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.main-present-btn {
  background-color: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.main-present-btn:hover {
  background-color: #f8fafd;
  border-color: #1a73e8;
}

/* ==========================================================================
   Interactive Dropdown & Tooltips
   ========================================================================== */
.dropdown-menu {
  position: absolute;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 1px 2px 0 rgba(60, 64, 67, 0.3);
  padding: 8px 0;
  z-index: 1000;
  width: 280px;
  animation: dropdownFade 0.15s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.dropdown-item span {
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--color-icon-hover);
}

.dropdown-item svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Tooltip implementation */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333333;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* ==========================================================================
   Update Google Meet Modal Dialog (Material 3)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.update-dialog {
  background-color: #ffffff;
  width: 440px;
  max-width: calc(100vw - 32px);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal-backdrop.show .update-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.dialog-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dialog-close-btn:hover {
  background-color: var(--color-icon-hover);
}

.dialog-header-icon {
  margin-bottom: 16px;
}

.update-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background-color: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.dialog-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.update-details-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f3f4;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.version-tag {
  font-weight: 600;
  color: #1a73e8;
}

.bullet {
  color: #9aa0a6;
}

.progress-bar-container {
  margin-bottom: 20px;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: #e0e2ec;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background-color: #0b57d0;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-status {
  font-size: 12.5px;
  color: #0b57d0;
  font-weight: 500;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.dialog-btn {
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn {
  background: transparent;
  color: #0b57d0;
}

.secondary-btn:hover {
  background-color: #e8f0fe;
}

.primary-btn {
  background-color: #0b57d0;
  color: #ffffff;
}

.primary-btn:hover {
  background-color: #0842a0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.copy-link-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f1f3f4;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  position: relative;
}

.copy-link-text {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  user-select: all;
}

.copy-link-btn {
  background: transparent;
  border: none;
  color: #1a73e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.copy-link-btn:hover {
  background-color: rgba(26, 115, 232, 0.12);
}

.copied-pill-toast {
  position: absolute;
  right: 44px;
  background-color: #202124;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ==========================================================================
   Empty State Action Controls & Demo Disclaimer (Under New Button)
   ========================================================================== */
.empty-state-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.demo-disclaimer-under {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f3f4;
  color: #5f6368;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #dadce0;
  user-select: none;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.demo-disclaimer-under svg {
  color: #ea8600;
  flex-shrink: 0;
}

/* ==========================================================================
   Full Screen Meeting Simulator (Lobby & In-Call)
   ========================================================================== */
.meeting-overlay {
  position: fixed;
  inset: 0;
  background-color: #202124;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
}

/* --- Green Room / Lobby --- */
.meeting-lobby {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  color: var(--text-primary);
}

.lobby-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}

.lobby-logo img {
  display: block;
}

.lobby-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lobby-email {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.lobby-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 24px;
}

.camera-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.camera-screen {
  width: 520px;
  height: 310px;
  background: #202124;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.camera-screen.camera-active {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.camera-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.camera-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #512da8;
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-status-text {
  font-size: 14px;
  color: #9aa0a6;
}

.camera-media-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.media-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.media-toggle-btn:hover {
  background: #f1f3f4;
}

.media-toggle-btn.off {
  background: #ea4335;
  color: #ffffff;
  border-color: #ea4335;
}

.media-toggle-btn.active {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #d2e3fc;
}

/* Right Join Panel */
.lobby-join-panel {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.ready-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ready-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.meeting-code-pill {
  background: #f1f3f4;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-label {
  color: var(--text-secondary);
}

.code-text {
  font-weight: 600;
  color: #1a73e8;
}

.join-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.join-now-btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.join-now-btn:hover {
  background: #1557b0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.present-btn {
  background: transparent;
  color: #1a73e8;
  border: 1px solid #dadce0;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.present-btn:hover {
  background: #f8fafd;
  border-color: #1a73e8;
}

/* --- Step 2: Live In-Call Interface --- */
.live-meeting-room {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #202124;
  position: relative;
}

.meeting-top-bar {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meeting-title-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e8eaed;
}

.time-divider {
  color: #5f6368;
}

.meeting-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn-dark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.participants-grid {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participant-card {
  width: 600px;
  height: 380px;
  max-width: 100%;
  background: #3c4043;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.participant-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #512da8;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participant-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.participant-mic-status {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #81c995;
}

/* Closed Captions Bar */
.live-captions-box {
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 18px;
  border-radius: 8px;
  align-self: center;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  gap: 6px;
}
.caption-speaker {
  font-weight: 600;
  color: #8ab4f8;
}

/* Bottom Controls */
.meeting-bottom-controls {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 8px;
}

.call-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #3c4043;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.call-control-btn:hover {
  background: #4a4e51;
}

.call-control-btn.off {
  background: #ea4335;
  color: #fff;
}

.call-control-btn.end-call-btn {
  background: #ea4335;
  color: #fff;
  width: 56px;
  border-radius: 28px;
}

.call-control-btn.end-call-btn:hover {
  background: #d93025;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .code-input-container {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0 12px;
  }

  .sidebar {
    width: 64px;
  }

  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .safety-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .learn-more-btn {
    align-self: flex-start;
  }
}