/* Voice Studio — dashboard-aligned overrides (layout via Tailwind in HTML) */

.vs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

html.admin-embed-mode body {
    background: #fff;
}

html.admin-embed-mode .vs-layout {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

/* Tips collapsible marker */
.vs-tips-toggle summary::-webkit-details-marker {
    display: none;
}

.vs-tips-toggle summary::before {
    content: '▸ ';
    color: #9ca3af;
}

.vs-tips-toggle[open] summary::before {
    content: '▾ ';
}

.vs-advanced summary::-webkit-details-marker {
    display: none;
}

/* Voice card selection */
.vs-voice-card:hover {
    border-color: rgba(251, 146, 60, 0.45);
}

.vs-voice-card.is-active {
    border-color: #fb923c;
    background: rgba(255, 247, 237, 0.6);
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35);
}

.vs-voice-preview {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    z-index: 2;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ea580c;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.vs-voice-preview:hover:not(:disabled) {
    background: #fff7ed;
}

.vs-voice-preview:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vs-voice-preview.is-loading {
    color: #9ca3af;
    border-color: #e5e7eb;
}

.vs-prep-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #fff7ed;
    border: 1px solid rgba(251, 146, 60, 0.35);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
}

.vs-style-badge {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ea580c;
    margin-top: 0.125rem;
}

/* Style segmented control */
.vs-style-pill.is-active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Player states */
.vs-player-card.is-loading {
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(255, 247, 237, 0.5);
}

.vs-player-card.is-ready {
    border-color: rgba(34, 197, 94, 0.45);
    background: #f0fdf4;
}

.vs-player-card.is-ready .fa-microphone-lines {
    color: #16a34a;
}

/* Progress bar visibility */
.vs-progress.active {
    display: block !important;
}

/* Alerts */
.vs-alert-box {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.vs-alert-box.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.vs-alert-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.625rem;
    border: 1px solid #991b1b;
    border-radius: 0.375rem;
    background: #fff;
    color: #991b1b;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

/* Status message colors */
#vs-status.error {
    color: #dc2626;
}

#vs-status.success {
    color: #16a34a;
}

@media (max-width: 640px) {
    #vs-voice-grid {
        grid-template-columns: 1fr;
    }
}
