/**
 * WCUF Uppy Theme - Premium Photo Upload Styling
 * Inspired by clean, modern upload UI with red accent theme
 * @version 2.0
 */

/* ==============================
   CONTAINER & WRAPPER
   ============================== */
.wcuf-uppy-container {
  margin: 20px 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.wcuf-uppy-wrapper {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* ==============================
   HEADER: Title + Counter
   ============================== */
.wcuf-uppy-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.wcuf-uppy-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcuf-upload-icon {
  color: #dc2626;
  flex-shrink: 0;
}

.wcuf-uppy-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

/* ==============================
   COUNTER BADGE (Red theme)
   ============================== */
.wcuf-counter {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: #dc2626;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wcuf-counter-ok {
  color: #16a34a;
}

.wcuf-counter-full {
  color: #d97706;
}

/* ==============================
   PROGRESS BAR (Red) + Milestone
   ============================== */
.wcuf-progress-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: visible;
  margin-bottom: 20px;
  position: relative;
}

.wcuf-progress-fill {
  height: 100%;
  background: #dc2626 !important;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
}

.wcuf-progress-fill.wcuf-progress-ok {
  background: #16a34a !important;
}

/* Milestone marker: vertical line at min threshold */
.wcuf-progress-milestone {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: #374151;
  border-radius: 1px;
  z-index: 2;
  transition: left 0.5s ease;
}

.wcuf-progress-milestone::after {
  content: attr(data-label);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.wcuf-progress-milestone.wcuf-milestone-reached {
  background: #16a34a;
}

.wcuf-progress-milestone.wcuf-milestone-reached::after {
  color: #16a34a;
}

/* ==============================
   STATUS BAR
   ============================== */
.wcuf-status {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  min-height: 0;
}

.wcuf-status-empty {
  display: none;
}

.wcuf-status-info {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wcuf-status-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.wcuf-status-limit {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  animation: wcuf-pulse 2s ease-in-out infinite;
}

@keyframes wcuf-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* ==============================
   UPPY DASHBOARD OVERRIDES
   ============================== */
.uppy-Dashboard-inner {
  border-radius: 12px !important;
  border: 2px dashed #d1d5db !important;
  background: #fafafa !important;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
  min-height: 180px !important;
}

.uppy-Dashboard-inner:hover,
.uppy-Dashboard-inner.uppy-Dashboard--isDraggingOver {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
  background: #fef2f2 !important;
}

.uppy-Dashboard-AddFiles-title {
  font-size: 15px !important;
  color: #374151 !important;
  font-weight: 600 !important;
}

.uppy-Dashboard-browse {
  color: #dc2626 !important;
  font-weight: 600 !important;
}

.uppy-Dashboard-browse:hover {
  color: #b91c1c !important;
}

.uppy-Dashboard-note {
  color: #6b7280 !important;
  font-size: 13px !important;
}

/* Progress bar in Uppy */
.uppy-StatusBar-progress {
  background: #dc2626 !important;
}

.uppy-StatusBar.is-complete .uppy-StatusBar-progress {
  background: #16a34a !important;
}

/* Uppy add files icon color */
.uppy-Dashboard-AddFiles-btn--folder,
.uppy-Dashboard-AddFiles-btn--camera,
.uppy-Dashboard-AddFiles-btn {
  color: #dc2626 !important;
}

/* ==============================
   GRID SECTION: "TUS CARGAS"
   ============================== */
.wcuf-grid-section {
  margin-top: 20px;
  padding-top: 0;
}

.wcuf-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.wcuf-grid-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wcuf-grid-reorder {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  transition: color 0.2s;
}

.wcuf-grid-reorder:hover {
  color: #b91c1c;
}

/* ==============================
   PHOTO GRID
   ============================== */
.wcuf-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  gap: 10px !important;
}

.wcuf-photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: grab;
  border: 2px solid transparent;
}

.wcuf-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #dc2626;
}

.wcuf-photo-card:active {
  cursor: grabbing;
}

.wcuf-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.wcuf-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wcuf-photo-card:hover .wcuf-photo-thumb img {
  transform: scale(1.05);
}

/* Green check badge (like inspiration) */
.wcuf-photo-card::after {
  content: "✓";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.wcuf-photo-card.wcuf-photo-uploaded::after {
  opacity: 1;
  transform: scale(1);
}

/* Remove button */
.wcuf-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
  padding: 0;
  line-height: 1;
  z-index: 3;
}

.wcuf-photo-card:hover .wcuf-photo-remove {
  opacity: 1;
}

.wcuf-photo-remove:hover {
  background: #dc2626;
}

/* Photo info */
.wcuf-photo-info {
  padding: 5px 8px;
}

.wcuf-photo-name {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcuf-photo-note {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
  margin-top: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.wcuf-photo-note:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* Sortable states */
.wcuf-photo-ghost {
  opacity: 0.4;
}

.wcuf-photo-chosen {
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.wcuf-photo-drag {
  background: #fef2f2;
}

/* Remove animation */
.wcuf-photo-removing {
  animation: wcuf-fadeOut 0.3s ease forwards;
}

@keyframes wcuf-fadeOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ==============================
   NOTIFICATIONS
   ============================== */
.wcuf-notification {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  animation: wcuf-slideDown 0.3s ease;
}

.wcuf-notification-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.wcuf-notification-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.wcuf-notification-hide {
  animation: wcuf-slideUp 0.4s ease forwards;
}

@keyframes wcuf-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wcuf-slideUp {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ==============================
   MOBILE RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .wcuf-uppy-wrapper {
    padding: 16px;
    border-radius: 10px;
  }

  .wcuf-uppy-title {
    font-size: 15px;
  }

  .wcuf-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .wcuf-photo-remove {
    opacity: 1; /* Always show on mobile */
  }

  .uppy-Dashboard-inner {
    border-radius: 10px !important;
    min-height: 150px !important;
  }
}

@media (max-width: 480px) {
  .wcuf-uppy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wcuf-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============================
   CONFIRMATION MODAL
   ============================== */
.wcuf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.wcuf-modal-overlay.wcuf-modal-visible {
  opacity: 1;
}

.wcuf-modal-overlay.wcuf-modal-hiding {
  opacity: 0;
}

.wcuf-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.wcuf-modal-visible .wcuf-modal {
  transform: scale(1) translateY(0);
}

.wcuf-modal-hiding .wcuf-modal {
  transform: scale(0.9) translateY(20px);
}

.wcuf-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.wcuf-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.wcuf-modal-text {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.wcuf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wcuf-modal-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.wcuf-modal-btn-primary {
  background: #dc2626;
  color: #fff;
}

.wcuf-modal-btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.wcuf-modal-btn-secondary {
  background: #f9fafb;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.wcuf-modal-btn-secondary:hover {
  background: #f3f4f6;
}

.wcuf-modal-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 16px 0 0 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .wcuf-modal {
    padding: 24px;
  }
  .wcuf-modal-title {
    font-size: 18px;
  }
}

/* ==============================
   CART & CHECKOUT SUMMARY
   ============================== */
.wcuf-cart-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  margin-top: 8px;
}

.wcuf-cart-summary-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.wcuf-cart-summary-text {
  line-height: 1.3;
}

.wcuf-cart-summary-text strong {
  font-weight: 700;
}

.wcuf-cart-summary.wcuf-cart-incomplete {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

/* ==============================
   PHASE 6: CART PREVIEW THUMBNAILS
   ============================== */
.wcuf-cart-preview {
  margin-top: 10px;
}

.wcuf-cart-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 8px;
}

.wcuf-cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcuf-cart-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wcuf-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "+N más" badge */
.wcuf-cart-more {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f3f4f6 !important;
  border: 1px dashed #d1d5db;
  cursor: default;
}

.wcuf-cart-more span {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

/* Edit button */
.wcuf-cart-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wcuf-cart-edit-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  text-decoration: none;
}

/* Mini thumbnails for checkout */
.wcuf-cart-thumbs-mini {
  gap: 4px !important;
  margin-top: 6px;
}

.wcuf-cart-thumb-mini {
  width: 40px !important;
  height: 40px !important;
  border-radius: 4px !important;
}

.wcuf-cart-thumb-mini.wcuf-cart-more span {
  font-size: 11px;
}

/* ==============================
   PHASE 6: RESPONSIVE (Cart Thumbs)
   ============================== */
@media (max-width: 768px) {
  .wcuf-cart-thumb {
    width: 50px;
    height: 50px;
  }

  .wcuf-cart-edit-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .wcuf-cart-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
  }

  .wcuf-cart-thumbs {
    gap: 4px !important;
  }

  .wcuf-cart-more span {
    font-size: 11px;
  }
}

/* ==============================
   PHASE 3 COMPLETE: BATCH LIST VIEW
   ============================== */

/* View toggle pills */
.wcuf-view-toggle {
  display: inline-flex !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.wcuf-view-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.wcuf-view-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.wcuf-view-btn.active {
  background: #dc2626 !important;
  color: #fff !important;
}

/* Search input */
.wcuf-search-container {
  margin: 10px 0 8px;
}

.wcuf-search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wcuf-search-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
  background: #fff;
}

/* List container */
.wcuf-photo-list {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Column header */
.wcuf-list-header {
  display: grid !important;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 16px;
  padding: 8px 24px;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9ca3af;
}

.wcuf-list-col-size {
  text-align: right;
}

.wcuf-list-col-status {
  text-align: right;
}

/* Scrollable rows container */
.wcuf-list-rows {
  max-height: 400px;
  overflow-y: auto;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

/* List row — 12-col grid */
.wcuf-list-row {
  display: grid !important;
  grid-template-columns: 6fr 2fr 4fr;
  gap: 16px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid #f9fafb;
  transition: background 0.15s;
}

.wcuf-list-row:last-child { border-bottom: none; }
.wcuf-list-row:hover { background: rgba(249, 250, 251, 0.5); }

/* Column: File (thumb + info) */
.wcuf-list-col-file {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  min-width: 0;
}

/* List thumbnail */
.wcuf-list-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.wcuf-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wcuf-list-thumb-dim img { opacity: 0.5; }

.wcuf-list-thumb-error {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-color: #fca5a5;
  background: #fef2f2;
}

.wcuf-thumb-error-icon {
  font-size: 18px;
  color: #f87171;
}

/* File info */
.wcuf-list-file-info {
  min-width: 0;
  flex: 1;
}

.wcuf-list-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcuf-list-name-error { color: #ef4444; }

.wcuf-list-error-msg {
  display: block;
  font-size: 10px;
  color: #f87171;
  margin-top: 1px;
}

/* Progress bar (under filename) */
.wcuf-list-progress {
  width: 96px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.wcuf-list-progress-fill {
  height: 100%;
  background: #dc2626;
  border-radius: 999px;
  transition: width 0.3s;
}

/* Column: Size */
.wcuf-list-col-size {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-align: right;
}

/* Column: Status */
.wcuf-list-col-status {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px;
}

/* Status badges */
.wcuf-badge-complete {
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.wcuf-badge-uploading {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  animation: wcuf-pulse 1.5s ease-in-out infinite;
}

@keyframes wcuf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Retry text link */
.wcuf-list-retry-link {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.wcuf-list-retry-link:hover { text-decoration: underline; }

/* Delete icon button */
.wcuf-list-delete-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
  color: #d1d5db;
  font-size: 0;
  line-height: 1;
}

.wcuf-icon-delete {
  font-size: 18px;
}

.wcuf-list-delete-icon:hover { color: #ef4444; }

/* Row states */
.wcuf-list-row-error { background: rgba(254, 242, 242, 0.3); }
.wcuf-list-row-uploading { background: rgba(249, 250, 251, 0.2); }

/* Pagination */
.wcuf-pagination {
  text-align: center;
  padding: 12px 24px;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.wcuf-pagination-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.wcuf-load-more-btn {
  width: 100%;
  padding: 10px 16px;
  margin-top: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.wcuf-load-more-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Retry all button */
.wcuf-retry-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin: 8px 0;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wcuf-retry-all-btn:hover {
  background: #b91c1c;
}

/* Responsive: batch list view */
@media (max-width: 768px) {
  .wcuf-list-header {
    grid-template-columns: 1fr 0 0;
    padding: 6px 12px;
  }

  .wcuf-list-header .wcuf-list-col-size,
  .wcuf-list-header .wcuf-list-col-status {
    display: none;
  }

  .wcuf-list-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .wcuf-list-col-size { display: none !important; }

  .wcuf-list-col-status {
    grid-column: span 1;
  }

  .wcuf-list-thumb {
    width: 44px;
    height: 44px;
  }

  .wcuf-view-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .wcuf-list-thumb {
    width: 36px;
    height: 36px;
  }

  .wcuf-badge-complete,
  .wcuf-badge-uploading {
    font-size: 9px;
  }

  .wcuf-list-retry-link {
    font-size: 10px;
  }
}

/* ==============================
   GALLERY MODE: DragDrop Zone
   ============================== */
.uppy-DragDrop-container {
  background: #fafafa !important;
  border: 2px dashed #d1d5db !important;
  border-radius: 10px !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
  cursor: pointer !important;
  min-height: 120px !important;
}

.uppy-DragDrop-container:hover,
.uppy-DragDrop--isDragDropSupported .uppy-DragDrop-container:hover {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
}

.uppy-DragDrop-container.uppy-DragDrop--isDraggingOver {
  border-color: #dc2626 !important;
  background: #fee2e2 !important;
  border-style: solid !important;
}

.uppy-DragDrop-inner {
  padding: 24px 16px !important;
}

.uppy-DragDrop-arrow {
  fill: #9ca3af !important;
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 8px !important;
}

.uppy-DragDrop-label {
  font-size: 15px !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
}

.uppy-DragDrop-browse {
  color: #dc2626 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: border-color 0.2s ease !important;
}

.uppy-DragDrop-browse:hover {
  border-bottom-color: #dc2626 !important;
}

/* ==============================
   GALLERY MODE: StatusBar
   ============================== */
#wcuf-uppy-statusbar {
  margin: 12px 0 !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar-progress {
  background: #dc2626 !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar-statusPrimary {
  color: #374151 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar-actionBtn--upload,
#wcuf-uppy-statusbar .uppy-StatusBar-actionBtn--retry {
  background: #dc2626 !important;
  color: #fff !important;
  border-radius: 6px !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar-actionBtn--upload:hover,
#wcuf-uppy-statusbar .uppy-StatusBar-actionBtn--retry:hover {
  background: #b91c1c !important;
}

#wcuf-uppy-statusbar .uppy-StatusBar.is-complete .uppy-StatusBar-progress {
  background: #16a34a !important;
}
