/* === AI Side Panel Styling === */

/* Offcanvas tweaks */
#ai-sidepanel {
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.15);
  border-left: 1px solid #e5e5e5;
  background-color: #fff;
  transition: transform 0.3s ease-in-out;
}

/* Button styling */
#open-ai-panel {
  transition: all 0.3s ease;
}
#open-ai-panel:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Context preview */
#ai-context-preview {
  font-family: "Consolas", "Courier New", monospace;
  background-color: #fafafa;
  border-radius: 4px;
  padding: 8px 10px;
  line-height: 1.4;
  white-space: pre-wrap;
  font-size: 13px;
}

/* Tabs */
#ai-tabs {
  font-size: 14px;
}
#ai-tabs .tab--selected {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* Collapse animation for context */
#context-collapse {
  transition: max-height 0.25s ease-out;
}

/* Scrollbar inside Offcanvas */
#ai-sidepanel::-webkit-scrollbar {
  width: 6px;
}
#ai-sidepanel::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* AI insights text elements */
.ai-insight-title {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}

.ai-insight-body {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.agentic-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 8px;
}
.agentic-card h5 {
  font-weight: 600;
  color: #1b4f72;
}

.badge {
  font-size: 0.85rem;
}


.badge span:hover {
  color: red;
  transform: scale(1.2);
  transition: all 0.1s ease;
}
.select, input {
  font-size: 0.9rem;
}

.chat-feed .fw-bold {
    margin-bottom: 2px;
}
.chat-feed .p-2 {
    background-color: #fff;
}
.chat-feed .agentic-card {
    border: none;
    background: transparent;
}

/* ---- reduce top space for Agentic Workspace ---- */
body, ._dash-loading, #react-entry-point {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* tighten spacing in container */
.container-fluid {
    padding-top: 4px !important;
}

/* reduce space above H2 and paragraph */
h2.mb-1 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}
p {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

/* console area uses nearly full height */
.chat-feed {
    height: calc(90vh - 250px) !important;  /* adjust if needed */
}
/* Chat container */
.chat-feed {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 70vh;
    padding: 8px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* Message bubbles */
.user-msg {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-radius: 12px 12px 0 12px;
}
.bot-msg {
    align-self: flex-start;
    background-color: #f1f3f5;
    border-radius: 12px 12px 12px 0;
}


/* Sticky input bar */
.agentic-input-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 6px 8px;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
}

.glass-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    border-color: rgba(255,255,255,0.8);
}
