/* IAMSHIBA Floating Chatbot / Guide (MVP) — Dark Clean */
/* Palette: charcoal / slate / deep blue */
:root{
  --iamshibot-bg: rgba(10, 15, 24, 0.92);
  --iamshibot-bg-2: rgba(15, 23, 42, 0.92);
  --iamshibot-border: rgba(148, 163, 184, 0.18);
  --iamshibot-text: #e5e7eb;
  --iamshibot-muted: rgba(229, 231, 235, 0.72);
  --iamshibot-accent: #3b82f6;
  --iamshibot-accent-2: #1d4ed8;
  --iamshibot-shadow: 0 18px 55px rgba(0,0,0,0.55);
  --iamshibot-radius: 16px;
  --iamshibot-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
}

/* Floating Action Button */
.iamshibot-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:54px;
  height:54px;
  border-radius:999px;
  background:#0b0f16;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 99999;
}
.iamshibot-fab:hover{
  box-shadow: 0 14px 34px rgba(0,0,0,0.62);
  transform: translateY(-1px);
}
.iamshibot-fab__img{
  width:34px;
  height:34px;
  image-rendering: pixelated;
}

/* Backdrop */
.iamshibot-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  z-index: 99990;
}
.iamshibot-backdrop.is-hidden{ display:none; }

/* Panel */
.iamshibot-panel{
  position:fixed;
  right:18px;
  bottom:84px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 470px;
  max-height: calc(100vh - 120px);
  background: var(--iamshibot-bg);
  border: 1px solid var(--iamshibot-border);
  border-radius: var(--iamshibot-radius);
  box-shadow: var(--iamshibot-shadow);
  overflow:hidden;
  z-index: 99998;
  font-family: var(--iamshibot-font);
}
.iamshibot-panel.is-hidden{ display:none; }

.iamshibot-panel__head{
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px 0 10px;
  background: linear-gradient(90deg, rgba(2,6,23,0.75), rgba(15,23,42,0.80));
  border-bottom: 1px solid var(--iamshibot-border);
}
.iamshibot-panel__brand{
  width:26px; height:26px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  margin-right:8px;
}
.iamshibot-panel__brand img{
  width:18px; height:18px; image-rendering: pixelated;
}
.iamshibot-panel__title{
  flex:1;
  color: var(--iamshibot-text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.iamshibot-panel__actions{
  display:flex; gap:8px;
}
.iamshibot-btn{
  width:28px; height:28px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--iamshibot-text);
  font-size: 16px;
  line-height: 26px;
  padding:0;
}
.iamshibot-btn:hover{
  background: rgba(255,255,255,0.10);
}

/* Body */
.iamshibot-panel__body{
  height: calc(100% - 46px);
  display:flex;
  flex-direction:column;
  background: linear-gradient(180deg, rgba(17,24,39,0.55), rgba(2,6,23,0.55));
}

/* Thread */
.iamshibot-thread{
  flex: 1;
  overflow:auto;
  padding: 12px;
}
.iamshibot-msg{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  margin: 10px 0;
}
.iamshibot-msg.is-user{
  flex-direction: row-reverse;
}
.iamshibot-msg__avatar{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: 0 0 26px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.iamshibot-avatar__img{
  width: 18px; height: 18px;
  image-rendering: pixelated;
}
.iamshibot-avatar__initials{
  font-size: 11px;
  font-weight: 700;
  color: var(--iamshibot-text);
  opacity: 0.95;
}
.iamshibot-msg__bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--iamshibot-text);
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid rgba(255,255,255,0.10);
}
.iamshibot-msg.is-assistant .iamshibot-msg__bubble{
  background: rgba(15,23,42,0.70);
}
.iamshibot-msg.is-user .iamshibot-msg__bubble{
  background: linear-gradient(180deg, rgba(59,130,246,0.90), rgba(29,78,216,0.92));
  border-color: rgba(255,255,255,0.12);
}

/* Composer */
.iamshibot-composer{
  padding: 10px;
  border-top: 1px solid var(--iamshibot-border);
  display:flex;
  gap: 10px;
  align-items:flex-end;
  background: rgba(2,6,23,0.55);
}
.iamshibot-input{
  flex:1;
  resize:none;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--iamshibot-text);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.iamshibot-input::placeholder{ color: rgba(229,231,235,0.55); }
.iamshibot-input:focus{
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.iamshibot-send{
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(59,130,246,0.95);
  color: #fff;
  font-weight: 600;
}
.iamshibot-send:hover{
  background: rgba(29,78,216,0.98);
}

/* Minimized state (panel hidden but FAB visible) */
.iamshibot-panel.is-minimized{ display:none; }
