/* Ask Al — Express Transit Staff Portal
   Brand: ET Navy #1A1F8C, ET Red #CC1122 */

#askal-container {
  font-family: Arial, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid #d0d4f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,31,140,0.10);
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 680px;
}

/* Header */
#askal-header {
  background: #fff;
  border-bottom: 3px solid #1A1F8C;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#askal-logo-area {
  display: flex;
  flex-direction: column;
}
#askal-title {
  font-size: 18px;
  font-weight: bold;
  color: #1A1F8C;
  letter-spacing: -0.3px;
}
#askal-subtitle {
  font-size: 11px;
  color: #666;
}
#askal-clear {
  background: none;
  border: 1px solid #d0d4f0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
#askal-clear:hover { background: #f5f6ff; }

/* Messages */
#askal-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9ff;
}
.askal-message { display: flex; }
.askal-message.askal-user { justify-content: flex-end; }
.askal-message.askal-assistant { justify-content: flex-start; }

.askal-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.askal-user .askal-bubble {
  background: #1A1F8C;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.askal-assistant .askal-bubble {
  background: #fff;
  color: #222;
  border: 1px solid #e0e3f5;
  border-bottom-left-radius: 3px;
}

/* Typing indicator */
.askal-typing .askal-bubble {
  background: #fff;
  border: 1px solid #e0e3f5;
  padding: 14px;
}
.askal-dots { display: flex; gap: 4px; }
.askal-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1A1F8C;
  animation: askal-bounce 1.2s infinite;
}
.askal-dots span:nth-child(2) { animation-delay: 0.2s; }
.askal-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes askal-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Quick buttons */
#askal-quick-buttons {
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border-top: 1px solid #eef0fa;
  flex-shrink: 0;
}
.askal-quick {
  background: #f0f2ff;
  border: 1px solid #c8ccee;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  color: #1A1F8C;
  cursor: pointer;
  white-space: nowrap;
}
.askal-quick:hover { background: #e0e4ff; }

/* Input area */
#askal-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #eef0fa;
  flex-shrink: 0;
}
#askal-input {
  flex: 1;
  border: 1px solid #d0d4f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  resize: none;
  max-height: 90px;
  overflow-y: auto;
  outline: none;
}
#askal-input:focus { border-color: #1A1F8C; }
#askal-send {
  background: #CC1122;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#askal-send:hover { background: #a80e1b; }
#askal-send:disabled { background: #ccc; cursor: not-allowed; }

/* Formatted response content */
.askal-bubble strong { font-weight: bold; }
.askal-bubble em { font-style: italic; }
.askal-bubble br { display: block; margin: 2px 0; }

/* Scrollbar */
#askal-messages::-webkit-scrollbar { width: 5px; }
#askal-messages::-webkit-scrollbar-track { background: transparent; }
#askal-messages::-webkit-scrollbar-thumb { background: #c8ccee; border-radius: 3px; }

/* Mobile */
@media (max-width: 600px) {
  #askal-container { height: 100vh; border-radius: 0; }
  .askal-bubble { max-width: 90%; }
}
