/* ===== AjutorBot styles ===== */

:root {
  --ajb-bg: #ffffff;
  --ajb-fg: #111827;
  --ajb-muted: #6b7280;
  --ajb-primary: #004080;
  --ajb-radius: 12px;
  --ajb-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* container principal */
.ajb-container {
  width: 100%;
  max-width: 420px;
  background: var(--ajb-bg);
  border-radius: var(--ajb-radius);
  box-shadow: var(--ajb-shadow);
  margin: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* header */
.ajb-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.ajb-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ajb-primary);
}

/* chat box */
.chat-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px;
}
.chat-box {
  border: 1px solid #e5e7eb;
  border-radius: var(--ajb-radius);
  height: 320px;
  overflow-y: auto;
  padding: 12px;
  margin-bottom: 10px;
  background: #f9fafb;
  font-size: 14px;
  line-height: 1.45;
}
.message {
  margin: 6px 0;
}
.message strong {
  display: inline-block;
  min-width: 80px;
  color: var(--ajb-primary);
}

/* input */
.input-area {
  display: flex;
  gap: 8px;
}
.input-area input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--ajb-radius);
  font-size: 14px;
}
.input-area input:focus {
  outline: none;
  border-color: var(--ajb-primary);
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.2);
}

/* buton */
.input-area button {
  padding: 10px 16px;
  border: none;
  border-radius: var(--ajb-radius);
  background: var(--ajb-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.input-area button:hover {
  background: #0059b3;
}
.input-area button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* accesibilitate */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* responsive */
@media (max-width: 480px) {
  .ajb-container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
  }
  .chat-box {
    flex: 1;
    height: auto;
    min-height: 60vh;
  }
}