/* Buddy upload UI styles */

/* Composer attach button + row layout */
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}
.attach-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfd8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.attach-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.attach-btn:active { transform: scale(0.94); }

/* File chips above composer */
.composer-files {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  width: 100%;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  max-width: 280px;
}
.file-chip.uploading { border-color: rgba(120,180,255,0.4); }
.file-chip.ok        { border-color: rgba(80,200,140,0.5); }
.file-chip.err       { border-color: rgba(240,100,100,0.6); background: rgba(240,80,80,0.08); }
.file-chip .file-name {
  font-weight: 500; color: #e8edf0;
  max-width: 160px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-chip .file-size { color: #8b97a0; font-size: 11px; }
.file-chip .file-x {
  background: transparent; border: none; color: #8b97a0;
  cursor: pointer; padding: 0 2px; font-size: 12px;
}
.file-chip .file-x:hover { color: #fff; }
.file-chip .spin { display: inline-block; animation: spin 1s linear infinite; color: #6cf; }
.file-chip .ok   { color: #5c5; font-weight: 700; }
.file-chip .err  { color: #f55; font-weight: 700; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Full-screen drop overlay over chat */
.chat-drop-overlay {
  position: fixed; inset: 0;
  background: rgba(14,20,24,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
.chat-drop-overlay.visible {
  opacity: 1;
}
.chat-drop-inner {
  border: 2px dashed rgba(180,210,255,0.5);
  border-radius: 16px;
  padding: 48px 64px;
  text-align: center;
  color: #cfe0f0;
}
.chat-drop-inner p { margin: 12px 0 0; font-size: 18px; font-weight: 600; }

/* System-level drop zone in artifacts drawer */
.system-drop {
  margin: 12px 0 14px;
  padding: 14px;
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.system-drop:hover, .system-drop.drag-over {
  background: rgba(120,180,255,0.08);
  border-color: rgba(120,180,255,0.45);
}
.system-drop-inner {
  display: flex; align-items: center; gap: 10px;
  color: #cfd8dc; font-size: 13px;
}
.system-drop-inner strong { color: #fff; }
.system-drop .link-btn {
  background: transparent; border: none; color: #7ec0ff;
  cursor: pointer; text-decoration: underline; font: inherit; padding: 0;
}
.system-drop-status { margin-top: 6px; font-size: 12px; color: #8b97a0; min-height: 14px; }
.system-drop-status.uploading { color: #7ec0ff; }
.system-drop-status.ok { color: #6cd58a; }
.system-drop-status.err { color: #f78a8a; }

/* Layout fix: ensure composer wraps and composer-row spans full width */
.composer { flex-wrap: wrap; }
.composer-row { flex-basis: 100%; flex-grow: 1; }
.composer-hint { flex-basis: 100%; }
