/* Zoom Join Meeting & Navbar Styles - Pixel-Perfect Recreation */
:root {
  --zoom-blue: #0e71eb;
  --zoom-blue-hover: #0056cc;
  --zoom-blue-light: #2d8cff;
  --zoom-text-dark: #232333;
  --zoom-text-muted: #747487;
  --zoom-text-secondary: #555963;
  --zoom-bg-gray: #f7f9fa;
  --zoom-border: #dcdfe6;
  --zoom-border-focus: #0e71eb;
  --zoom-btn-disabled-bg: #f0f2f7;
  --zoom-btn-disabled-text: #a5a7b8;
  --zoom-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 72px;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: var(--zoom-font);
  background-color: #ffffff;
  color: var(--zoom-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   TOP NAVBAR (Matches Screenshot)
   ========================================================== */
.zoom-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f2f5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.zoom-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zoom-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline: none;
}

.zoom-logo img {
  height: 25px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.zoom-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Support Button (Outlined pill) */
.zoom-btn-support {
  background: #ffffff;
  color: var(--zoom-blue);
  border: 1px solid var(--zoom-blue);
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn-support:hover {
  background-color: rgba(14, 113, 235, 0.06);
}

/* Sign Up Free Button (Solid blue pill) */
.zoom-btn-signup {
  background: var(--zoom-blue);
  color: #ffffff;
  border: 1px solid var(--zoom-blue);
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn-signup:hover {
  background: var(--zoom-blue-hover);
  border-color: var(--zoom-blue-hover);
}

/* ==========================================================
   MAIN CONTENT AREA
   ========================================================== */
.zoom-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  min-height: calc(100vh - var(--nav-height) - 70px);
  position: relative;
}

/* ==========================================================
   JOIN MEETING FORM (Initial State)
   ========================================================== */
.zoom-join-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: zoomFadeIn 0.3s ease-out;
}

.zoom-join-title {
  font-size: 26px;
  font-weight: 700;
  color: #232333;
  margin-bottom: 34px;
  letter-spacing: -0.3px;
}

.zoom-form-group {
  text-align: left;
  margin-bottom: 12px;
}

.zoom-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555963;
  margin-bottom: 8px;
}

.zoom-input-wrap {
  position: relative;
}

.zoom-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--zoom-border);
  font-size: 16px; /* 16px prevents iOS browser auto-zoom on input tap */
  color: #232333;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  background-color: #ffffff;
  -webkit-appearance: none;
  appearance: none;
}

.zoom-form-input::placeholder {
  color: #8c8ea0;
}

.zoom-form-input:focus {
  border-color: var(--zoom-border-focus);
  box-shadow: 0 0 0 3px rgba(14, 113, 235, 0.16);
}

/* Terms and Privacy text */
.zoom-form-agreement {
  font-size: 12.5px;
  color: var(--zoom-text-muted);
  line-height: 1.55;
  text-align: left;
  margin-top: 14px;
  margin-bottom: 22px;
}

.zoom-form-agreement a {
  color: var(--zoom-blue);
  text-decoration: none;
  font-weight: 500;
}

.zoom-form-agreement a:hover {
  text-decoration: underline;
}

/* Join Button */
.zoom-form-submit {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
  background-color: var(--zoom-btn-disabled-bg);
  color: var(--zoom-btn-disabled-text);
  cursor: not-allowed;
}

/* Active Join Button (when user enters text) */
.zoom-form-submit.is-active {
  background-color: var(--zoom-blue);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 113, 235, 0.25);
}

.zoom-form-submit.is-active:hover {
  background-color: var(--zoom-blue-hover);
}

/* Secondary SIP link */
.zoom-sip-link {
  display: inline-block;
  margin-top: 42px;
  color: var(--zoom-blue);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.zoom-sip-link:hover {
  text-decoration: underline;
}

/* ==========================================================
   SPINNER LIFECYCLE SECTION (Triggered on Join)
   ========================================================== */
.zoom-spinner-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 22px;
  animation: zoomFadeIn 0.35s ease-out;
  user-select: none;
}

.zoom-spinner-container.is-active {
  display: flex;
}

/* Spinner with smooth, reduced speed (1.35s) */
.zoom-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #eef2f6;
  border-top-color: var(--zoom-blue);
  animation: zoomSpin 1.35s linear infinite;
}

@keyframes zoomSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.zoom-spinner-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--zoom-blue);
  letter-spacing: -0.2px;
  text-align: center;
  min-height: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==========================================================
   ACTIVE ZOOM MEETING ROOM
   ========================================================== */
.zoom-meeting-room {
  width: 100%;
  max-width: 1280px;
  background: #121217;
  border-radius: 16px;
  color: #fff;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: zoomFadeIn 0.4s ease forwards;
}

.zoom-meeting-room.is-active {
  display: flex;
}

.zoom-room-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #181820;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

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

.zoom-room-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0e9f6e;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
}

.zoom-room-timer {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #e5e7eb;
}

.zoom-room-body {
  display: flex;
  padding: 16px;
  gap: 16px;
  min-height: 480px;
}

.zoom-video-stage {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
}

.zoom-video-tile {
  background: #1e1e28;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  min-height: 200px;
}

.zoom-video-tile.is-speaking {
  border-color: #22c55e;
}

.zoom-tile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.zoom-tile-name {
  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;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-room-toolbar {
  height: 70px;
  background: #181820;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.zoom-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #d1d5db;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.zoom-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.zoom-tool-btn svg {
  width: 20px;
  height: 20px;
}

.zoom-leave-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.zoom-leave-btn:hover {
  background: #b91c1c;
}

/* ==========================================================
   FOOTER (Matches Screenshot)
   ========================================================== */
.zoom-footer {
  width: 100%;
  border-top: 1px solid #f0f2f5;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #747487;
  position: relative;
  gap: 32px;
  flex-wrap: wrap;
}

.zoom-footer-copy {
  color: #747487;
}

.zoom-footer-lang {
  color: var(--zoom-blue);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.zoom-footer-lang:hover {
  text-decoration: underline;
}

/* Floating Chat Assistant Button (Bottom Right) */
.zoom-floating-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zoom-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 113, 235, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.zoom-floating-chat:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(14, 113, 235, 0.5);
}

.zoom-floating-chat svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================
   "ZOOM CLIENT IS OUT OF DATE" SCREEN (Image 2)
   ========================================================== */
.zoom-outdated-screen {
  width: 100%;
  max-width: 620px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: zoomFadeIn 0.35s ease-out;
}

.zoom-outdated-screen.is-active {
  display: flex;
}

.zoom-outdated-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--zoom-blue);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.zoom-outdated-sub {
  font-size: 14.5px;
  color: #444;
  margin-bottom: 14px;
}

.zoom-outdated-link-text {
  font-size: 14.5px;
  color: var(--zoom-blue);
  font-weight: 500;
  margin-bottom: 6px;
}

.zoom-outdated-countdown {
  font-size: 14.5px;
  color: var(--zoom-blue);
  font-weight: 500;
  margin-bottom: 14px;
}

.zoom-spinner--sm {
  width: 40px;
  height: 40px;
  border-width: 3.5px;
}

.zoom-outdated-manual {
  font-size: 14px;
  color: #444;
  margin-bottom: 18px;
}

/* Microsoft Store Button */
.zoom-msstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 10px 24px;
  text-decoration: none;
  color: var(--zoom-text-dark);
  font-size: 14.5px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 28px;
}

.zoom-msstore-btn:hover {
  border-color: var(--zoom-blue);
  box-shadow: 0 2px 10px rgba(14, 113, 235, 0.12);
}

.zoom-msstore-label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  border-right: 1px solid #ddd;
  padding-right: 10px;
}

.zoom-msstore-cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--zoom-text-dark);
}

.zoom-outdated-bottom-link {
  font-size: 14px;
  color: var(--zoom-blue);
  font-weight: 500;
}

/* Animations */
@keyframes zoomFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   MOBILE RESPONSIVENESS
   ========================================================== */
@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
  }

  /* Header & Navigation */
  .zoom-nav {
    padding: 0 16px;
    height: var(--nav-height);
  }

  .zoom-logo img {
    height: 22px;
  }

  .zoom-nav__actions {
    gap: 8px;
  }

  .zoom-btn-support {
    padding: 6px 14px;
    font-size: 13px;
  }

  .zoom-btn-signup {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* Main Container */
  .zoom-main-container {
    padding: 36px 16px 90px;
    min-height: calc(100vh - var(--nav-height) - 100px);
  }

  .zoom-join-card {
    max-width: 100%;
    padding: 0 4px;
  }

  .zoom-join-title {
    font-size: 24px;
    margin-bottom: 26px;
  }

  .zoom-form-submit {
    height: 46px;
    font-size: 15px;
  }

  .zoom-sip-link {
    margin-top: 32px;
    font-size: 13.5px;
  }

  /* Outdated Screen */
  .zoom-outdated-screen {
    padding: 0 8px;
    max-width: 100%;
  }

  .zoom-outdated-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .zoom-outdated-sub,
  .zoom-outdated-link-text,
  .zoom-outdated-countdown,
  .zoom-outdated-manual {
    font-size: 13.5px;
  }

  .zoom-msstore-btn {
    width: 100%;
    max-width: 320px;
    padding: 10px 16px;
    justify-content: center;
  }

  /* Meeting Room */
  .zoom-video-stage {
    grid-template-columns: 1fr;
  }
  .zoom-video-tile:nth-child(n+3) {
    display: none;
  }

  /* Footer & Floating Chat Button */
  .zoom-footer {
    padding: 24px 16px 84px; /* 84px bottom spacing avoids overlap with floating chat */
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .zoom-footer-copy {
    font-size: 12px;
    line-height: 1.6;
  }

  .zoom-floating-chat {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .zoom-floating-chat svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .zoom-btn-support {
    display: none; /* Hide secondary support pill on narrow screens to keep Sign Up Free pristine */
  }

  .zoom-nav {
    padding: 0 12px;
  }

  .zoom-join-title {
    font-size: 22px;
  }
}
