.start-chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.start-chat-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.start-chat-box h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.mode-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mode-option {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.mode-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.mode-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-emoji {
    font-size: 1.4em;
    margin-right: 8px;
}

.mode-description {
    font-size: 0.95em;
    opacity: 0.8;
    line-height: 1.4;
}

.selected .mode-description {
    opacity: 0.9;
}

.topic-selection {
    margin-bottom: 20px;
}

.topic-selection h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.topic-option {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.topic-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.topic-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.topic-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.topic-emoji {
    font-size: 1.1em;
    margin-right: 6px;
}

.topic-description {
    font-size: 0.8em;
    opacity: 0.8;
    line-height: 1.3;
}

.selected .topic-description {
    opacity: 0.9;
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.start-chat-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 1.3em;
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    pointer-events: none;
}

.start-chat-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

.start-chat-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.start-chat-btn.enabled:active {
    transform: scale(0.98);
}

.selection-message {
    color: #a0aec0;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
}

.voice-selection {
    margin-bottom: 25px;
}

.voice-selection h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: center;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.voice-option {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voice-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.voice-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.voice-avatar {
    margin-bottom: 15px;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.voice-option:hover .avatar-image {
    border-color: #667eea;
    transform: scale(1.05);
}

.voice-option.selected .avatar-image {
    border-color: white;
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.voice-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.2;
}

.voice-description {
    font-size: 0.85em;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 10px;
}

.selected .voice-description {
    opacity: 0.9;
}

.voice-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px;
    font-size: 0.75em;
    font-style: italic;
    opacity: 0.7;
    border-left: 3px solid rgba(255,255,255,0.3);
}

.selected .voice-preview {
    background: rgba(255,255,255,0.2);
    border-left-color: rgba(255,255,255,0.5);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    
    .header p {
        font-size: 1.1em;
    }
    
    .mode-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .voices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .avatar-image {
        width: 100px;
        height: 100px;
    }
    
    .voice-option {
        padding: 12px 8px;
    }
    
    .voice-title {
        font-size: 0.9em;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .start-chat-box {
        padding: 20px;
        margin: 10px;
    }
    
    .mode-option {
        padding: 20px;
    }
    
    .topic-option {
        padding: 12px;
    }
}

