/* --- Reset & Variables --- */
:root {
  --bg-main: #0c0d12;
  --bg-sidebar: #13151f;
  --bg-card: #1c1e2a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

/* --- Layout --- */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* --- Utility ID Classes --- */
.hiddenID {
  display: none !important;
}

/* --- Sidebar (Control Panel) --- */
.control-panel {
  width: 380px;
  min-width: 380px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.control-panel::-webkit-scrollbar {
  width: 6px;
}

.control-panel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.app-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.logo i {
  font-size: 24px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Sections */
.panel-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.section-title i {
  font-size: 16px;
}

/* Active File Card */
.active-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.file-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  color: var(--text-main);
}

/* Controls & Sliders */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
}

.value-display {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

.inline-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

/* Sliders */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-card);
  outline: none;
  border: 1px solid var(--border-color);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #7a7df8;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #7a7df8;
}

.slider-sm {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-card);
  outline: none;
  border: 1px solid var(--border-color);
}

.slider-sm::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
}

.slider-presets {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-xs {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  text-align: center;
}

.btn-xs:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.05);
}

/* Tabs */
.bg-tabs {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--bg-sidebar);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gradient Grid */
.gradient-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.grad-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.grad-card:hover {
  transform: scale(1.1);
}

.grad-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

#customGradBtn {
  background: var(--bg-card);
  border: 1px dashed var(--text-muted);
}

#customGradBtn i {
  font-size: 16px;
  color: var(--text-muted);
}

#customGradBtn.active i {
  color: var(--primary);
}

/* Custom Gradient Panel */
.custom-grad-panel {
  margin-top: 14px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.color-pickers-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.color-picker-wrapper input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.large-picker {
  justify-content: center;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
}

.large-picker input[type="color"] {
  width: 48px;
  height: 36px;
}

.angle-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Solid Presets */
.solid-presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.color-dot:hover {
  transform: scale(1.2);
}

.color-dot.active {
  border: 2px solid var(--primary);
  box-shadow: 0 0 5px var(--primary);
}

/* Info text */
.info-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 6px;
}

.info-text i {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Export Settings */
.export-format-selector {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border-color);
}

.radio-label {
  flex: 1;
  position: relative;
  cursor: pointer;
  text-align: center;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-label span {
  display: block;
  padding: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.radio-label input:checked + span {
  background: var(--bg-sidebar);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Footer / Actions */
.panel-footer {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 4px;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--danger);
}

/* --- Workspace / Main Area --- */
.workspace {
  flex: 1;
  height: 100%;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: auto;
}

/* Checkerboard workspace background (transparent visual aid) */
.workspace::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, #101117 25%, transparent 25%),
    linear-gradient(-45deg, #101117 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #101117 75%),
    linear-gradient(-45deg, transparent 75%, #101117 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.4;
  z-index: 0;
}

/* Drag & Drop Area */
.drop-zone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  background: rgba(19, 21, 31, 0.6);
  backdrop-filter: blur(8px);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(19, 21, 31, 0.8);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drop-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.drop-zone:hover .drop-icon-wrapper, .drop-zone.dragover .drop-icon-wrapper {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
}

.drop-icon-wrapper i {
  font-size: 32px;
}

.drop-zone h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.drop-zone p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 200px;
  color: var(--text-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider::before { margin-right: 12px; }
.divider::after { margin-left: 12px; }

.hidden-file-input {
  display: none;
}

/* Preview Canvas Container */
.preview-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  max-height: 100%;
  animation: fadeIn 0.3s ease;
}

.preview-canvas-wrapper {
  position: relative;
  padding: 0;
  background-image: 
    linear-gradient(45deg, #1a1c24 25%, transparent 25%),
    linear-gradient(-45deg, #1a1c24 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1c24 75%),
    linear-gradient(-45deg, transparent 75%, #1a1c24 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  max-height: calc(100vh - 200px);
}

#previewCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* --- Fixed Size Panel & Inputs --- */
.fixed-size-settings {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dimensions-inputs {
  display: flex;
  gap: 10px;
}

.dim-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.input-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}

.input-control:focus {
  border-color: var(--primary);
}

/* --- Presets Badges --- */
.presets-list {
  margin-top: 4px;
}

.preset-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.preset-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

.preset-badge span {
  white-space: nowrap;
}

.preset-badge .delete-preset-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.1s ease;
}

.preset-badge .delete-preset-btn:hover {
  color: var(--danger);
}

/* --- Switch Toggle Styles --- */
.switch-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  width: 100%;
}

.switch-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: .2s ease-in-out;
  border-radius: 22px;
  border: 1px solid var(--border-color);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .2s ease-in-out;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(16px);
  background-color: #ffffff;
}

/* --- Collapsible Content Drawers --- */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s cubic-bezier(0, 1, 0, 1), opacity 0.15s ease-out, margin 0.15s ease-out;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.collapsible-content.expanded {
  max-height: 1000px; /* High max-height to fit nesting */
  opacity: 1;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: max-height 0.25s ease-in, opacity 0.2s ease-in, margin 0.2s ease-in;
}

.workspace-info {
  background: rgba(19, 21, 31, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(28, 30, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }

.toast-message {
  font-size: 13px;
  font-weight: 500;
}

.toast-has-action {
  justify-content: space-between;
  min-width: 320px;
  gap: 20px;
}

.toast-action-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.toast-action-btn:hover {
  opacity: 0.9;
}

/* --- Responsive (Mobile / Tablet) --- */
@media (max-width: 850px) {
  .app-container {
    flex-direction: column-reverse;
    overflow-y: auto;
    height: auto;
  }
  
  .control-panel {
    width: 100%;
    min-width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--border-color);
    overflow-y: visible;
  }
  
  .workspace {
    height: 60vh;
    padding: 24px;
  }
  
  .preview-canvas-wrapper {
    max-height: calc(60vh - 80px);
  }
  
  #previewCanvas {
    max-height: calc(60vh - 80px);
  }
}

/* --- Dropdown Selector --- */
.select-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.select-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(99, 102, 241, 0.2);
}

/* --- Batch Section --- */
.batch-section {
  width: 100%;
  max-width: 600px;
  background: rgba(19, 21, 31, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.batch-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.batch-list::-webkit-scrollbar {
  height: 4px;
}

.batch-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.batch-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #12141c;
  background-image: 
    linear-gradient(45deg, #181b24 25%, transparent 25%),
    linear-gradient(-45deg, #181b24 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #181b24 75%),
    linear-gradient(-45deg, transparent 75%, #181b24 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.batch-item:hover {
  transform: translateY(-2px);
}

.batch-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.batch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-item-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 10px;
}

.batch-item:hover .batch-item-remove {
  opacity: 1;
}

.batch-item-remove:hover {
  background: var(--danger);
  transform: scale(1.1);
}
