/* ==========================================
   Animation Template Module Styles
   ========================================== */

/* --- Upload Area --- */
#at-upload-area {
  margin: 8px 12px;
  padding: 16px 8px;
  border: 1px dashed #2A2A2A;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
#at-upload-area:hover {
  border-color: #3A3A3A;
  background: rgba(255,255,255,0.01);
}
#at-upload-area span {
  font-size: 11px;
  color: #666;
}
#at-upload-area input[type="file"] {
  display: none;
}

/* --- Image List --- */
#at-image-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}
#at-image-list .at-image-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
#at-image-list .at-image-item:hover {
  background: rgba(255,255,255,0.03);
}
#at-image-list .at-image-item.at-active {
  border-color: #00D4FF;
  background: rgba(0,212,255,0.05);
}
#at-image-list .at-image-item.at-selected {
  background: rgba(0,212,255,0.03);
}

/* --- Thumbnail --- */
#at-image-list .at-image-item .at-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
}
#at-image-list .at-image-item .at-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Info --- */
#at-image-list .at-image-item .at-info {
  flex: 1;
  min-width: 0;
}
#at-image-list .at-image-item .at-name {
  font-size: 11px;
  color: #aaa;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#at-image-list .at-image-item .at-size {
  font-size: 10px;
  color: #666;
}
#at-image-list .at-image-item {
  position: relative;
}
#at-image-list .at-image-item .at-delete-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF4444;
  border: 1.5px solid #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.15s;
  z-index: 2;
  padding: 0;
}
#at-image-list .at-image-item .at-delete-btn:hover {
  transform: scale(1.1);
  background: #FF6666;
}
#at-image-list .at-image-item:hover .at-delete-btn {
  opacity: 1;
}

/* --- Preview Area --- */
#at-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
#at-preview-canvas-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#at-preview-canvas-wrap canvas {
  max-width: 90%;
  max-height: 70vh;
  image-rendering: pixelated;
  border: 1px solid #2A2A2A;
  border-radius: 4px;
  background: repeating-conic-gradient(#1a1a1a 0% 25%, #222 0% 50%) 50% / 20px 20px;
}
#at-playback-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.at-play-btn {
  padding: 4px 16px;
  border: 1px solid #3A3A3A;
  border-radius: 4px;
  background: #1a1a1a;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s, color 0.15s;
}
.at-play-btn:hover {
  border-color: #00D4FF;
  color: #00D4FF;
}
#at-frame-indicator {
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
}
#at-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #444;
}
#at-empty-state p {
  font-size: 13px;
  color: #555;
}

/* --- Placeholder for anim-bone --- */
#ab-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 40px;
  text-align: center;
}
#ab-placeholder .placeholder-icon {
  opacity: 0.3;
}
#ab-placeholder h3 {
  font-size: 18px;
  color: #aaa;
  font-weight: 500;
}
#ab-placeholder p {
  font-size: 13px;
  color: #777;
  max-width: 320px;
  line-height: 1.6;
}
.placeholder-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.feature-item {
  font-size: 12px;
  color: #888;
  padding: 4px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.placeholder-hint {
  font-size: 11px;
  color: #555;
  margin-top: 8px;
}
