/* public/themes/TON_THEME/css/attelann-bot.css */

:root {
  --primary:#1E88E5;
  --bg:#ffffff;
  --muted:#f5f7fa;
  --text:#222;
  --accent:#0b76d1;
  --radius:14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Floating button */
#plombi-btn{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width:64px;
  height:64px;
  border-radius:50%;
  background:var(--primary);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  cursor:pointer;
  box-shadow: 0 8px 24px rgba(30,136,229,0.28);
  z-index:10000;
}

/* Chat window */
#plombi-window{
  position: fixed;
  right: 20px;
  bottom: 96px;
  width:360px;
  max-width:calc(100% - 40px);
  height:520px;
  border-radius:var(--radius);
  background:var(--bg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  z-index:10000;
  transform-origin: bottom right;
}

#plombi-header{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:white;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:center;
}
#plombi-header img{ width:36px; height:36px; border-radius:8px; object-fit:cover; }
#plombi-header .title{ font-weight:700; font-size:15px; }
#plombi-header .sub{ font-size:12px; opacity:0.92; }

#plombi-body{
  flex:1;
  padding:12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow:auto;
}

.msg{
  max-width:82%;
  padding:10px 12px;
  margin:8px 0;
  border-radius:12px;
  font-size:14px;
  line-height:1.35;
}
.bot{ background:var(--muted); color:var(--text); align-self:flex-start; }
.user{ background:var(--primary); color:white; align-self:flex-end; }

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.action-btn{
  background:white;
  border:1px solid #e6eefb;
  color:var(--primary);
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

#plombi-inputbar{
  border-top:1px solid #eef6ff;
  padding:10px;
  display:flex;
  gap:8px;
  align-items:center;
}
#plombi-input{
  flex:1;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid #e6eefb;
  outline:none;
  font-size:14px;
}
#plombi-send{
  background:var(--primary);
  color:white;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  border:none;
  font-weight:700;
}

/* small helpers */
.muted{ color:#6b7280; font-size:13px; }
label.small{ font-size:13px; color:#4b5563; display:block; margin-bottom:6px; }

.form-row{ display:flex; gap:8px; margin-top:8px; }
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select{
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #e6eefb;
  font-size:14px;
}
button.primary{
  background:var(--primary);
  color:white;
  border:none;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
}

.file-preview{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.thumb{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #e6eefb;
}

.notice{
  padding:10px;
  border-radius:8px;
  background:#fffbea;
  border:1px solid #fff1b8;
  color:#714e00;
  font-size:13px;
  margin-top:8px;
}

/* responsive */
@media (max-width:420px){
  #plombi-window{
    width:92%;
    right:4%;
    left:4%;
    bottom:80px;
    height:60vh;
  }
  #plombi-btn{
    right:14px;
    bottom:14px;
  }
}
