/* Pagrindiniai stiliai */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  background: #000000;
  background-size: cover;
  margin-left: 0;
  transition: margin-left 0.3s ease-in-out;
  padding-top: 30px;
  padding-bottom: 80px;
}

/* 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: 800px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  text-align: center;
}

/* Footer Bar */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  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);
}

.footer-content {
  width: 80%;
  max-width: 640px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.footer-menu-btn {
  background: #FFC700;
  border: none;
  color: #000000;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  font-size: 12px;
  font-weight: 700;
}

.footer-menu-btn:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-menu-btn.active {
  background: #000000;
  color: #FFC700;
}

.footer-menu-btn.active:hover {
  background: #000000;
  color: #FFD700;
}

.footer-menu-btn i {
  font-size: 18px;
}

.footer-menu-btn span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body.sidebar-open {
  margin-left: 0;
}

/* Sidebar styling - updated */
.interactive-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100%;
  background-color: #FFD700;
  backdrop-filter: blur(8px);
  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);
}

/* Container adjustment when sidebar open */
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #000000;
  backdrop-filter: blur(6px);
  border-radius: 12px;
  height: calc(100vh - 40px);
  transition: margin-left 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

/* 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: 20px;
  max-width: calc(100% - 370px);
}

/* 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;
}

.sidebar-back-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  width: 100%;
  font-weight: 700;
}

.sidebar-back-btn:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.3);
}

.sidebar-back-btn i {
  font-size: 12px;
}

html, body {
  height: 100%;
}

/* Auth Status Indicator */
.auth-indicator {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  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);
  animation: slideInAuthLeft 0.5s ease-out;
  cursor: pointer;
  transition: all 0.3s ease;
}

.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 */
.container {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  background-color: #000000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  height: calc(100vh - 110px);
  margin-top: 20px;
}

.main-content {
  flex-grow: 1;
  padding: 10px;
}

/* Interaktyvus šoninis meniu */
.interactive-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100%;
  background-color: #FFD700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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);
}

/* Naujas sidebar header */
.sidebar-header-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FFC700;
  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);
}


.sidebar-content { 
  overflow-y: auto; 
  padding: 20px; 
  flex: 1;
  background: #FFD700;
}

.close-sidebar-btn { 
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  border: none; 
  border-radius: 50%; 
  width: 28px; 
  height: 28px; 
  font-size: 20px; 
  cursor: pointer; 
  transition: background-color 0.2s;
}

.close-sidebar-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* Header Icons - VISI tamsiai geltoni */
.header-icons button { 
  background: #FFC700 !important;
  border: none; 
  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: #FFD700 !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;
}

/* Favorites badge - juodas su geltonu tekstu */
.favorites-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #000000;
  color: #FFD700;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFC700;
}

/* AGENT-WIDGET STILIAI */
#chat-container { 
  height: 600px; 
}

#agent-widget { 
  width: 100%; 
  height: 500px; 
  background: #000000;
  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: #000000;
  color: white; 
  padding: 16px 20px; 
  border-radius: 12px 12px 0 0; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #333333;
}


/* Quick Post Button */
.quick-post-btn {
  background: #2d2d2d;
  color: #10b981;
  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: #10b981;
  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: 120px;
}

.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;
}

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  background: #000000;
}

.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: #1a1a1a;
  color: #ffffff;
  align-self: flex-start; 
  border: 1px solid #333333;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.message-content {
  flex: 1;
}

.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: 12px; 
  border-top: 1px solid #333333;
  display: flex; 
  gap: 8px; 
  align-items: center;
  background: #000000;
}

#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;
  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;
  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;
}

/* Modern Agents Container */
.agents-modern-container {
  padding: 0;
}

.agents-hero {
  padding: 24px 20px;
  text-align: center;
  background: #87CEEB;
  border-radius: 12px 12px 0 0;
  margin-bottom: 20px;
}

.hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.agents-hero h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Modern Agent Cards */
.agents-grid-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.agent-card-modern {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease-out;
  will-change: transform;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.agent-card-modern:hover {
  border-color: #000000;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.agent-icon-large {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.agent-info-modern {
  flex: 1;
  min-width: 0;
}

.agent-info-modern h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.agent-info-modern p {
  margin: 0;
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
  font-weight: 600;
}

.agent-arrow {
  color: #1f2937;
  font-size: 14px;
  transition: all 0.2s;
}

.agent-card-modern:hover .agent-arrow {
  color: #000000;
  transform: translateX(4px);
}

.agents-footer {
  padding: 16px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.agents-footer p {
  margin: 0;
  font-size: 12px;
  color: #1f2937;
  font-weight: 600;
}

/* 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, #10b981, #059669);
  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.9);
  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, 1);
}

.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.9);
  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, 1);
  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.9);
  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, 1);
  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: #10B981;
  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: white;
  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: 12px 16px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.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-direction: column;
  gap: 0;
}

/* Compact Listings */
.compact-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.15s ease-out;
}

.compact-listing:hover {
  background: rgba(255, 255, 255, 1);
}

.listing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.listing-number {
  display: none;
}

.listing-emoji {
  display: none;
}

.listing-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-location {
  font-size: 12px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.listing-price {
  display: none;
}

.listing-category {
  display: none;
}

.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: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 16px;
}

.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: white;
  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;
}

.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: #10b981;
  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: #10b981;
}

.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: #10b981;
  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: #059669;
}

.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);
}

.favorites-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: pulse 2s infinite;
}

.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-direction: column;
  gap: 0;
}

.favorite-card {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.favorite-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.favorite-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.favorite-card-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
  flex: 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: 12px;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.4;
  font-weight: 600;
}

.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);
}