/* © 2026 ToolsFlash.com — GIF Maker tool styles */

.gm-frames-wrap { margin: 1.25rem 0; }
.gm-frames-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.gm-frames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.6rem;
}
.gm-thumb {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  cursor: grab;
  transition: box-shadow 0.15s ease, opacity 0.15s ease;
}
.gm-thumb:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.gm-thumb.dragging { opacity: 0.4; cursor: grabbing; }
.gm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gm-n {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
}
.gm-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-x:hover { background: #dc2626; }

.gm-small-btn {
  margin-top: 0.75rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-color);
  cursor: pointer;
}
.gm-small-btn:hover { border-color: var(--primary); color: var(--primary-dark); }

.gm-controls { margin-top: 1.25rem; }

.gm-progress { margin-top: 1.25rem; }
.gm-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--border-color);
  overflow: hidden;
}
.gm-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.2s ease;
}
.gm-status {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gm-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}
.gm-h {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: var(--text-color);
}
.gm-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.gm-out {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  background: #fff;
}

.gm-steps li { margin-bottom: 0.5rem; }

[data-theme="dark"] .gm-thumb:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .gm-out { background: #1f2937; }

@media (max-width: 640px) {
  .gm-frames { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .gm-result { padding: 1rem; }
}
