body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

/* Auth Section Styles */
.auth-section {
    text-align: center;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    margin: 0 2px;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input, .form-row input, .form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.user-details h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.user-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.button-small {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.button-small:hover {
    background: #0056b3;
}

/* Leader Selection Styles */
.leader-selection {
    margin-bottom: 30px;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.leader-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.leader-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.leader-card.selected {
    border-color: #007bff;
    background: #f0f7ff;
}

.leader-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.leader-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.leader-policies {
    font-size: 12px;
    color: #888;
}

.selected-leader {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Custom Leader Section */
.custom-leader-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.custom-leader-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.custom-leader-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-leader-form .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-leader-form input,
.custom-leader-form select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.custom-leader-form input:focus,
.custom-leader-form select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Conversation Section */
.conversation-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

h1 {
    text-align: center;
    color: #333;
}

.status-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.status, .speaking-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.status {
    background-color: #ff4444;
    color: white;
}

.status.connected {
    background-color: #00C851;
}

.speaking-status {
    background-color: #eee;
}

.speaking-status.speaking {
    background-color: #33b5e5;
    color: white;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#startButton {
    background-color: #00C851;
    color: white;
}

#endButton {
    background-color: #ff4444;
    color: white;
}
