/* Video Subtitle Prep - Stripe-like UI (v1.4.0) */
.vfs-app{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: #0f172a;
}

.vfs-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px;
}

.vfs-header{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.vfs-title{
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.vfs-subtitle{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15,23,42,.65);
}

.vfs-badge{
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.03);
  border-radius: 999px;
  white-space: nowrap;
}

.vfs-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(2,6,23,.06);
  overflow: hidden;
}

.vfs-card + .vfs-card{ margin-top: 12px; }

.vfs-card-head{ padding: 14px 14px 0 14px; }

.vfs-card-title{
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -0.01em;
}

.vfs-card-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15,23,42,.62);
}

.vfs-card-body{ padding: 14px; }

.vfs-upload{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vfs-label{
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 6px;
  display:block;
}

.vfs-help{ font-size: 12px; color: rgba(15,23,42,.60); }

.vfs-file{ width: 100%; }

.vfs-meta-row{ display:flex; gap: 10px; margin-top: 10px; }
.vfs-meta{ font-size: 12px; color: rgba(15,23,42,.60); }

.vfs-hidden{ display:none !important; }

.vfs-stage2{ margin-top: 12px; }

.vfs-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 980px){ .vfs-grid{ grid-template-columns: 1fr; } }

.vfs-field{ margin-bottom: 12px; }

.vfs-row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 680px){ .vfs-row2{ grid-template-columns: 1fr; } }

.vfs-input, .vfs-select, .vfs-textarea{
  width: 100%;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  box-shadow: none;
}

.vfs-textarea{ resize: vertical; }

.vfs-input:focus, .vfs-select:focus, .vfs-textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.vfs-note{
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(2,6,23,.03);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
}

.vfs-style-title{ font-weight: 750; margin-bottom: 6px; font-size: 13px; }
.vfs-style-row{ font-size: 12px; color: rgba(15,23,42,.75); margin-top: 4px; }
.vfs-style-row strong{ color: rgba(15,23,42,.90); }

.vfs-cta{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vfs-cost{ font-size: 14px; font-weight: 740; }

.vfs-btn{
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.vfs-btn:disabled{ opacity: .6; cursor:not-allowed; }
.vfs-btn-ghost{ background: rgba(2,6,23,.02); }
.vfs-btn-primary{
  background: #2563eb;
  color: #fff;
  border-color: rgba(37,99,235,.90);
  box-shadow: 0 10px 30px rgba(37,99,235,.20);
}
.vfs-btn-danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.30);
  color: #991b1b;
}

/* Preview stack: video behind + canvas overlay */
.vfs-preview-stack{
  --vfs-ratio: 1.7777778; /* 16/9 */
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(2,6,23,.06);
  aspect-ratio: var(--vfs-ratio);
}

.vfs-preview-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  background:#0b1220;
}

.vfs-preview-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.vfs-preview-actions{
  display:flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.vfs-alert{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.03);
  font-size: 13px;
}

.vfs-alert--ok{
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.25);
}

.vfs-alert--error{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.25);
}

.vfs-pre{
  margin-top: 8px;
  white-space: pre-wrap;
  font-size: 12px;
  opacity: .85;
}

.vfs-admin-panel{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(2,6,23,.02);
}

.vfs-admin-row{
  display:flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Modal */
.vfs-modal{ display:none; }
.vfs-modal.is-open{ display:block; }
.vfs-modal-backdrop{
  position:fixed; inset:0;
  background: rgba(2,6,23,.45);
  z-index: 99998;
}
.vfs-modal-card{
  position:fixed;
  left:50%; top:50%;
  transform: translate(-50%,-50%);
  width:min(520px, calc(100% - 24px));
  background:#fff;
  border-radius:16px;
  padding:16px;
  z-index: 99999;
  box-shadow: 0 30px 90px rgba(2,6,23,.35);
}
.vfs-modal-title{ font-size: 14px; font-weight: 760; }
.vfs-modal-text{ margin-top: 8px; font-size: 13px; color: rgba(15,23,42,.75); }
.vfs-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

/* Color picker row */
.vfs-color-row{ display:block; }
.vfs-color{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  padding: 6px;
}
.vfs-color::-webkit-color-swatch-wrapper{ padding: 6px; }
.vfs-color::-webkit-color-swatch{ border:none; border-radius: 8px; }

/* Info popover */
.vfs-popover{
  position:absolute;
  z-index:9999;
  width: min(320px, calc(100vw - 24px));
  background:#fff;
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  box-shadow: 0 14px 40px rgba(15,23,42,.14);
  padding:12px 12px 10px;
}
.vfs-popover-title{
  font-weight:700;
  font-size:12px;
  letter-spacing:.02em;
  color:#0f172a;
  margin-bottom:6px;
}
.vfs-popover-body{
  font-size:12px;
  line-height:1.45;
  color:#334155;
  white-space:pre-line;
}

/* Range sliders for custom position */
.vfs-range-row{ display:flex; gap:10px; align-items:center; }
.vfs-range{ flex:1; accent-color: #0ea5e9; }
.vfs-range-badge{
  min-width: 54px;
  text-align:center;
  font-size: 12px;
  font-weight: 700;
  color:#0f172a;
  background: rgba(2,132,199,.10);
  border: 1px solid rgba(2,132,199,.22);
  border-radius: 999px;
  padding: 6px 10px;
}


/* Result area below the action row (prevents squeezing the button area) */
.vfs-result-section{
  margin-top: 12px;
}
.vfs-result-section .vfs-response{
  width: 100%;
}




/* Preview note under the canvas/video */


/* Preview note under the canvas/video (Stripe-szerű megjegyzés) */
.vfs-preview-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#374151;
  font-size:12px;
  line-height:1.45;
}
.vfs-preview-note__icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #e0e7ff;
  color:#3730a3;
  font-weight:700;
  font-size:12px;
  margin-top:1px;
}
.vfs-preview-note__text{flex:1;}

@media (prefers-color-scheme: dark){
  .vfs-preview-note{
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.06);
    color:rgba(255,255,255,0.86);
  }
  .vfs-preview-note__icon{
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);
    color:rgba(255,255,255,0.92);
  }
}
