/* VMST WebP Converter Module CSS */

.vmst-format-checkbox {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.vmst-format-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.vmst-format-checkbox span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--vmst-border);
  border-radius: var(--vmst-radius-sm);
  color: var(--vmst-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.vmst-format-checkbox input:checked + span {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--vmst-primary);
  color: var(--vmst-text);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.15);
}

/* File list item row layout */
.vmst-file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--vmst-border);
  border-radius: var(--vmst-radius-sm);
  padding: 1rem;
  transition: all 0.2s ease;
}

.vmst-file-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

.vmst-file-preview-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--vmst-border);
  background: #000;
}

.vmst-file-info-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vmst-file-name-txt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--vmst-text);
  word-break: break-all;
}

.vmst-file-meta-txt {
  font-size: 0.85rem;
  color: var(--vmst-text-muted);
}

.vmst-file-saving-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--vmst-success);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 5px;
}

.vmst-file-action-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
