/* ============================================
   HtmlIframeRenderer - HTML iframe 渲染器样式
   类名前缀: wk-file-preview-html-iframe
   ============================================ */

.wk-file-preview-html-iframe--empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wk-text-secondary);
}

/* 加载中状态 */
.wk-file-preview-html-iframe__loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk-file-preview-html-iframe__spinner {
  width: 24px;
  height: 24px;
  color: #7171ee;
  animation: wk-html-iframe-spin 1s linear infinite;
}

@keyframes wk-html-iframe-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* iframe 样式 */
.wk-file-preview-html-iframe__iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: none;
}

.wk-file-preview-html-iframe__iframe--hidden {
  display: none;
}
