/* Agentic Slide-out Panel Styles */
.agentic-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 340px;
  max-width: 90vw;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0,0,0,0.08), 0 1.5px 0 #e74c3c inset;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.agentic-panel.open {
  transform: translateX(0);
}
.agentic-panel-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 22px 20px 10px 20px;
  border-bottom: 1px solid #ececec;
  background: #faf9f7;
}
.agentic-panel-engine-icon {
  font-size: 2.1rem;
  margin-right: 16px;
  color: #e74c3c;
  filter: drop-shadow(0 2px 8px #e74c3c33);
}
.agentic-panel-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.agentic-panel-close:hover {
  color: #e74c3c;
}
.agentic-panel-content {
  padding: 30px 24px 24px 24px;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.agentic-panel-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}
.agentic-panel-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 24px;
  padding-top: 8px;
  width: 100%;
}
.agentic-panel-btn {
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  background: #e74c3c;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(231,76,60,0.09);
  display: flex;
  align-items: center;
  gap: 8px;
}
.agentic-panel-btn:active, .agentic-panel-btn:focus {
  outline: none;
  background: #c62828;
}
.agentic-panel-btn.microphone {
  background: #f7f7f7;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  padding: 12px 16px;
}
.agentic-panel-btn.microphone:hover {
  background: #ffeaea;
}
@media (max-width: 1024px) {
  .agentic-panel {
    width: 96vw;
    max-width: 96vw;
    padding: 0;
  }
  .agentic-panel-content {
    padding: 24px 10px 18px 10px;
  }
  /* Move chatbot toggle button higher on mobile */
  #agentic-panel-toggle {
    position: fixed !important;
    right: 24px !important;
    bottom: 80px !important;
    z-index: 9999 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    /* DEBUG: force icon to always be visible and high */
  }
}

/* Chatbot overlay styles */
.agentic-chatbot-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,34,0.12);
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  transition: background 0.25s;
}
.agentic-chatbot-overlay.active {
  pointer-events: auto;
  background: rgba(34,34,34,0.25);
}
.agentic-chatbot-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: #fff;
  border-radius: 0 10px 0 0;
  box-shadow: 2px 0 24px rgba(0,0,0,0.13);
  z-index: 2110;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatbotSlideUp 0.33s cubic-bezier(.77,0,.18,1);
}
@keyframes chatbotSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.agentic-chatbot-header {
  background: #e74c3c;
  color: #fff;
  padding: 18px 22px;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agentic-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.agentic-chatbot-messages {
  flex: 1 1 auto;
  padding: 18px 22px 12px 22px;
  overflow-y: auto;
  background: #faf9f7;
  min-height: 240px;
}
.agentic-chatbot-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 18px 14px 18px;
  border-top: 1px solid #ececec;
  background: #fff;
}
.agentic-chatbot-input {
  flex: 1 1 auto;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 1rem;
  background: #fafafa;
}
.agentic-chatbot-send-btn {
  border: none;
  background: #e74c3c;
  color: #fff;
  border-radius: 5px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.agentic-chatbot-send-btn:active, .agentic-chatbot-send-btn:focus {
  background: #c62828;
}
@media (max-width: 1024px) {
  .agentic-chatbot-box {
    width: 99vw;
    left: 0;
    border-radius: 0;
  }
}
