#wupload-form input[type="file"] {
  margin-bottom: 1em;
}

.wupload-container {
  max-width: 1200px;
  margin: 0 auto;
}

.wupload-main-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.wupload-tab {
  padding: 8px 20px;
  border: 2px solid #2196F3;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  color: #2196F3;
}

.wupload-tab.active {
  background: #2196F3;
  color: white;
}

.wupload-sets {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.wupload-sets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.folder-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-badge {
  padding: 6px 12px;
  border-radius: 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.folder-badge:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  color: #2196F3;
}

.folder-badge.active {
  background: #2196F3;
  border-color: #2196F3;
  color: white;
}

.add-set {
  padding: 6px 12px;
  border: 1px solid #e91e63;
  border-radius: 4px;
  background: white;
  color: #e91e63;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.add-set:hover {
  background: #e91e63;
  color: white;
}

.wupload-folder-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 4px;
}

.current-path {
  color: #666;
}

.add-subfolder {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

#wupload-dropzone {
  border: 2px dashed #ccc;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1em;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#wupload-dropzone:hover {
  border-color: #2196F3;
  background: #f8f8f8;
}

#wupload-dropzone.highlight {
  border-color: #2196F3;
  background: #e3f2fd;
  background: #f7f7f7;
}

.wupload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.wupload-preview-item {
  position: relative;
  padding-bottom: 100%;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.wupload-preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wupload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.1);
}

.wupload-progress-bar {
  height: 100%;
  background: #0073aa;
  width: 0;
  transition: width 0.3s ease;
}

#wupload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

#wupload-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Optional: basic inline list styling for admin previews */
#wupload-preview li,
#wupload-results li {
  display: inline-block;
  margin: 6px;
  vertical-align: top;
}

#wupload-preview img,
#wupload-results img {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
