/* Voice Character List Styles */
.voice-character-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.voice-char-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.voice-char-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.voice-char-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.voice-char-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.05));
}

.voice-char-item input[type="radio"] {
    display: none;
}

.voice-char-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
}

/* Gender indicators */
.voice-char-avatar.female {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.voice-char-avatar.male {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.voice-char-info {
    flex: 1;
    min-width: 0;
}

.voice-char-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.voice-char-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-char-gender {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.75rem;
}

.voice-char-play {
    padding: 0.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.voice-char-play:hover {
    background: #5a08a0;
    transform: scale(1.1);
}

.voice-char-play i {
    font-size: 0.9rem;
}

/* Checked state indicator */
.voice-char-item.selected .voice-char-avatar::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4caf50;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid white;
}

/* Scrollbar styling */
.voice-character-list::-webkit-scrollbar {
    width: 8px;
}

.voice-character-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.voice-character-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.voice-character-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
