/* AI Satelite — MT-B Association · Valais, CH */

#aisat-header-block {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-bottom: none;
  border-radius: 12px;
margin-bottom: -12px;
padding-bottom: 28px;
  padding: 22px 20px 16px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
}

#aisat-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

#aisat-header-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: .9;
}

#aisat-header-logo-text {
  font-size: 21px;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#aisat-header-title {
  font-size: 12px;
  color: #888;
  letter-spacing: .5px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

#aisat-header-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#aisat-header-tags span {
  background: #faf8f5;
  border: 1px solid #d8cfc5;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  color: #555;
  font-family: Arial, sans-serif;
  letter-spacing: .3px;
}

#aisat-header-crisis {
  font-size: 11.5px;
  color: #7a3020;
  border: 1px solid #e8c9bb;
  background: #fdf6f3;
  border-radius: 6px;
  padding: 7px 14px;
  font-family: Arial, sans-serif;
}

#aisat-widget {
  font-family: Arial, sans-serif;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #e8e0d8;
  border-top: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(107,63,42,.08);
}

#aisat-header {
  background: #6B3F2A;
  color: #fff;
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .5px;
}

#aisat-status {
  font-size: 11px;
  opacity: .7;
  font-weight: normal;
}

#aisat-messages {
  padding: 16px;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  background: #14100A;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#aisat-messages::-webkit-scrollbar { width: 4px; }
#aisat-messages::-webkit-scrollbar-track { background: transparent; }
#aisat-messages::-webkit-scrollbar-thumb { background: #d8cfc5; border-radius: 4px; }

.aisat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.aisat-bot {
background: #2A1E14;
color: #F2EBE1;
border: 1px solid rgba(255,255,255,0.07);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
 }

.aisat-user {
  background: #6B3F2A;
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}

#aisat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background:  #241508;
  border-top: 1px solid #e8e0d8;
}

#aisat-input {
  flex: 1;
border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  resize: none;
  font-family: Arial, sans-serif;
  outline: none;
  background: rgba(255,255,255,0.06);
color: #F2EBE1;
  line-height: 1.5;
  transition: border-color .2s;
}

#aisat-input:focus {
  border-color: #6B3F2A;
background: rgba(255,255,255,0.06);
  color: #F2EBE1;

}

#aisat-input::placeholder {
  color: #bbb;
  font-size: 13px;
}

#aisat-send {
  background: #6B3F2A;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 0;
  animation: breathe 6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(107,63,42,.4); 
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#aisat-send:hover {
  background: #4e2d1e;
  animation: none;
  transform: scale(1.08);
}

#aisat-send:disabled {
  background: #c4a696;
  animation: none;
  cursor: not-allowed;
  transform: none;
}

@keyframes breathe {0%   { transform: scale(1);    outline: 3px solid rgba(107,63,42,.0); outline-offset: 0px; }
  40%  { transform: scale(1.08); outline: 3px solid rgba(107,63,42,.45); outline-offset: 6px; }
  100% { transform: scale(1);    outline: 3px solid rgba(107,63,42,.0); outline-offset: 0px; }
}

#aisat-disclaimer {
  background: #241508;
  color: rgba(242, 235, 225, 0.55);
  font-size: 11px;
  padding: 8px 14px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  line-height: 1.5;
}
#aisat-mic {
  background: #6B3F2A;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}

#aisat-mic:hover {
  background: #4e2d1e;
  transform: scale(1.08);
}

#aisat-mic:disabled {
  background: #a8d5cd;
  cursor: not-allowed;
  transform: none;
}

#aisat-mic.recording {
  background: #C0392B;
  animation: mic-pulse 1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%   { box-shadow: 0 0 0 0px  rgba(192,57,43,.5); transform: scale(1); }
  50%  { box-shadow: 0 0 0 10px rgba(192,57,43,.0); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0px  rgba(192,57,43,.0); transform: scale(1); }
}
/* ── Tree menu buttons ──────────────────────────────────────────────────── */
.aisat-tree-btn {
  padding: 6px 4px;
  border: 1px solid rgba(107,63,42,0.45);
  border-radius: 8px;
  background: rgba(107,63,42,0.25);
  color: #e8d5c4;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.aisat-tree-btn:hover {
  background: rgba(107,63,42,0.55);
}

.aisat-tree-btn:hover {
  background: rgba(107,63,42,0.55);
}
.aisat-tree-btn:hover {
  background: #8B5A3A;
}
.aisat-main-menu {
  margin-top: 4px;
  padding-bottom: 4px;
}
