/* Floating Chat Widget */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(120deg, #00BFA6, orange);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

  #chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

  /* Main chat container */
  #botpress-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 480px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    background: white;
    overflow: hidden;
    flex-direction: column;
  }

  /* Mobile pop-up style (bottom-right window, not fullscreen) */
@media (max-width: 600px) {
  #botpress-container {
    bottom: 80px;
    right: 10px;
    width: 90%;
    max-width: 340px;
    height: 60%;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    background: white;
  }

  #chat-toggle {
    width: 55px;
    height: 55px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }

  #mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #00BFA6, orange);
    color: white;
    padding: 10px 12px;
    font-size: 1em;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}


  /* Info bar */
  .chat-info {
    background: rgba(0,191,166,0.1);
    padding: 8px 12px;
    font-size: 0.85em;
    color: #00334e;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  .chat-info button {
    background: none;
    border: none;
    color: #00BFA6;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
  }

  /* Mobile header with close button */
  #mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #00BFA6, orange);
    color: white;
    padding: 12px;
    font-size: 1.1em;
  }
  #mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
  }

  /* Expandable details */
  .chat-details {
    display: none;
    font-size: 0.8em;
    padding: 8px 12px;
    color: #444;
    line-height: 1.4;
  }

  /* Local chat area */
  #chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #chat-log {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    max-height: 100%;
    scrollbar-width: thin;
  }
  #chat-log::-webkit-scrollbar { width: 6px; }
  #chat-log::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
  }
  #chat-input {
    border: none;
    border-top: 1px solid #ddd;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  /* zprávy */
  .msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0;
    animation: fadeIn 0.4s ease;
  }
  .msg .icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
  }
  .msg.user .icon { color: #333; }
  .msg.bot .icon { color: #00BFA6; }

  .msg .text {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 14px;
  }
  .msg.user .text { background: #f1f1f1; color: #333; }
  .msg.bot .text { background: #e8fdf9; color: #00334e; }

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

#kamera,
#zvuk,
#osvetleni,
#ostatni {
  scroll-margin-top: 100px; /* nastav podle výšky tvého headeru */
}

