/* === Phone Mockup (only styles Bootstrap 4.6 / AdminLTE 3 can't express) === */

.phone-frame {
  width: 360px;
  height: 720px;
  border: 3px solid #333;
  border-radius: 36px;
}

.phone-status-bar {
  height: 24px;
  font-size: 10px;
}

.phone-content {
  flex: 1;
  overflow-y: auto;
  background: #f5f5f5;
}

.phone-tabbar {
  height: 48px;
}

.tabbar-item {
  font-size: 10px;
  cursor: pointer;
}

.tabbar-item.active {
  color: #07c160;
}

.tabbar-item i {
  font-size: 18px;
}

.banner-area {
  height: 150px;
  background: #e8e8e8;
}

/* Phone carousel — smaller controls for mockup preview */
#phoneBannerCarousel .carousel-control-prev,
#phoneBannerCarousel .carousel-control-next {
  width: 15%;
  opacity: 0.6;
}
#phoneBannerCarousel .carousel-control-prev-icon,
#phoneBannerCarousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}
#phoneBannerCarousel .carousel-indicators {
  margin-bottom: 4px;
}
#phoneBannerCarousel .carousel-indicators li {
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
}

.mockup-area:hover {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.mockup-area-label {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.sortable-handle {
  cursor: grab;
}

.sortable-handle:active {
  cursor: grabbing;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* === Banner Config (minimal custom CSS — layout via Bootstrap 4.6 utilities) === */

.banner-row.list-group-item {
  margin-bottom: 0.5rem;
  padding: 0;
  border-left: 3px solid #007bff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, opacity 0.3s, transform 0.3s, margin 0.3s, max-height 0.3s;
}
.banner-row.list-group-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.banner-row.list-group-item:last-child {
  margin-bottom: 0;
}

/* Show handle & delete button on hover */
.banner-row .sortable-handle {
  opacity: 0.3;
  transition: opacity 0.2s;
}
.banner-row:hover .sortable-handle {
  opacity: 0.7;
}
.banner-delete-btn {
  opacity: 0;
  transition: opacity 0.2s;
}
.banner-row:hover .banner-delete-btn {
  opacity: 1;
}

/* Remove animation */
.banner-row.removing {
  opacity: 0;
  transform: translateX(30px);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* === Image Upload Area (shared by banner, entry, etc.) === */

.upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 0.25rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-area:hover {
  border-color: #007bff;
  background: #f0f7ff;
}
.upload-area.uploading {
  pointer-events: none;
}
.upload-area.uploading > .preview,
.upload-area.uploading > .placeholder-icon {
  opacity: 0.5;
}

/* Dimension variants */
.upload-area:not(.upload-area--sm) {
  width: 200px;
  height: 110px;
}
.upload-area--sm {
  width: 80px;
  height: 80px;
}

/* Image overlay on hover */
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0.25rem;
  pointer-events: none;
}
.upload-area:hover .image-overlay {
  opacity: 1;
}

/* Upload progress — uses Bootstrap .progress, only position is custom */
.upload-area .progress {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
}
.upload-area--sm .progress {
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 14px;
}

/* Placeholder & Preview */
.upload-area:not(:has(.preview)) .placeholder-icon {
  display: block;
}
.upload-area:has(.preview) .placeholder-icon {
  display: none;
}
.placeholder-icon {
  text-align: center;
  color: #adb5bd;
}
.preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

