

@media (min-width: 480px) { /* Arrange side-by-side on wider screens */
  .bug-feature-buttons {
    flex-direction: row;
    justify-content: space-around; /* Distribute space evenly */
    align-items: center;
  }
}

.action-button {
  display: block; /* Make links behave like block-level elements for padding */
  flex-grow: 1; /* Allow buttons to grow and fill available space */
  background-color: #007bff; /* A nice blue background */
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center the text within the button */
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflow if text is too long */
  text-overflow: ellipsis; /* Add ellipsis if text is truncated */
}

.action-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}
.no-link{
  text-decoration: none;
  color: white;
}

/* New styles for wait time scroll logos */
.wait-times-logos-container {
  display: inline-flex; /* Use inline-flex to keep it in the flow of text */
  align-items: center;
  height: var(--wait-times-bar-height); /* Match parent height */
  width: 52px; /* Calculated width for 3 overlapping 26px logos */
  vertical-align: middle; /* Align with text baseline */
  flex-shrink: 0; /* Prevent shrinking during scroll */
  margin-right: 15px; /* Space between logos and the "Last Updated" text */
}

.wait-times-logo {
  height: calc(var(--wait-times-bar-height) - 4px); /* Slightly smaller than bar height */
  width: auto; /* Maintain aspect ratio */
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  position: relative; /* Allow z-index and overlap */
}

.wait-times-logo:nth-child(2) {
  margin-left: calc(-50% / 2); /* Overlap by 50% of its own width */
  z-index: 2; /* Bring to front */
}

.wait-times-logo:nth-child(3) {
  margin-left: calc(-50% / 2); /* Overlap by 50% of its own width */
  z-index: 3; /* Bring to front */
}

/* New style for the attribution message */
.wait-times-attribution {
  padding: 0 15px;
  font-size: 0.9em;
  color: #aaa; /* Lighter color for attribution */
  white-space: nowrap;
  display: inline-block;
  margin-left: 20px; /* Space before the message */
}

/* NEW: Chat Loading Overlay Styles */
.chat-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.9); /* Semi-transparent dark background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10; /* Above the iframe */
  transition: opacity 0.3s ease;
}

.chat-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.chat-loading-overlay .chat-loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff; /* White spinner */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.chat-loading-overlay p {
  color: #fff;
  font-size: 0.9em;
  margin: 0;
}

.login-panel-item .settings-cog-btn {
    /* Ensure the button within the login panel item is styled like other panel buttons */
    width: 25px;
    height: 25px;
    font-size: 16px; /* For the key emoji */
    padding: 0; /* Remove padding to center icon */
    line-height: 1; /* Ensure vertical centering of emoji */
}

.login-panel-item .user-profile-pic {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border for profile pic */
}

/* Hide the default Google Sign-In button */
.login-hidden-gsi {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* NEW: Custom Message Modal Styles (replaces alert/confirm) */
.custom-message-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}

.custom-message-modal.show {
    display: flex;
}
@media (min-width: 933px) {
  .custom-message-modal .modal-content {
      background-color: #1e1e1e;
      margin: auto;
      padding: 20px;
      border: 1px solid #888;
      width: 80%;
      max-width: 400px;
      border-radius: 8px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.7);
      position: relative;
      animation: slideIn 0.3s forwards;
      text-align: center;
  }
}

.custom-message-modal .modal-content.error {
    border-color: #f44336; /* Red border for errors */
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.5); /* Red shadow for errors */
}

.custom-message-modal .modal-content h2 {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.custom-message-modal .modal-content p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.custom-message-modal .close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.custom-message-modal .close-button:hover,
.custom-message-modal .close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.custom-message-modal .modal-ok-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.custom-message-modal .modal-ok-button:hover {
    background-color: #0056b3;
}

/* NEW: Site Fullscreen Button Styles */
.site-fullscreen-btn {
    position: absolute;
    top: calc(50% + 60px); /* MOVED UP */
    left: 8px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0; /* Ensures icon is centered */
}

.site-fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

.stream-container:hover .site-fullscreen-btn {
    opacity: 1;
}

.site-fullscreen-btn:hover {
    background: rgba(70, 70, 70, 0.7);
}

/* NEW: Focus Button Styles */
.focus-btn {
  position: absolute;
  top: calc(50% + 90px); /* MOVED DOWN */
  left: 8px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stream-container:hover .focus-btn {
  opacity: 1;
}

.focus-btn:hover {
  background: rgba(70, 70, 70, 0.7);
}

/* NEW: Styles for the focused stream container */
.stream-container.focused {
  border: 3px solid #00aaff; /* Bright blue border to indicate focus */
  z-index: 30; /* Bring the focused stream to the front */
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.5); /* Add a glow effect */
}

/* --- PWA Install Popup --- */
.pwa-install-popup {
  position: fixed;
  bottom: -200px; /* Start off-screen */
  right: 20px;
  background-color: #2a2a2e;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  padding: 15px;
  z-index: 2000;
  transition: bottom 0.5s ease-in-out;
  border: 1px solid #444;
}

.pwa-install-popup.show {
  bottom: 20px;
}

.pwa-install-popup-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.pwa-install-popup-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pwa-install-popup-content p {
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: 500;
  color: #f0f0f0;
}

.pwa-install-popup-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.pwa-install-popup-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.pwa-install-popup-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.pwa-install-popup-close-btn:hover {
  color: white;
}

/* Mobile styles for PWA Install Popup */
@media (max-width: 932px) {
  .pwa-install-popup {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 90%;
    max-width: 350px;
  }

  .pwa-install-popup.show {
    bottom: 70px; /* Position above potential bottom navigation bars */
  }
}

#install-pwa-btn-unavailable {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

/* NEW: Mobile Chat Placeholder Styles */
.chat-placeholder {
  display: none; /* Hidden by default, shown on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #888;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  min-height: 150px; /* Ensure it has a minimum clickable area */
}

.chat-placeholder:hover {
  background-color: #2a2a2a;
  color: #ccc;
}

.chat-placeholder-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

@media (max-width: 932px) {
  /* Show placeholder only on mobile when chat is not initiated */
  .stream-container:not(.chat-initiated) .chat-placeholder {
    display: flex;
  }

  /* Hide iframe when chat is not initiated */
  .stream-container:not(.chat-initiated) .chat-iframe {
    display: none;
  }
  .desktop-only-logo{
    display: none;
  }
}

/* NEW: Style for SVGs inside sidebar buttons */
.settings-cog-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor; /* Make SVG color match text color (white) */
}