/* SF Pro Text Font - System font on macOS, fallback for others */

/* Start Overlay */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.start-meeting-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2D8CFF;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.start-meeting-btn:hover {
  background: #1a7ae8;
}

.start-meeting-btn svg {
  width: 24px;
  height: 24px;
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Zoom Color Palette */
  --bg-primary: rgba(0, 0, 0, 0.8);
  --bg-toolbar: rgba(0, 0, 0, 0.8);
  --bg-name-tag: #111111;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-active: #FFFFFF;
  --green-primary: #23D959;
  --red-primary: #E53935;
  --notification-red: #FF5C5C;

  /* Typography - SF Pro Text is the system font on macOS */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font-family);
}

/* Main Zoom Window */
.zoom-window {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Gallery Bar (Top) */
.gallery-bar {
  height: 117px;
  min-height: 117px;
  background: var(--bg-primary);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  position: relative;
  flex-shrink: 0;
}

.gallery-thumbnails {
  display: flex;
  gap: 4px;
}

.thumbnail {
  width: 170px;
  height: 96px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.thumbnail-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.name-tag {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: var(--bg-name-tag);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 4px;
  border-radius: 4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  color: #F5F5F5;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mute-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
}

/* View Button */
.view-button {
  position: absolute;
  top: 10px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  cursor: pointer;
}

.view-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Main Video Area */
.main-video {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}

.main-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-name-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--bg-name-tag);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #F5F5F5;
}

/* Bottom Toolbar */
.toolbar {
  height: 52px;
  min-height: 52px;
  background: var(--bg-toolbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  flex-shrink: 0;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
  display: flex;
  align-items: center;
}

.toolbar-left {
  flex-shrink: 0;
}

.toolbar-center {
  display: flex;
  justify-content: center;
}

.toolbar-right {
  flex-shrink: 0;
}

/* Toolbar Action Button */
.toolbar-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 12px 0;
  position: relative;
  min-width: 70px;
  height: 52px;
}

.toolbar-action.share-screen {
  min-width: 90px;
}

.toolbar-icon-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.toolbar-label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
  white-space: nowrap;
}

.toolbar-label-green {
  color: var(--green-primary);
}

/* Dropdown Arrow */
.dropdown-arrow {
  position: absolute;
  top: 2px;
  right: 0;
  width: 22px;
  height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.dropdown-icon {
  width: 22px;
  height: 28px;
  object-fit: contain;
}

/* Participants Icon Wrapper */
.participants-icon-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
}

/* Participant Count */
.participant-count {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 12px;
  margin-left: 2px;
}

/* Notification Dot */
.notification-dot {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 6px;
  height: 6px;
  object-fit: contain;
}

/* End Button */
.end-button-wrapper {
  position: relative;
  width: 62px;
  height: 28px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.end-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.end-text {
  position: relative;
  z-index: 1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .toolbar-action {
    min-width: 60px;
    padding: 5px 8px 0;
  }

  .toolbar-label {
    font-size: 10px;
  }

  .thumbnail {
    width: 140px;
    height: 80px;
  }

  .thumbnail-initials {
    font-size: 26px;
  }

  .main-initials {
    font-size: 80px;
  }
}

@media (max-width: 600px) {
  .gallery-bar {
    height: 90px;
    padding-top: 6px;
  }

  .thumbnail {
    width: 110px;
    height: 65px;
  }

  .thumbnail-initials {
    font-size: 20px;
  }

  .name-tag {
    font-size: 10px;
    padding: 0 3px;
  }

  .toolbar-action {
    min-width: 50px;
    padding: 5px 6px 0;
  }

  .toolbar-label {
    font-size: 9px;
  }

  .toolbar-icon {
    width: 20px;
    height: 20px;
  }

  .main-initials {
    font-size: 60px;
  }

  .view-button {
    display: none;
  }
}
