/* base.css */
:root {
  --bg: #fdfaf3;
  --border: 1px solid #ccc;
}

.site-title {
  font-weight: bold;
}

.header-buttons {
  display: flex;
}

.home-btn {
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.dropdown-menu {
  scrollbar-color: #aaa #f4f4f4;
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: #f4f4f4;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #bbb;
}

/* layout.css */
#visualization-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#custom-visual {
  padding: 1rem;
}

#custom-visual {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.visualization-image {
  width: 100%;
  height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 0px) - var(--command-height, 60px));
  object-fit: cover;
  display: block;
}

#result-box.details-box {
  width: 100%;
  height: calc(100vh - var(--header-height, 80px) - var(--footer-height, 0px) - var(--command-height, 60px));
  overflow-y: auto;
}

.beeai-generated-img,
.details-box,
#custom-visual > table {
  max-width: 100%;
  margin: 1rem auto;
}

#tip-bar {
  background: #fff8dc;
  border: 1px solid #e5d6a7;
}

#tip-bar::-webkit-scrollbar {
  height: 4px;
}

#tip-bar span {
  color: #444;
}

.scroll-text {
  color: #333;
}

/* components.css */
.chat-message {
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0.25rem 0;
}

.chat-message.ai {
  background-color: #f4f4f4;
  color: #333;
}

.chat-message.user {
  background-color: #d8ecff;
  color: #222;
}

.chat-message.ai.thinking-bubble {
  background: #f0f0f0;
  color: #333;
}

.chat-message.ai.thinking-bubble span {
  background: #f0f0f0;
  color: #333;
}

.command-input {
  background-color: #fdfdfd;
  border: 1px solid #ccc;
}

.command-input:focus {
  box-shadow: 0 0 0 2px #bee3f8;
}

.command-icon {
  background: none;
  border: none;
  padding: 0.5rem;
}

.command-icon:hover {
  background-color: #f0f0f0;
}

.command-icon i {
  color: #444;
}

.command-icon[data-tooltip]:hover::after {
  background: #333;
  color: #fff;
}

.command-icon:hover::after {
  background: #333;
  color: #fff;
}

.command-icon:hover::before {
  border-color: #333 transparent transparent transparent;
}

/* media.css */
body.mobile .command-input {
  font-size: 14px;
}

body.desktop-laptop .command-input {
  font-size: 16px;
}

body.desktop-pc .command-input {
  font-size: 18px;
}

.visual-preview-container {
  width: 320px;
  max-width: 90vw;
  margin: 1rem auto;
  cursor: pointer;
}

.visual-preview {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content video,
.modal-content img,
.modal-content .details-box {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 12px;
}

.modal.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Hover + zoom + glow */
.visual-preview-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.visual-preview-container:hover .visual-preview {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 128, 255, 0.4);
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Overlay ikon */
.preview-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 16px;
  pointer-events: none;
}

/* Modal fade-in */
.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

/* Zoom animáció a videóra */
.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal.show .modal-content {
  transform: scale(1);
}

/* additional selectors split across screen sizes can go here as needed */

/* Chatbox wrapper */
.chatbox-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Egyes üzenetek */
.chat-message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.chat-message.user {
  background-color: #d8ecff;
  color: #222;
  align-self: flex-end;
  text-align: right;
}

.chat-message.ai {
  background-color: #f4f4f4;
  color: #333;
  align-self: flex-start;
  text-align: left;
}

.chat-message.ai.thinking-bubble {
  font-style: italic;
  color: #777;
}

/* Chat scroll terület */
.chat-scroll-area {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.command-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.command-input {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 1rem;
}

.command-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #bee3f8;
}

.command-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #444;
}

.command-icon:hover {
  color: #000;
}
