/* Voice Selector Component Styles */
.vs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.vs-overlay.active {
    display: flex;
    opacity: 1;
}

.vs-modal {
    background: white;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 700px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.vs-overlay.active .vs-modal {
    transform: scale(1);
}

/* Header */
.vs-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vs-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.vs-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vs-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Body Layout */
.vs-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.vs-sidebar {
    width: 240px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

.vs-sidebar-section {
    margin-bottom: 24px;
}

.vs-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vs-reset {
    font-size: 12px;
    color: #4f46e5;
    cursor: pointer;
    font-weight: normal;
}

.vs-reset:hover {
    text-decoration: underline;
}

.vs-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vs-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    user-select: none;
}

.vs-filter-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.vs-filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.vs-filter-item label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    flex: 1;
}

/* Main Content */
.vs-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.vs-search-bar {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.vs-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.vs-search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.vs-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.vs-content-header {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: normal;
}

.vs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Voice Card */
.vs-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    position: relative;
}

.vs-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.vs-card.selected {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.02);
}

.vs-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.vs-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.vs-info {
    flex: 1;
    min-width: 0;
}

.vs-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vs-bolt {
    width: 16px;
    height: 16px;
    color: #4f46e5;
    flex-shrink: 0;
}

.vs-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.vs-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
}

.vs-tag.scene {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.vs-tag.lang {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.vs-id {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-family: monospace;
}

.vs-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.vs-play:hover {
    background: #f3f4f6;
    color: #4f46e5;
    border-color: #4f46e5;
}

/* Empty State */
.vs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    display: none;
}

.vs-empty.active {
    display: block;
}

.vs-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: #d1d5db;
}

/* Toast Notification */
.vs-toast {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
}

.vs-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .vs-sidebar {
        display: none;
    }
    
    .vs-modal {
        width: 95%;
        height: 90vh;
    }
    
    .vs-list {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.vs-sidebar::-webkit-scrollbar,
.vs-content::-webkit-scrollbar {
    width: 6px;
}

.vs-sidebar::-webkit-scrollbar-track,
.vs-content::-webkit-scrollbar-track {
    background: transparent;
}

.vs-sidebar::-webkit-scrollbar-thumb,
.vs-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.vs-sidebar::-webkit-scrollbar-thumb:hover,
.vs-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}