/* Pagrindiniai stiliai */
html {
  background: #000000;
  background-color: #000000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #000000;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  transition: margin-left 0.3s ease-in-out;
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
  min-height: 100vh;
}

/* Scrollbar Styles - Juoda su pilku viduriu */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
  border: 1px solid #333333;
}

::-webkit-scrollbar-thumb {
  background: #666666;
  border: 2px solid #000000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888888;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #666666 #000000;
}

/* Header Bar */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: #FFC700;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  cursor: pointer;
  /* Hide main header quote text */
  display: none;
}

.header-title:hover {
  color: #333333;
}

.header-title-left {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin-left: 10px;
  white-space: nowrap;
}

/* Header Home Button (Pirmas) */
.header-home-btn {
  background: transparent;
  border: none;
  color: #000000;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: auto;
  font-size: 10px;
  font-weight: 700;
}

.header-home-btn i {
  font-size: 14px;
}

.header-home-btn span {
  font-size: 9px;
}

.header-home-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

/* Header Mini Menu */
.header-mini-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 10px;
}

.header-icon-btn {
  background: #FFD700;
  border: 2px solid #000000 !important;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #000;
  transition: all 0.2s ease;
  position: relative;
}

.header-icon-btn:hover {
  background: #FFC700;
  transform: scale(1.1);
}

.header-icon-btn .favorites-count {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

/* Quick Post CTA - Pink button */
.quick-post-cta {
  position: fixed;
  top: 48px;
  left: 10px;
  z-index: 999;
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
  border: 2px solid #000000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-post-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
  background: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
}

.quick-post-cta:active {
  transform: translateY(0);
}

.cta-icon {
  font-size: 20px;
  animation: pulse-lightning 2s infinite;
}

.cta-text {
  line-height: 1.2;
}

@keyframes pulse-lightning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Search Box Fixed - Top Right */
.search-box-fixed {
  position: fixed;
  top: 80px;
  right: 15px;
  z-index: 999;
  display: flex;
  align-items: center;
}

/* Header Search (old, keep for compatibility) */
.header-search-container {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 100px;
  height: 22px;
  padding: 0 10px;
  border: 1px solid #666666;
  border-radius: 12px;
  background: #d0d0d0;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  outline: none;
  transition: all 0.2s ease;
}

.header-search-input::placeholder {
  color: #333333;
  font-weight: 500;
  font-size: 16px;
}

.header-search-input:focus {
  background: #e0e0e0;
  border-color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Footer Bar */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: #FFC700;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 5px;
  gap: 5px;
}

.footer-content {
  display: none;
}

.footer-menu-btn {
  background: transparent;
  border: none;
  color: #000000;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: auto;
  font-size: 10px;
  font-weight: 700;
}

.footer-menu-btn i {
  font-size: 14px;
}

.footer-menu-btn span {
  font-size: 9px;
}

.footer-menu-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.footer-menu-btn.active {
  background: rgba(0, 0, 0, 0.15);
  color: #000000;
}

.footer-menu-btn.active:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #000000;
}

.footer-menu-btn i {
  font-size: 18px;
}

.footer-menu-btn span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Hamburger Menu Button */
.hamburger-menu-btn {
  background: #FFC700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #000000;
  width: 40px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
  position: absolute;
  right: 5px;
}

.hamburger-menu-btn:hover {
  background: #FFC700;
  transform: scale(1.05);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Header Dropdown Menu */
.header-dropdown {
  position: fixed !important;
  top: 30px !important;
  right: 5px !important;
  left: auto !important;
  background: #FFC700;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  min-width: 120px;
}

.header-dropdown.open {
  display: flex;
}

.header-dropdown .footer-menu-btn {
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  padding: 10px 12px;
  gap: 10px;
  min-width: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.header-dropdown .footer-menu-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.header-dropdown .footer-menu-btn.active {
  background: #000000;
  color: #FFC700;
}

.header-dropdown .footer-menu-btn i {
  font-size: 16px;
}

.header-dropdown .footer-menu-btn span {
  font-size: 13px;
}

body.sidebar-open {
  margin-left: 0;
}

/* Quick Access Buttons Container */
.quick-access-container {
  position: relative;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 50;
  padding: 80px 0 10px 0;
  margin: 30px 0;
  display: none;
  overflow: visible;
}

.quick-access-container.visible {
  display: block;
}

.quick-access-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 20px 80px 20px;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  /* Firefox fixes */
  min-height: 0;
  min-width: 0;
  /* Safari iOS momentum scrolling and hardware acceleration */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Scroll snap only for webkit browsers (Chrome/Safari) */
@supports (-webkit-appearance: none) {
  .quick-access-scroll {
    scroll-snap-type: x mandatory;
  }

  .quick-access-btn {
    scroll-snap-align: start;
  }
}

.quick-access-scroll::-webkit-scrollbar {
  height: 6px;
}

.quick-access-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.quick-access-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 199, 0, 0.6);
  border-radius: 3px;
}

.quick-access-btn {
  min-width: 120px;
  width: 120px;
  height: 70px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 199, 0, 0.3);
  flex-shrink: 0;
  position: relative;
  /* Safari performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Tooltip */
.quick-access-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(0, 0, 0, 0.95);
  color: #FFC700;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 280px;
  width: max-content;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 199, 0, 0.3);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  white-space: normal;
}

/* Tooltip arrow */
.quick-access-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
}

/* Show tooltip on hover (desktop) */
.quick-access-btn:hover::after,
.quick-access-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Show tooltip on touch/active (mobile) */
.quick-access-btn:active::after,
.quick-access-btn:active::before,
.quick-access-btn.show-tooltip::after,
.quick-access-btn.show-tooltip::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.quick-access-btn:first-child {
  margin-left: 0;
}

.quick-access-btn:last-child {
  margin-right: 0;
}

.quick-access-btn:hover {
  background: rgba(255, 199, 0, 0.2);
  border-color: rgba(255, 199, 0, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 199, 0, 0.3);
}

.quick-access-btn h1 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Desktop - bigger gaps for centered buttons */
@media (min-width: 769px) {
  .quick-access-scroll {
    gap: 36px; /* 3x larger than mobile (12px x 3 = 36px) */
    justify-content: center;
  }
}

/* Mobile responsive for quick access buttons */
@media (max-width: 768px) {
  .quick-access-container {
    height: 80px;
  }

  .quick-access-btn {
    min-width: 100px;
    width: 100px;
    height: 60px;
  }

  .quick-access-btn h1 {
    font-size: 14px;
  }

  body.quick-access-visible .container {
    margin-top: 0;
    height: 800px;
  }
}

/* Full Page Content Container (for slug detail views) */
.full-page-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 900;
  overflow-y: auto;
  display: none;
  padding-top: 40px;
  padding-bottom: 40px;
}

.full-page-content.active {
  display: block;
}

/* Disable body scroll when full page content is active */
body.full-page-active {
  overflow: hidden;
}

body.full-page-active .container {
  overflow: hidden;
}

/* Hide main content when full page is active */
body.full-page-active #chat-widget-container .main-content,
body.full-page-active .columns-container,
body.full-page-active .stock-market-table {
  display: none !important;
}

/* Container adjustment when sidebar open */
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  min-height: 800px;
  height: 800px;
  transition: margin-left 0.3s ease-in-out, max-width 0.3s ease-in-out, margin-top 0.3s ease-in-out, height 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  /* Firefox fallback - more opaque background if backdrop-filter not supported */
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  /* Force rendering layer for Firefox */
  will-change: transform;
  transform: translateZ(0);
}

@supports (backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px)) {
  .container {
    background-image: none;
  }
}

.container.hidden {
  display: none;
  visibility: hidden;
}

/* Push container down when quick access buttons are visible */
body.quick-access-visible .container {
  margin-top: 0;
  height: 800px;
}

/* Ensure container returns to center when sidebar closes */
body:not(.sidebar-open) .container {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

body.sidebar-open .container {
  margin-left: 350px;
  margin-right: auto;
  max-width: 800px;
}

/* Mobile: sidebar overlay mode (no push) */
@media (max-width: 768px) {
  body.sidebar-open {
    margin-left: 0;
  }
  
  body.sidebar-open .container {
    margin-left: 0;
    transform: none;
    max-width: 800px;
  }
  
  .interactive-sidebar {
    width: 100%;
    max-width: 350px;
  }
}

/* ===== SIDEBAR NAVIGATION SYSTEM ===== */
.sidebar-back-nav {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

html, body {
  height: 100%;
}

/* Auth Status Indicator */
.auth-indicator {
  position: relative;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.auth-indicator:hover {
  background: rgba(16, 185, 129, 1);
  transform: scale(1.05);
}

.auth-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse 2s infinite;
}

.auth-level {
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideInAuthLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Konteinerio stiliai - REMOVED DUPLICATE, see line 455 */

/* Mobile responsive - full width and height */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    width: 100%;
    height: calc(100vh - 60px);
    margin: 0;
    border-radius: 0;
  }
}

.main-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Mobile - reduce padding */
@media (max-width: 768px) {
  .main-content {
    padding: 0;
  }

  .content-detail-view {
    margin: 0;
    border-radius: 0;
    flex: 1;
  }
}

/* Interaktyvus šoninis meniu */
.interactive-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100%;
  background-color: rgb(255, 199, 0);
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.interactive-sidebar.open {
  transform: translateX(0);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Naujas sidebar header */
.sidebar-header-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 199, 0, 0.4);
  background: rgba(255, 199, 0, 0.6);
  color: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-back-btn {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: #000000;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-back-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateX(-2px);
}

#sidebar-title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
  color: #000000;
}

.close-sidebar-btn {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: #000000;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-sidebar-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.05);
}

/* Header Icons - VISI tamsiai geltoni */
.header-icons button {
  background: #FFC700 !important;
  border: 2px solid #000000;
  color: #000000 !important;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icons button:hover {
  background: #FFC700 !important;
  transform: scale(1.05);
}

.header-icons button:active {
  transform: scale(0.95);
}

/* Pašalinam specifines override spalvas */
#show-agents-menu-btn {
  background: #FFC700 !important;
  color: #000000 !important;
}

#quick-post-btn {
  background: #FFC700 !important;
  color: #000000 !important;
}

.favorites-header-btn {
  background: #FFC700 !important;
  color: #000000 !important;
}

.statistics-header-btn {
  background: #FFC700 !important;
  color: #000000 !important;
}

/* Quick Post Button specifinis */
.quick-post-btn {
  background: #FFC700 !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 20px;
}

/* AGENT-WIDGET STILIAI */
#chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#agent-widget {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 1px solid #333333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

/* Header Layout */
.chat-header {
  background: transparent;
  color: white;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #333333;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-header h3:hover {
  color: #FFD700;
}


/* Quick Post Button */
.quick-post-btn {
  background: #2d2d2d;
  color: #FFC700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-post-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #FFC700;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quick-post-btn:active {
  transform: scale(0.95);
}

.chat-header h3 { 
  margin: 0; 
  font-size: 16px;
  font-weight: 700;
  flex-grow: 1; 
  text-align: center;
  color: #ffffff;
}

.header-left-spacer {
  width: 0px;
  display: none;
}

.header-icons {
  display: flex;
  gap: 4px;
  width: 120px;
  justify-content: flex-end;
}

.header-icons button { 
  background: #2d2d2d;
  border: none; 
  color: #ff6b6b;
  font-size: 16px; 
  cursor: pointer; 
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.header-icons button:hover {
  background: rgba(255, 255, 255, 0.1);
}

#show-agents-menu-btn {
  color: #ff6b6b;
}

.favorites-header-btn {
  color: #ef4444;
}

.statistics-header-btn {
  color: #8b5cf6;
}

/* Header Title Container */
.header-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  justify-content: center;
}

/* Inline Emoji Navigation Buttons (in chat messages) */
.emoji-nav-btn-inline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emoji-nav-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.emoji-nav-btn-inline:active {
  transform: translateY(0);
}

.emoji-nav-btn-inline.red-emoji-btn {
  border-color: rgba(255, 68, 68, 0.5);
}

.emoji-nav-btn-inline.red-emoji-btn:hover {
  background: rgba(255, 68, 68, 0.3);
  border-color: rgba(255, 68, 68, 0.8);
}

.emoji-nav-btn-inline.blue-emoji-btn {
  border-color: rgba(68, 68, 255, 0.5);
}

.emoji-nav-btn-inline.blue-emoji-btn:hover {
  background: rgba(68, 68, 255, 0.3);
  border-color: rgba(68, 68, 255, 0.8);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
}

/* Scrollbar styling for chat messages */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.message { 
  max-width: 85%; 
  padding: 12px 16px; 
  border-radius: 18px; 
  word-wrap: break-word; 
  line-height: 1.4; 
  font-size: 14px;
  font-weight: 600;
}

.user-message { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; 
  align-self: flex-end; 
}

.bot-message {
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  align-self: flex-start;
  border: 1px solid #333333;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.message-content {
  flex: 1;
  background: transparent !important;
}

.tts-btn {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  color: #3b82f6;
  margin-top: 2px;
  flex-shrink: 0;
}

.tts-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  transform: scale(1.1);
}

.tts-btn:active {
  transform: scale(0.95);
}

.tts-btn.playing {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  animation: pulse 1.5s infinite;
}

.chat-input-container {
  padding: 6px 12px;
  border-top: 1px solid #333333;
  display: flex;
  gap: 8px;
  align-items: center;
  background: transparent;
}

/* Hide chat input when viewing content details */
.chat-input-container.hidden {
  display: none !important;
}

#chat-input { 
  flex: 1; 
  padding: 12px 16px; 
  border: 1px solid #333333;
  border-radius: 24px; 
  outline: none; 
  font-size: 14px;
  font-weight: 600;
  font-family: inherit; 
  background: #1a1a1a;
  color: #ffffff;
  resize: none;
}

#chat-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
  background: #2d2d2d;
}

.record-btn {
  background-color: #10b981; /* Green */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 8px;
}

.record-btn:hover {
  background-color: #059669; /* Darker green on hover */
  transform: scale(1.05);
}

.record-btn.recording {
  background-color: #ef4444;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.record-btn.recording:hover {
  background-color: #dc2626;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#send-btn { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; 
  border: none; 
  border-radius: 50%; 
  width: 40px; 
  height: 40px; 
  font-size: 16px; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: background-color 0.2s;
}

#send-btn:hover {
  opacity: 0.9;
}

#send-btn:disabled {
  background: #333333;
  cursor: not-allowed;
}

/* ===== AGENTS FOLDER NAVIGATION STILIAI (NAUJAS) ===== */

.agents-folder-navigation {
  margin: 0;
  padding: 0;
}

/* ===== AGENTS PROMPT TEMPLATES - KOMPAKTIŠKAS DIZAINAS ===== */

.agents-prompt-container {
  padding: 0;
  max-width: 100%;
}

/* Intro sekcija */
.agents-intro {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0;
}

.intro-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.agents-intro h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
}

.agents-intro p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Agent sekcija */
.agent-section {
  padding: 16px 16px 20px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.agent-section:last-of-type {
  border-bottom: none;
}

.agent-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.agent-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.agent-info {
  flex: 1;
}

.agent-name {
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

.agent-desc {
  margin: 0;
  font-size: 12px;
  color: #000000;
  font-weight: 600;
}

/* Prompts grid */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Agent Prompt Cards - Statistics style but BLUE */
.agent-prompt-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.18) 100%);
  border: 0.5px solid rgba(102, 126, 234, 0.4);
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
}

.agent-prompt-card:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.28) 0%, rgba(118, 75, 162, 0.28) 100%);
  border-color: rgba(102, 126, 234, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.agent-prompt-card:active {
  transform: translateY(0);
}

.agent-prompt-card .prompt-text {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Footer tip */
.agents-footer-tip {
  padding: 16px 20px;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.tip-icon {
  font-size: 14px;
}

/* Agent Landing Page */
.agent-landing {
  padding: 0;
}

.agent-hero-landing {
  padding: 40px 20px;
  text-align: center;
  color: #000000;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.2);
}

.hero-emoji-large {
  font-size: 64px;
  margin-bottom: 16px;
}

.agent-hero-landing h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #000000;
}

.hero-tagline {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
  color: #1f2937;
  font-weight: 600;
}

.agent-stats-bar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.3);
}

.stat-item {
  flex: 1;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  color: #000000;
}

.agent-actions {
  padding: 20px;
}

.action-primary {
  width: 100%;
  background: linear-gradient(135deg, #FFC700, #FFD700);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.agent-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 20px;
}

.category-card-landing {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.category-card-landing:hover {
  border-color: #000000;
  background: rgba(255, 255, 255, 0.5);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.back-to-agents-btn {
  margin: 20px;
  width: calc(100% - 40px);
  background: rgba(0, 0, 0, 0.2);
  color: #000000;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.agent-folder-button {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 85px;
  justify-content: center;
}

.agent-folder-button:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: #000000;
}

.agent-folder-button:active {
  transform: translateY(0);
}

.agent-folder-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.agent-folder-name {
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

.agent-folder-desc {
  font-size: 10px;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  font-weight: 600;
}




/* Agent examples section */
.agent-examples {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.agent-examples h4 {
  font-size: 13px;
  color: #1f2937;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.examples-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.example-tag {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-weight: 600;
}

.example-tag:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: #000000;
}




/* Category Buttons */
.category-btn {
  background: rgba(255, 255, 255, 0.4);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Specific category button colors on hover */
.rental-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.job-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #FFC700;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.event-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #A855F7;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3);
}

.service-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* ===== UNIVERSALŪS AGENTŲ STILIAI ===== */


.universal-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.universal-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.universal-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.universal-card .card-emoji {
  font-size: 20px;
  margin-right: 8px;
}

.universal-card .card-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.universal-card .favorite-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.universal-card .favorite-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.universal-card .favorite-btn.favorited {
  color: #ef4444;
}

.universal-card .card-content {
  margin-bottom: 15px;
}

.universal-card .card-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #6b7280;
}

.universal-card .card-description {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
}

.universal-card .card-actions {
  display: flex;
  justify-content: flex-end;
}

.universal-card .smulkiau-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.universal-card .smulkiau-btn:hover {
  background: #2563eb;
}

/* ===== COMPACT LISTINGS STYLES ===== */

.compact-listings-container {
  margin-top: 15px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  border: none;
}

.listings-header {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: auto;
}

.listings-header h4 {
  margin: 0;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listings-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

/* Compact Listings - Updated for better separation */
.compact-listing {
  background: rgba(0, 0, 0, 0);
  border: 2px solid rgba(255, 199, 0, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 3px;
}

.compact-listing:hover {
  background: rgba(0, 0, 0, 0);
  border-color: rgba(255, 199, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 199, 0, 0.3);
}

.listing-content {
  display: inline;
  white-space: nowrap;
}

/* Compact listing specific styles - override any other .listing-title */
.compact-listing .listing-title {
  font-size: 12px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.compact-listing .listing-location {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: normal !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  margin-left: 4px !important;
  line-height: 1.3 !important;
}

.listing-actions {
  display: flex;
  align-items: center;
}

/* Compact Smulkiau Button */
.compact-smulkiau-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.compact-smulkiau-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.compact-smulkiau-btn:active {
  transform: scale(0.95);
}

.compact-smulkiau-btn i {
  display: none;
}

/* ===== SIDEBAR CARD STYLES ===== */

.sidebar-universal-card {
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 16px;
  border: 2px solid #333333;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.sidebar-favorite-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.sidebar-favorite-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.sidebar-favorite-btn.favorited {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* Full page button */
.full-page-btn {
  display: block;
  background: linear-gradient(135deg, #FFC700 0%, #FFD700 100%);
  color: #000000;
  text-decoration: none;
  padding: 14px 24px;
  margin: 0 20px 20px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid #000000;
}

.full-page-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.full-page-btn i {
  margin-right: 8px;
}

.sidebar-card-content {
  padding: 20px;
}

.sidebar-card-content p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 600;
}

.sidebar-card-content strong {
  color: #000000;
  font-weight: 700;
}

.sidebar-card-actions {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-btn {
  background: #EC4899;
  color: white;
}

.email-btn {
  background: #3b82f6;
  color: white;
}

.link-btn {
  background: #8b5cf6;
  color: white;
}

.action-btn:active {
  transform: scale(0.95);
}

/* ===== SIDEBAR PHOTO GALLERY STYLES ===== */

.sidebar-photo-gallery {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.sidebar-photo-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.sidebar-photo-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-photo-item.active {
  opacity: 1;
}

.sidebar-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #6b7280;
  font-size: 48px;
}

.sidebar-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-photo-item:hover .sidebar-photo-overlay {
  opacity: 1;
}

.sidebar-photo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.sidebar-photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar-photo-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.sidebar-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.sidebar-photo-gallery:hover .sidebar-photo-nav {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-photo-prev,
.sidebar-photo-next {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 18px;
}

.sidebar-photo-prev:hover,
.sidebar-photo-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== TEMPORARY MESSAGES ===== */

.temporary-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
  max-width: 300px;
  word-wrap: break-word;
}

.temporary-message.info {
  background: #3b82f6;
}

.temporary-message.success {
  background: #FFC700;
}

.temporary-message.error {
  background: #ef4444;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.universal-details-link,
.vehicle-details-link,
.job-details-link,
.detail-info {
  margin-bottom: 20px;
}

.detail-info p {
  margin: 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.detail-info strong {
  color: #000000;
  font-weight: 700;
}

.detail-description {
  margin-bottom: 20px;
}

.detail-description p {
  margin: 8px 0;
  color: #1f2937;
  line-height: 1.5;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.booking-btn {
  background: #FFC700;
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-btn:hover {
  background: #FFD700;
}

.universal-back-btn,
.back-to-vehicles-btn,
.back-to-jobs-btn {
  background: rgba(0, 0, 0, 0.2);
  color: #000000;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* FAVORITES STILIAI */
.favorites-header-btn {
  position: relative;
  background: #2d2d2d;
  border: none;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.favorites-header-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* STATISTICS HEADER BUTTON */
.statistics-header-btn {
  position: relative;
  background: #2d2d2d;
  border: none;
  color: #8b5cf6;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.statistics-header-btn:hover {
  background: rgba(139, 92, 246, 0.2);
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.favorite-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.favorites-container {
  padding: 0;
}

.favorites-category {
  margin-bottom: 24px;
}

.favorites-category-title {
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.favorites-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.favorite-card-header h5 {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  line-height: 1;
}

.remove-favorite-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.remove-favorite-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.favorite-card-meta {
  font-size: 11px;
  color: #000000;
  line-height: 1;
  font-weight: normal;
  display: inline;
  margin-left: 4px;
}

.favorite-card-meta:empty {
  display: none;
}

.empty-favorites {
  text-align: center;
  padding: 40px 20px;
  color: #1f2937;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-favorites h3 {
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-favorites p {
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 600;
}

.empty-action-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.empty-action-btn:hover {
  opacity: 0.9;
}

/* LOADING ANIMACIJA */
.loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-style: italic;
  font-weight: 600;
}

/* ANIMACIJOS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message {
  animation: fadeIn 0.3s ease-out;
}

.sidebar-universal-card {
  animation: fadeIn 0.2s ease-out;
}

/* RESPONSYVŪS STILIAI */
@media (max-width: 768px) {
  body {
    padding: 0;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  
  .container {
    height: calc(100vh - 110px);
    margin: 20px 0 0 0;
    max-width: none;
    border-radius: 0;
  }
  
  .interactive-sidebar {
    width: 100%;
    max-width: none;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .agent-folder-button {
    padding: 12px;
    min-height: 70px;
  }
  
  .agent-folder-icon {
    font-size: 20px;
  }
  
  .agent-folder-name {
    font-size: 11px;
  }
  
  .agent-folder-desc {
    font-size: 9px;
  }
  
  .header-left-spacer {
    width: 80px;
  }
  
  .header-icons {
    width: 80px;
  }
  
  .header-icons button {
    padding: 6px;
    font-size: 14px;
  }
  
  /* Header responsive */
  .header-title {
    font-size: 14px;
  }
  
  /* Footer responsive */
  .footer-content {
    width: 80%;
    max-width: 640px;
    padding: 0 10px;
    gap: 4px;
  }
  
  .footer-menu-btn {
    min-width: 50px;
    padding: 6px 8px;
  }
  
  .footer-menu-btn i {
    font-size: 16px;
  }
  
  .footer-menu-btn span {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .header-left-spacer {
    width: 60px;
  }
  
  .header-icons {
    width: 60px;
    gap: 2px;
  }
  
  .header-icons button {
    padding: 4px;
    font-size: 12px;
  }
  
  .chat-header {
    padding: 12px 16px;
  }
  
  .auth-indicator {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 16px;
  }
  
  .auth-level {
    font-size: 10px;
  }
  
  .auth-light {
    width: 6px;
    height: 6px;
  }
  
  .chat-header h3 {
    font-size: 14px;
  }
  
  .chat-messages {
    padding: 12px;
  }
  
  .message {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .detail-actions {
    flex-direction: column;
  }
  
  .booking-btn,
  .universal-back-btn {
    text-align: center;
    justify-content: center;
  }
  
  /* Header responsive for small screens */
  .header-title {
    font-size: 12px;
  }
  
  /* Footer responsive for small screens */
  .footer-content {
    width: 80%;
    max-width: 640px;
    padding: 0 5px;
    gap: 2px;
  }
  
  .footer-menu-btn {
    min-width: 45px;
    padding: 4px 6px;
  }
  
  .footer-menu-btn i {
    font-size: 14px;
  }
  
  .footer-menu-btn span {
    font-size: 8px;
  }
}

/* PRIEIGAMUMO GERINIMAS */
.universal-details-link:focus,
.booking-btn:focus,
.universal-back-btn:focus,
.agent-folder-button:focus,
#send-btn:focus,
#chat-input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* UTILITIES */
.text-small {
  font-size: 12px;
}

/* FLOW PROGRESS STYLES */
.flow-progress {
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.progress-text {
  font-size: 12px;
  color: #667eea;
  font-weight: 700;
  white-space: nowrap;
}

.cancel-flow-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.cancel-flow-btn:hover {
  background: #dc2626;
}

.cancel-flow-btn:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* STT Recording visual feedback */
#record-btn.recording {
  background: #ef4444 !important;
  animation: pulse 1s infinite;
}

.agent-content strong {
  color: #000000;
  font-weight: 700;
}

.agent-examples strong {
  font-size: 12px;
  color: #000000;
  margin-right: 6px;
  font-weight: 700;
}

.example-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px 4px 2px 0;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}

.example-tag:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ===== QUOTE POPUP STYLES ===== */

.quote-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #FFC700;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.quote-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.quote-popup-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-popup-text {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: 1.6;
  text-align: left;
}

.quote-popup-author {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  text-align: right;
  font-style: italic;
  margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .quote-popup {
    padding: 20px;
    width: 85%;
  }

  .quote-popup-text {
    font-size: 14px;
  }

  .quote-popup-author {
    font-size: 12px;
  }
}

/* ===== CATEGORY CHIPS (WELCOME MESSAGE) ===== */

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-chip:hover {
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-chip:active {
  transform: translateY(0);
}

/* ===== CONTENT DETAIL VIEW (RENTALS, JOBS, EVENTS, SERVICES) ===== */

.content-detail-view {
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  overflow-y: auto;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-navigation {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.back-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000000;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #667eea;
  transform: translateX(-2px);
}

.content-cover-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #e0e0e0;
}

.content-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.content-header h1 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #1f2937;
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-meta i {
  color: #667eea;
}

.content-meta .price {
  color: #FFC700;
  font-weight: 700;
  font-size: 16px;
}

.content-body {
  padding: 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #000000;
  background: rgba(255, 255, 255, 0.7);
  flex: 1;
  overflow-y: auto;
}

.content-body p {
  margin: 0 0 16px 0;
}

.content-body strong {
  color: #000000;
  font-weight: 700;
}

.content-body a {
  color: #667eea;
  text-decoration: underline;
}

.content-body a:hover {
  color: #8094f7;
}

.content-actions {
  padding: 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.action-btn.favorite-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #000000;
  background: #FFC700;
  color: #000000;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.favorite-btn.favorited {
  background: #FFC700;
  border-color: #FFD700;
  color: #ffffff;
}

.action-btn.favorite-btn:hover {
  background: #000000;
  color: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn.share-btn {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #333333;
  background: #2d2d2d;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.share-btn:hover {
  background: #3d3d3d;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.content-error {
  text-align: center;
  padding: 60px 20px;
}

.content-error h3 {
  margin: 0 0 12px 0;
  color: #ef4444;
  font-size: 20px;
}

.content-error p {
  margin: 0 0 20px 0;
  color: #b0b0b0;
  font-size: 14px;
}

.btn-secondary {
  padding: 12px 24px;
  background: #2d2d2d;
  border: 2px solid #333333;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #3d3d3d;
  border-color: #667eea;
  transform: translateY(-2px);
}

.btn-primary {
  padding: 12px 24px;
  background: #667eea;
  border: 2px solid #667eea;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #5568d3;
  border-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ==========================================
   PROFILE SIDEBAR STYLES
   ========================================== */

/* Profile Welcome Screen */
.profile-welcome {
  padding: 1rem;
}

.welcome-icon {
  text-align: center;
  margin: 2rem 0 1rem;
}

.welcome-message {
  margin-bottom: 2rem;
}

/* Auth Benefits */
.auth-benefits {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.auth-benefits h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.benefits-list li {
  padding: 0.5rem 0;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.benefits-list li i {
  color: #4CAF50;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Auth Action Buttons */
.auth-action-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.l2-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.l2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.l3-btn {
  background: linear-gradient(135deg, #FFC700, #FFA500);
  color: #333;
}

.l3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 199, 0, 0.4);
}

/* Auth Registration Forms */
.auth-registration {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
}

.auth-submit-btn {
  width: 100%;
  padding: 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-submit-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-back-btn {
  width: 100%;
  padding: 0.75rem;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-back-btn:hover {
  background: #e0e0e0;
}

/* Info Box */
.info-box {
  background: #FFF3CD;
  border-left: 4px solid #FFA500;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.info-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.info-box li {
  margin: 0.25rem 0;
  color: #856404;
}

/* Active Sidebar State */
.interactive-sidebar.active {
  transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-benefits h3 {
    font-size: 1.1rem;
  }

  .benefits-list li {
    font-size: 0.9rem;
  }

  .auth-action-btn {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

/* Four Columns Container */
.four-columns-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.column-box {
  border: 2px solid rgba(255, 199, 0, 0.3);
  height: 100px;
  background: transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.column-box:hover {
  border-color: rgba(255, 199, 0, 0.8);
  background: rgba(255, 199, 0, 0.2);
  box-shadow: 0 6px 16px rgba(255, 199, 0, 0.3);
}

/* Mini Card Styling */
.mini-card {
  display: flex;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.mini-card-image {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.mini-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.column-box:hover .mini-card-image img {
  transform: scale(1.1);
}

.mini-card-content {
  width: 50%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.mini-card-content h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.mini-card-content p {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}

/* Mobile: 2 columns in 2 rows */
@media (max-width: 768px) {
  .four-columns-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px auto;
    padding-bottom: 80px; /* Space for footer */
  }

  .column-box {
    background: transparent;
    border: 2px solid rgba(255, 199, 0, 0.3);
  }
}

/* ============================================
   CHAT BUBBLE BUTTON
   ============================================ */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999;
  color: white;
  font-size: 24px;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.chat-bubble:active {
  transform: scale(0.95);
}

.chat-bubble.open {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.chat-bubble.open i::before {
  content: "\f00d"; /* FontAwesome times/close icon */
}

/* Chat bubble notification badge */
.chat-bubble-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Hide container by default when bubble is present */
.container.chat-hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Show container when chat is open */
.container.chat-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   CHAT MODE - Clean Chat View
   ============================================
   When chat is open, hide main content and show only:
   - Header
   - Chat container
   - Footer
   ============================================ */

body.chat-mode-active .four-columns-container,
body.chat-mode-active #stock-market-table-container,
body.chat-mode-active .quick-access-container,
body.chat-mode-active .search-box-fixed,
body.chat-mode-active .quick-post-cta,
body.chat-mode-active .full-page-content {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Make chat container take full space in chat mode - override .hidden and .chat-hidden */
body.chat-mode-active #chat-widget-container.container,
body.chat-mode-active #chat-widget-container.container.hidden,
body.chat-mode-active #chat-widget-container.container.chat-hidden {
  position: fixed !important;
  top: 80px !important;
  bottom: 30px !important; /* Above footer (30px) */
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: calc(100vh - 110px) !important; /* 80px header + 30px footer */
  min-height: calc(100vh - 110px) !important;
  max-height: calc(100vh - 110px) !important;
  z-index: 1001 !important; /* Above footer (1000) */
  background: #000000 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

body.chat-mode-active #chat-widget-container.container .main-content,
body.chat-mode-active #chat-widget-container.container.hidden .main-content,
body.chat-mode-active #chat-widget-container.container.chat-hidden .main-content {
  flex: 1 !important;
  max-width: 1200px !important;
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

/* Fix agent widget in chat mode */
body.chat-mode-active #chat-widget-container #chat-container {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: 100% !important;
}

body.chat-mode-active #agent-widget {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  min-height: 0 !important;
  height: 100% !important;
}

body.chat-mode-active #agent-widget .chat-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

body.chat-mode-active #agent-widget .chat-input-container {
  flex-shrink: 0 !important;
  background: #000000 !important;
  border-top: 1px solid #333333 !important;
  padding: 12px !important;
}

/* Lift chat bubble in chat mode to avoid footer overlap */
body.chat-mode-active .chat-bubble {
  bottom: 80px !important; /* Lifted above footer + input area */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .chat-bubble {
    bottom: 90px; /* Above footer menu */
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  body.chat-mode-active #chat-widget-container {
    bottom: 70px; /* Above mobile footer */
  }
}
