/**
 * Phoi Editor Styles
 * ==================
 * CSS cho trang tạo phôi kháng (phoi.html)
 */

body {
  font-family: "Inter", sans-serif;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 14px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  padding: 10px;
}

::-webkit-scrollbar-track-piece {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #c2c2c2;
  border-radius: 5px;
}

.wrapper {
  overflow: auto;
  width: 100vw;
  height: calc(100vh - 120px);
  background-color: #e9f2fd;
  padding: 30px;
}

.phoi-elm {
  cursor: grab;
  font-size: 14px;
  font-weight: 600;
}

#card {
  position: relative;
  display: inline-block;
}

.elm {
  position: absolute;
}

.elm.active {
  outline: 2px dashed #0d6efd;
  outline-offset: 2px;
}

.panel {
  width: 100%;
  height: 120px;
  background-color: #fff;
}

[data-type] {
  cursor: grab;
}

[data-type="image"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-type="seal"] img {
  width: 100%;
  height: 100%;
}

/* jQuery UI Resizable handles */
.ui-resizable-n,
.ui-resizable-s {
  left: 50%;
  transform: translateX(-50%);
}

.ui-resizable-e,
.ui-resizable-w {
  top: 50%;
  transform: translateY(-50%);
}

.ui-resizable-sw {
  left: -10px;
  bottom: -10px;
}

.ui-resizable-se {
  right: -10px;
  bottom: -10px;
  background-image: none !important;
}

.ui-resizable-ne {
  top: -10px;
  right: -10px;
}

.ui-resizable-n {
  top: -10px;
}

.ui-resizable-w {
  left: -10px;
}

.ui-resizable-e {
  right: -10px;
}

.ui-resizable-s {
  bottom: -10px;
}

.ui-resizable-nw {
  top: -10px;
  left: -10px;
}

.ui-resizable-handle {
  background-color: #0d6efd;
  border-radius: 100%;
  display: none !important;
  width: 15px;
  height: 15px;
}

.elm.active .ui-resizable-handle {
  display: block !important;
}

/* File inputs hidden */
#newImage,
#loadSeal {
  width: 0;
  height: 0;
  overflow: hidden;
}

label[for="newImage"] {
  cursor: pointer;
}

/* Phoi list items */
.phoiItem {
  position: relative;
  cursor: pointer;
}

.phoiItem.active {
  background-color: #f5f5f5;
}

.phoiItem.active i {
  display: block;
}

.phoiItem i {
  display: none;
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
}
