/**
 * Tool: Video Watermark, Logo Overlay & Subtitle Burner
 * Stylesheet: video-watermark-subtitles.css
 * Synchronized with MetaoFly Golden Standard 2-Column Tool Workspace
 */

/* ── Workspace Card Container ── */
.tool-workspace.vws-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr) !important;
    gap: var(--space-8);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    align-items: start;
    margin: var(--space-8) 0;
    position: relative;
    width: 100%;
}

@media (max-width: 960px) {
    .tool-workspace.vws-workspace {
        grid-template-columns: 1fr !important;
        padding: var(--space-5);
    }
}

/* ── Left Column: Controls & Overlays ── */
.vws-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.vws-header-block {
    margin-bottom: var(--space-2);
}

.vws-dropzone {
    text-align: center;
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.03);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-snappy);
}

.vws-dropzone:hover,
.vws-dropzone.dragover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.vws-file-info-strip {
    transition: all var(--dur-normal);
}

/* Tabs Switcher */
.vws-tab-btn {
    transition: all var(--dur-fast);
    border: 1px solid transparent;
}

.vws-tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    transform: translateY(-1px);
}

.vws-tab-btn.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35) !important;
}

/* Snap Grid Buttons */
.vws-snap-btn {
    transition: all 0.2s ease;
}

.vws-snap-btn:hover {
    border-color: rgba(99, 102, 241, 0.6) !important;
    background: rgba(99, 102, 241, 0.15) !important;
}

.vws-snap-btn.active {
    background: #6366f1 !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.7) !important;
}

/* Segment Buttons */
.vws-segment-btn {
    transition: all 0.2s ease;
}

.vws-segment-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.vws-segment-btn.active {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35) !important;
}

/* ── Right Column: Interactive Stage & Transport ── */
.vws-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

/* Modals */
.vws-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(3, 7, 18, 0.85) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: var(--space-4);
    margin: 0;
    width: 100vw;
    height: 100vh;
}

.vws-modal-backdrop.active,
.vws-modal-backdrop[style*="display: flex"] {
    display: flex !important;
}

.vws-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
}

.vws-modal-icon-glow {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
}

.vws-modal-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.vws-modal-desc {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.vws-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.vws-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    transition: width 0.15s ease-out;
}

.vws-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

.vws-result-preview-wrap {
    max-width: 100%;
    max-height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 16px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.vws-success-video {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.vws-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
