/* C.12f — Voice Profile settings card */

/* ── Settings overlay ───────────────────────────────────────── */
.vp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-panel {
    background: var(--vc-bg, #1a1a2e);
    border: 1px solid var(--vc-border, rgba(150,145,175,0.2));
    border-radius: 12px;
    width: min(560px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.vp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--vc-border, rgba(150,145,175,0.15));
    flex-shrink: 0;
}

.vp-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ip-text, #e0e0e0);
}

.vp-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ip-text-muted, #888);
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}
.vp-close:hover { background: rgba(255,255,255,0.07); color: var(--ip-text, #e0e0e0); }

.vp-body {
    padding: 20px;
    flex: 1;
}

/* ── Settings card ──────────────────────────────────────────── */
.settings-card {
    background: var(--vc-surface, rgba(255,255,255,0.03));
    border: 1px solid var(--vc-border, rgba(150,145,175,0.15));
    border-radius: 10px;
    padding: 18px 20px;
}

.settings-card header h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-text, #e0e0e0);
}

.settings-card header p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--ip-text-muted, #888);
    line-height: 1.55;
}

/* ── Privacy badge ──────────────────────────────────────────── */
.privacy-badge {
    display: inline-block;
    font-size: 11px !important;
    color: var(--ip-accent, #5B8EC9) !important;
    background: rgba(91,142,201,0.1);
    border: 1px solid rgba(91,142,201,0.25);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 14px !important;
}
.privacy-badge:hover { background: rgba(91,142,201,0.18); }

.privacy-tooltip {
    display: none;
    background: rgba(91,142,201,0.12);
    border: 1px solid rgba(91,142,201,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    color: var(--ip-text-muted, #888);
    line-height: 1.55;
    margin: -6px 0 12px;
}
.privacy-tooltip.visible { display: block; }

/* ── Upload drop zone ───────────────────────────────────────── */
.upload-drop {
    border: 2px dashed var(--vc-border, rgba(150,145,175,0.3));
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-drop:hover, .upload-drop.drag-over {
    border-color: var(--ip-accent, #5B8EC9);
    background: rgba(91,142,201,0.05);
}
.upload-drop p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ip-text-muted, #888);
}
.upload-drop .vp-browse-btn {
    font-size: 12px;
    padding: 6px 14px;
    background: var(--ip-accent, #5B8EC9);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.upload-drop .vp-browse-btn:hover { opacity: 0.85; }

.vp-file-count {
    margin-top: 10px;
    font-size: 11px;
    color: var(--ip-text-muted, #888);
}

/* ── States ─────────────────────────────────────────────────── */
.vp-progress {
    font-size: 13px;
    color: var(--ip-text-muted, #888);
    text-align: center;
    padding: 18px 0;
}
.vp-progress span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--ip-accent, #5B8EC9);
}

.vp-error {
    font-size: 12px;
    color: #e07070;
    background: rgba(224,112,112,0.08);
    border: 1px solid rgba(224,112,112,0.2);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
}

/* ── Active state ───────────────────────────────────────────── */
.voice-active {
    font-size: 13px;
}

.voice-active .vp-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.voice-active .vp-profile-badge {
    width: 36px; height: 36px;
    background: rgba(91,142,201,0.15);
    border: 1px solid rgba(91,142,201,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.voice-active .vp-profile-meta {
    flex: 1;
}
.voice-active .vp-profile-meta strong {
    display: block;
    font-size: 13px;
    color: var(--ip-text, #e0e0e0);
    font-weight: 600;
}
.voice-active .vp-profile-meta span {
    font-size: 11px;
    color: var(--ip-text-muted, #888);
}

.voice-metrics {
    margin: 12px 0;
    border: 1px solid var(--vc-border, rgba(150,145,175,0.15));
    border-radius: 8px;
    overflow: hidden;
}
.voice-metrics summary {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ip-text, #e0e0e0);
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    list-style: none;
    user-select: none;
}
.voice-metrics summary::-webkit-details-marker { display: none; }
.voice-metrics summary::before { content: '▶ '; font-size: 10px; opacity: 0.6; }
.voice-metrics[open] summary::before { content: '▼ '; }

.voice-metrics dl {
    margin: 0;
    padding: 10px 14px 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 14px;
    font-size: 12px;
}
.voice-metrics dt { color: var(--ip-text-muted, #888); font-weight: 500; }
.voice-metrics dd { color: var(--ip-text, #e0e0e0); margin: 0; }

.voice-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.voice-actions button {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.voice-actions .replace {
    background: var(--ip-accent, #5B8EC9);
    color: #fff;
    border: none;
}
.voice-actions .replace:hover { opacity: 0.85; }
.voice-actions .delete {
    background: none;
    color: #e07070;
    border: 1px solid rgba(224,112,112,0.35);
}
.voice-actions .delete:hover { background: rgba(224,112,112,0.08); }

/* ── Settings button in user dropdown ───────────────────────── */
.vi-eb-dd-settings {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ip-text, #e0e0e0);
    cursor: pointer;
    border-radius: 4px;
    display: none;
}
.vi-eb-dd-settings:hover { background: rgba(255,255,255,0.07); }
