/* DatHouzz AI — Cầu nối Flow (bridge.css) v2.0.0 */

/* Ẩn mọi thứ liên quan tới credit/điểm */
.dhai-flow-hidden { display: none !important; }

html.dhai-ext-ready .dhai-flow-banner { display: none !important; }

/* ------------------------------------------------------------------ */
/* Banner nhắc cài tiện ích                                            */
/* ------------------------------------------------------------------ */

.dhai-flow-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dhai-flow-banner-in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #111827;
  color: #f3f4f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  font: 14px/1.45 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

.dhai-flow-ico { font-size: 18px; line-height: 1; }
.dhai-flow-txt { flex: 1; }

.dhai-flow-btn {
  flex: none;
  padding: 7px 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
}
.dhai-flow-btn:hover { background: #1d4ed8; }

.dhai-flow-x {
  flex: none;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.dhai-flow-x:hover { color: #f3f4f6; }

/* ------------------------------------------------------------------ */
/* Thanh trạng thái khi đang tạo ảnh                                   */
/* ------------------------------------------------------------------ */

.dhai-flow-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #111827;
  color: #f3f4f6;
  font: 13.5px/1.4 system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
}

.dhai-flow-bar.on { opacity: 1; transform: translateY(0); }

.dhai-flow-bar-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dhai-flow-spin {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #60a5fa;
  animation: dhai-flow-rot .8s linear infinite;
}

@keyframes dhai-flow-rot { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .dhai-flow-spin { animation-duration: 3s; }
  .dhai-flow-bar { transition: none; }
}

@media (max-width: 560px) {
  .dhai-flow-banner-in { flex-wrap: wrap; }
  .dhai-flow-txt { flex-basis: 100%; }
}

/* ------------------------------------------------------------------ */
/* Khối tải nhiều góc SketchUp (module Đồng bộ view)                   */
/* ------------------------------------------------------------------ */

#dhai-flow-angles { margin-top: 14px; }
#dhai-flow-angles * { box-sizing: border-box; }

.dhai-flow-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 104px;
  padding: 14px 12px;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}

.dhai-flow-drop:hover,
.dhai-flow-drop.over {
  border-color: #e11d2f;
  background: rgba(225, 29, 47, .07);
}

.dhai-flow-drop .mi {
  font-size: 26px;
  opacity: .75;
}

.dhai-flow-drop-t {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .85;
}

.dhai-flow-drop-s {
  font-size: 11px;
  opacity: .55;
  line-height: 1.35;
}

.dhai-flow-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dhai-flow-thumb {
  position: relative;
  flex: none;
  line-height: 0;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}

.dhai-flow-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: cover;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.dhai-flow-thumb-n {
  position: absolute;
  left: 4px;
  top: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
}

.dhai-flow-thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}

.dhai-flow-thumb-x:hover { background: #e11d2f; }
