/* variables.css - Shared CSS variables */
:root {
    --primary-color: #c91f46;
    --primary-light: #e42752;
    --primary-dark: #a6193a;
    --secondary-color: #4caf50;
    --secondary-dark: #388e3c;
    --danger-color: #f44336;
    --danger-dark: #d32f2f;
    --selected-persona: #ffffff;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #dee2e6;
    --status-speaking: #33b5e5;
    --status-connected: #00C851;
    --status-disconnected: #ff4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    
    /* Animation speed control - smaller values = faster animations */
    --animation-speed-factor: 0.7;
} 
/* base.css - Global reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--gray-light);
    line-height: 1.6;
}

/* Main Layout */
.app-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
} 
/* Login Form Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a6193a 0%, #e42752 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.login-header {
    background: linear-gradient(135deg, #a6193a 0%, #e42752 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

.login-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 5px;
    color: #a6193a;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
}

.error-message {
    display: none;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.error-message.show {
    display: block;
    opacity: 1;
    height: auto;
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a6193a 0%, #e42752 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    background: #f5f5f5;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* User Info Styles */
.user-info {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.user-info p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.user-info p.organization {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.logout-button {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-form.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
} 
/* sidebar.css - Sidebar and persona list styling */

/* Sidebar Styles */
.sidebar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.logo-container {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #ffffff;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
}

.company-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #333333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-container span {
    color: var(--selected-persona);
    font-weight: 300;
}

.persona-selection h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.persona-list {
    list-style: none;
}

.persona {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.persona-loading {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.persona-loading i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.persona:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.persona.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--selected-persona);
}

.persona-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px; /* Prevent avatar from shrinking */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.persona-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persona-avatar.large {
    width: 140px;
    height: 140px;
    border-width: 3px;
    border-color: var(--primary-light);
}

.persona-info {
    flex: 1;
}

.persona-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.persona-info p {
    font-size: 0.85rem;
    white-space: nowrap;
}

.session-info {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .logo-container h2 {
        font-size: 1.4rem;
    }
    
    .company-logo {
        height: 35px;
    }
    
    .logo-container {
        gap: 0.6rem;
        padding: 1rem;
    }
} 
/* controls.css - Buttons and status indicators */

.app-header {
    background-color: white;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.status-indicators {
    display: flex;
    gap: 1.5rem;
}

.status-badge {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--gray-medium);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.status-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.status-badge i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#connectionStatus {
    background-color: #ffebee;
    color: #d32f2f;
}

#connectionStatus i {
    color: #d32f2f;
}

#connectionStatus.connected {
    background-color: #e8f5e9;
    color: #2e7d32;
}

#connectionStatus.connected i {
    color: #2e7d32;
}

#connectionStatus.connected::before {
    background-color: #2e7d32;
    width: 4px;
}

#speakingStatus {
    background-color: #f5f5f5;
    color: var(--text-secondary);
    position: relative;
}

#speakingStatus.speaking {
    background-color: #e3f2fd;
    color: #1565c0;
}

#speakingStatus.speaking i {
    color: #1565c0;
    animation: pulse 1.5s infinite;
}

#speakingStatus.speaking::before {
    background-color: #1565c0;
    width: 4px;
}

.actions {
    display: flex;
    gap: 1.5rem;
}

.action-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed);
}

.action-button i {
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

.action-button.start {
    background-color: var(--secondary-color);
    color: white;
}

.action-button.start:hover {
    background-color: var(--secondary-dark);
}

.action-button.end {
    background-color: var(--danger-color);
    color: white;
}

.action-button.end:hover {
    background-color: var(--danger-dark);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
} 
/* conversation.css - Main conversation area styling */

/* Main Content Styles */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Role Play Content */
.role-play-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    flex: 1;
}

.scenario-container, .conversation-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.scenario-container h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--gray-dark);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.scenario-content h4 {
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
}

.scenario-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.goal-box {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: auto;
}

.goal-box h4 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.goal-box i {
    margin-right: 0.5rem;
}

.goal-box p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.active-persona {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-dark);
}

.persona-details {
    flex: 1;
    padding-left: 1rem;
}

.persona-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.6rem;
}

.persona-details h4 {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.persona-details p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.app-footer {
    background-color: white;
    padding: 1rem 2rem;
    border-top: 1px solid var(--gray-dark);
}

.feedback-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.feedback-preview i {
    color: var(--primary-color);
} 
/* animations.css - Animation effects and visualizer */

/* Visualizer */
.interaction-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 1.5rem;
    position: relative;
}

.visualizer-container {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0,0,0,0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 80px;
    width: 200px;
    gap: 4px;
}

.audio-visualizer .bar {
    width: 6px;
    background-color: var(--gray-dark);
    border-radius: 3px;
    height: 5px;
    transition: height 0.2s ease, background-color 0.3s ease;
}

/* Create more bars for a fuller visualizer */
.audio-visualizer::before,
.audio-visualizer::after {
    content: '';
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

/* Active speaking animation */
.audio-visualizer.active .bar {
    background-color: var(--primary-color);
}

/* Create animation for each bar */
.audio-visualizer.active .bar:nth-child(1) { animation: sound-wave calc(1.2s * var(--animation-speed-factor)) infinite ease-in-out 0.0s alternate; }
.audio-visualizer.active .bar:nth-child(2) { animation: sound-wave calc(1.0s * var(--animation-speed-factor)) infinite ease-in-out calc(0.1s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(3) { animation: sound-wave calc(1.4s * var(--animation-speed-factor)) infinite ease-in-out calc(0.2s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(4) { animation: sound-wave calc(0.8s * var(--animation-speed-factor)) infinite ease-in-out calc(0.3s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(5) { animation: sound-wave calc(1.6s * var(--animation-speed-factor)) infinite ease-in-out calc(0.4s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(6) { animation: sound-wave calc(1.0s * var(--animation-speed-factor)) infinite ease-in-out calc(0.5s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(7) { animation: sound-wave calc(1.2s * var(--animation-speed-factor)) infinite ease-in-out calc(0.6s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(8) { animation: sound-wave calc(0.9s * var(--animation-speed-factor)) infinite ease-in-out calc(0.7s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(9) { animation: sound-wave calc(1.5s * var(--animation-speed-factor)) infinite ease-in-out calc(0.8s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(10) { animation: sound-wave calc(1.3s * var(--animation-speed-factor)) infinite ease-in-out calc(0.7s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(11) { animation: sound-wave calc(0.7s * var(--animation-speed-factor)) infinite ease-in-out calc(0.9s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(12) { animation: sound-wave calc(1.1s * var(--animation-speed-factor)) infinite ease-in-out calc(0.5s * var(--animation-speed-factor)) alternate; }
.audio-visualizer.active .bar:nth-child(13) { animation: sound-wave calc(1.4s * var(--animation-speed-factor)) infinite ease-in-out calc(0.3s * var(--animation-speed-factor)) alternate; }

@keyframes sound-wave {
    0% {
        height: 5px;
    }
    100% {
        height: 60px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#interactionPrompt {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

#interactionPrompt.speaking {
    background-color: #e3f2fd;
    color: #1565c0;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
}

/* Add spinner animation for loading state */
.loading-spinner-container {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.loading-circle {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(201, 31, 70, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#interactionPrompt.with-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(201, 31, 70, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(201, 31, 70, 0.1);
} 
/* assessment.css - Styles for simulation assessment UI */

.assessment-container {
    margin-top: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: none; /* Initially hidden until assessment data is available */
}

.assessment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-dark);
}

.assessment-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

.assessment-header h3 i {
    margin-right: 0.8rem;
}

.assessment-meta {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.assessment-meta span {
    display: flex;
    align-items: center;
}

.assessment-meta i {
    margin-right: 0.5rem;
}

.assessment-summary, 
.assessment-audio, 
.assessment-results, 
.assessment-transcript {
    margin-bottom: 2rem;
}

.assessment-summary h4, 
.assessment-audio h4, 
.assessment-results h4, 
.assessment-transcript h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.assessment-summary p {
    line-height: 1.6;
    font-size: 1.05rem;
}

.assessment-audio audio {
    width: 100%;
    border-radius: var(--border-radius);
    background-color: var(--gray-light);
}

.criteria-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.criterion {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 5px solid var(--gray-dark);
}

.criterion.success {
    border-left-color: var(--secondary-color);
}

.criterion.failure {
    border-left-color: var(--danger-color);
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.criterion-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.criterion-result {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.criterion-result i {
    margin-right: 0.4rem;
}

.criterion.success .criterion-result {
    color: var(--secondary-color);
}

.criterion.failure .criterion-result {
    color: var(--danger-color);
}

.criterion p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.transcript-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.transcript-message {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
}

.transcript-message:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.message-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--gray-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--text-secondary);
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-message .message-avatar {
    background-color: var(--primary-light);
    color: white;
}

.agent-message .message-avatar {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-role {
    font-weight: 600;
}

.user-message .message-role {
    color: var(--primary-color);
}

.agent-message .message-role {
    color: var(--secondary-color);
}

.message-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.message-content p {
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .criteria-results {
        grid-template-columns: 1fr;
    }
}

.component-loading {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-style: italic;
}

.component-loading i {
    margin-right: 0.8rem;
    color: var(--primary-color);
}

.component-error {
    background-color: rgba(244, 67, 54, 0.05);
    color: #d32f2f;
}

.component-error i {
    color: #d32f2f;
    margin-right: 0.5rem;
}

/* Error message styling */
.error-message {
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #ffebee;
    border-radius: 4px;
    font-size: 0.95rem;
}

.error-message i {
    font-size: 1.2rem;
} 
/* main.css - Import all CSS modules */ 
/* mentor.css - Complete styling for Mentor app */

/* CSS Variables - Minimal Red & White Theme */
:root {
  --mentor-primary: #dc2626;
  --mentor-primary-light: #ffffff;
  --mentor-primary-dark: #991b1b;
  --mentor-secondary: #ffffff;
  --mentor-background: #ffffff;
  --mentor-surface: #ffffff;
  --mentor-success: #059669;
  --mentor-warning: #d97706;
  --mentor-error: #dc2626;
  --mentor-gray-50: #f9fafb;
  --mentor-gray-100: #f3f4f6;
  --mentor-gray-200: #e5e7eb;
  --mentor-gray-300: #d1d5db;
  --mentor-gray-400: #9ca3af;
  --mentor-gray-500: #6b7280;
  --mentor-gray-600: #4b5563;
  --mentor-gray-700: #374151;
  --mentor-gray-800: #1f2937;
  --mentor-gray-900: #111827;
  --mentor-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --mentor-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --mentor-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --mentor-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Soft Gradient Background */
body {
  background: linear-gradient(135deg, 
    #fefefe 0%, 
    #f8f9fa 25%, 
    #f1f3f4 50%, 
    #e8eaed 75%, 
    #f0f2f5 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mentor App Scoped Styles - Full screen */
.mentor-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 100;
}

/* Reset styles only within mentor app */
.mentor-app * {
  box-sizing: border-box;
}

.mentor-container {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Login Styles - Full width like other pages */
.mentor-login {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mentor-login-background {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.mentor-login-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.mentor-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mentor-avatar-login {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--mentor-primary);
}

.mentor-login-header h1 {
  color: var(--mentor-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mentor-login-header p {
  color: var(--mentor-gray-500);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form Styles */
.mentor-form-group {
  margin-bottom: 1.5rem;
}

.mentor-form-group label {
  display: block;
  color: var(--mentor-gray-900);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.mentor-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mentor-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--mentor-gray-500);
  z-index: 1;
}

.mentor-input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--mentor-gray-100);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--mentor-secondary);
}

.mentor-input-wrapper input:focus {
  outline: none;
  border-color: var(--mentor-primary);
  box-shadow: 0 0 0 3px rgba(91, 10, 10, 0.1);
}

.mentor-input-wrapper.focused {
  transform: scale(1.02);
}

.mentor-login-button {
  width: 100%;
  background: var(--mentor-primary);
  color: var(--mentor-secondary);
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.mentor-login-button:hover {
  background: #7a1010;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(91, 10, 10, 0.2);
}

.mentor-login-button:active {
  transform: translateY(0);
}

.mentor-login-button.loading {
  background: var(--mentor-gray-500);
  cursor: not-allowed;
}

.mentor-login-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mentor-error-message {
  background: rgba(239, 68, 68, 0.1);
  color: var(--mentor-error);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 1rem;
}

.mentor-error-message.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.mentor-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.mentor-social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mentor-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.mentor-social-links a:hover {
  color: #7a1010;
}

.mentor-copyright {
  text-align: center;
  color: var(--mentor-gray-500);
  font-size: 0.75rem;
}

/* Main Interface Styles - Centered with same width as chat */
.mentor-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0;
  background: var(--mentor-background);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


.mentor-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mentor-user-name {
  font-weight: 500;
  color: var(--mentor-gray-700);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.mentor-logout-btn {
  background: none;
  border: none;
  color: var(--mentor-gray-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mentor-logout-btn:hover {
  background: var(--mentor-gray-50);
  color: var(--mentor-primary);
}


/* Status Bar - Ultra minimal */
.mentor-status-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 0.25rem;
  margin: 0;
  background: var(--mentor-surface);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  position: relative;
}

.mentor-status-bar .mentor-back-button {
  position: absolute;
  left: 1rem;
}

.mentor-connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mentor-connection-status.disconnected {
  background: var(--mentor-gray-50);
  color: var(--mentor-gray-500);
  border-color: var(--mentor-gray-100);
}

.mentor-connection-status.connecting {
  background: #fef3cd;
  color: var(--mentor-warning);
  border-color: #fed7aa;
}

.mentor-connection-status.connected {
  background: #dcfce7;
  color: var(--mentor-success);
  border-color: #bbf7d0;
}

.mentor-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mentor-surface);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--mentor-gray-100);
  font-weight: 500;
  color: var(--mentor-gray-700);
  font-size: 0.8rem;
}

/* Avatar Section - Zero waste space */
.mentor-avatar-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.mentor-avatar-container {
  position: relative;
  margin-bottom: 0.25rem;
}

.mentor-avatar {
  width: 7rem;
  height: 7rem;
  position: relative;
  transition: all 0.4s ease;
}

.mentor-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mentor-surface);
  box-shadow: var(--mentor-shadow-lg);
  transition: all 0.4s ease;
}

.mentor-avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.mentor-avatar.connecting .mentor-avatar-ring {
  border-color: var(--mentor-warning);
  animation: pulse-ring 2s infinite;
}

.mentor-avatar.connected .mentor-avatar-ring {
  border-color: var(--mentor-success);
}

.mentor-avatar.speaking img {
  border-color: var(--mentor-primary);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1), var(--mentor-shadow-lg);
  transform: scale(1.02);
}

.mentor-avatar.speaking .mentor-avatar-ring {
  border-color: var(--mentor-primary);
  animation: pulse-speaking 1.5s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes pulse-speaking {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mentor-speaking-indicator {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.mentor-speaking-indicator.active {
  opacity: 1;
}

.mentor-wave {
  width: 4px;
  height: 20px;
  background: var(--mentor-primary);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.mentor-wave:nth-child(2) {
  animation-delay: 0.1s;
}

.mentor-wave:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes wave {
  0%, 40%, 100% { transform: scaleY(0.4); }
  20% { transform: scaleY(1); }
}

.mentor-name-section h1 {
  color: var(--mentor-gray-900);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  margin-top: 2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mentor-subtitle {
  color: var(--mentor-gray-500);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

/* Sample Questions with Typewriter Effect */
.mentor-sample-questions {
  margin-bottom: 0.5rem;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewriter-text {
  color: var(--mentor-gray-600);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.2;
  max-width: 280px;
  text-align: center;
  font-weight: 400;
}

.typewriter-cursor {
  color: var(--mentor-primary);
  font-weight: 400;
  font-style: normal;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.mentor-status-text {
  color: var(--mentor-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 1rem auto;
  background: rgba(220, 38, 38, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid rgba(220, 38, 38, 0.1);
}

/* Action Section - Zero padding */
.mentor-action-section {
  padding: 0 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mentor-talk-button {
  background: var(--mentor-primary);
  color: var(--mentor-secondary);
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--mentor-shadow-md);
  min-width: 180px;
  letter-spacing: -0.01em;
}

.mentor-talk-button:hover {
  background: var(--mentor-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--mentor-shadow-lg);
}

.mentor-talk-button:active {
  transform: translateY(0);
  box-shadow: var(--mentor-shadow);
}

.mentor-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.mentor-button-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.mentor-button-ripple.animate {
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.mentor-end-button {
  background: var(--mentor-surface);
  color: var(--mentor-primary);
  border: 2px solid var(--mentor-primary);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--mentor-shadow-md);
  min-width: 180px;
  letter-spacing: -0.01em;
}

.mentor-end-button:hover {
  background: var(--mentor-primary);
  color: var(--mentor-secondary);
  transform: translateY(-1px);
  box-shadow: var(--mentor-shadow-md);
}

/* Quick Info - Minimal */
.mentor-quick-info {
  margin-top: 0.25rem;
  padding-bottom: 0.25rem;
  flex-shrink: 0;
}

.mentor-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mentor-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mentor-gray-400);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-weight: 500;
}

.mentor-social-link:hover {
  color: var(--mentor-primary);
  background: var(--mentor-gray-50);
  transform: translateY(-1px);
}

/* Responsive Scaling */
@media (min-width: 1200px) and (min-height: 800px) {
  
  /* Narrower interface on large screens */
  .mentor-chat-container,
  .mentor-main,
  .mentor-login,
  .mentor-choice {
    max-width: 600px;
  }
  
  /* Even larger avatar on desktop */
  .mentor-avatar-small {
    width: 200px;
    height: 200px;
    border: 5px solid var(--mentor-primary);
  }
}

/* Tablet size adjustments */
@media (min-width: 641px) and (max-width: 1199px) {
  
  /* Medium width interface for tablets */
  .mentor-chat-container,
  .mentor-main,
  .mentor-login,
  .mentor-choice {
    max-width: 700px;
  }
  
  /* Larger avatar on tablets */
  .mentor-avatar-small {
    width: 180px;
    height: 180px;
  }
}

/* Responsive Design - Mobile first */
@media (max-width: 640px) {
  .mentor-status-bar {
    padding: 0.75rem 1rem 0.5rem;
  }
  
  .mentor-chat-container,
  .mentor-main,
  .mentor-login,
  .mentor-choice {
    max-width: 100%;
    left: 0;
    transform: none;
  }
  
  .mentor-chat-messages {
    max-height: calc(100vh - 120px);
  }
  
  .mentor-avatar-section {
    padding: 0.5rem 1rem;
  }
  
  
  .mentor-avatar {
    width: 14rem;
    height: 14rem;
  }
  
  .mentor-name-section h1 {
    font-size: 2rem;
  }
  
  .typewriter-text {
    font-size: 0.85rem;
    max-width: 320px;
  }
  
  .mentor-sample-questions {
    min-height: 50px;
  }
  
  .mentor-talk-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    min-width: 160px;
  }
  
  .mentor-end-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    min-width: 160px;
  }
  
  .mentor-speaking-indicator {
    bottom: -35px;
  }
  
  .mentor-social-links {
    gap: 1rem;
  }
  
  .mentor-social-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Conversation Catchup Styles - Updated for new theme */
.mentor-catchup {
  min-height: 100vh;
  padding: 0;
  background: var(--mentor-background);
}

/* Removed .mentor-catchup-header - now using floating back button */

.mentor-back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mentor-secondary);
  border: 2px solid var(--mentor-gray-100);
  color: var(--mentor-gray-700);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.mentor-back-btn:hover {
  background: var(--mentor-gray-100);
  border-color: var(--mentor-primary);
  color: var(--mentor-primary);
  transform: translateY(-1px);
}

.mentor-back-btn-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mentor-catchup-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem 1rem;
}

.mentor-catchup-intro {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.mentor-catchup-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.mentor-catchup-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--mentor-primary);
  box-shadow: 0 10px 25px rgba(91, 10, 10, 0.2);
}

.mentor-catchup-intro h1 {
  color: var(--mentor-gray-900);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mentor-catchup-subtitle {
  color: var(--mentor-gray-500);
  font-size: 1rem;
  line-height: 1.6;
}

.mentor-catchup-section {
  margin-bottom: 2rem;
}

.mentor-catchup-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mentor-gray-900);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.mentor-catchup-section-title i {
  color: var(--mentor-primary);
  font-size: 1.25rem;
}

.mentor-catchup-card {
  background: var(--mentor-secondary);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--mentor-gray-100);
  transition: all 0.3s ease;
  position: relative;
}

.mentor-catchup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Quote Card Styles - Updated for new theme */
.mentor-catchup-quote {
  background: linear-gradient(135deg, var(--mentor-primary) 0%, var(--mentor-primary-dark) 100%);
  color: var(--mentor-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mentor-catchup-quote::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.mentor-quote-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.mentor-quote-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.mentor-quote-source {
  position: relative;
  z-index: 1;
}

.mentor-quote-source a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.mentor-quote-source a:hover {
  color: var(--mentor-secondary);
}

/* Topic and Suggestions - Compact */
.mentor-catchup-topic p,
.mentor-catchup-suggestions p {
  color: var(--mentor-gray-800);
  line-height: 1.6;
  font-size: 0.875rem;
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 400;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mentor-gray-200);
  max-width: none;
  hyphens: auto;
  word-break: break-word;
}

.mentor-catchup-topic p:last-child,
.mentor-catchup-suggestions p:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Sources Grid */
.mentor-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.mentor-source-card {
  background: var(--mentor-secondary);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--mentor-gray-100);
  transition: all 0.3s;
  text-align: center;
}

.mentor-source-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--mentor-primary);
}

.mentor-source-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--mentor-primary) 0%, var(--mentor-tertiary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--mentor-secondary);
  font-size: 1.5rem;
}

.mentor-source-card h3 {
  color: var(--mentor-gray-900);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.mentor-source-preview {
  color: var(--mentor-gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mentor-source-meta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mentor-source-distance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mentor-gray-100);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mentor-gray-700);
}

.mentor-source-placeholder {
  opacity: 0.7;
}

/* Action Buttons */
.mentor-catchup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mentor-gray-100);
}

.mentor-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  min-width: 180px;
  justify-content: center;
}

.mentor-action-btn-primary {
  background: var(--mentor-primary);
  color: var(--mentor-secondary);
  box-shadow: 0 4px 12px rgba(91, 10, 10, 0.3);
}

.mentor-action-btn-primary:hover {
  background: #7a1010;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 10, 10, 0.4);
}

.mentor-action-btn-secondary {
  background: var(--mentor-secondary);
  color: var(--mentor-primary);
  border: 2px solid var(--mentor-primary);
}

.mentor-action-btn-secondary:hover {
  background: var(--mentor-primary);
  color: var(--mentor-secondary);
  transform: translateY(-2px);
}

/* Responsive Design for Catchup */
@media (max-width: 640px) {
  .mentor-catchup-content {
    padding: 0.25rem 0.25rem 0.75rem;
    max-width: 100%;
  }
  
  .mentor-catchup-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  
  .mentor-catchup-section {
    margin-bottom: 1.5rem;
  }
  
  .mentor-catchup-section-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  .mentor-catchup-intro h1 {
    font-size: 1.75rem;
  }
  
  .mentor-catchup-subtitle {
    font-size: 0.875rem;
  }
  
  .mentor-catchup-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .mentor-action-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .mentor-sources-grid {
    grid-template-columns: 1fr;
  }
  
  .mentor-quote-text {
    font-size: 1.125rem;
  }
  
  .mentor-catchup-topic p,
  .mentor-catchup-suggestions p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .mentor-main {
    padding: 2rem;
  }
  
  .mentor-avatar {
    width: 18rem;
    height: 18rem;
  }
  
  .mentor-name-section h1 {
    font-size: 2.25rem;
  }
  
  .mentor-login-card {
    padding: 3rem;
  }
  
  .mentor-catchup-content {
    padding: 0.5rem 1rem 1.5rem;
  }
  
  .mentor-catchup-card {
    padding: 1.5rem;
  }
  
  .mentor-catchup-intro h1 {
    font-size: 2.25rem;
  }
  
  .mentor-catchup-subtitle {
    font-size: 1.125rem;
  }
  
  .mentor-catchup-topic p,
  .mentor-catchup-suggestions p {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
}

/* Loading State Styles */
.mentor-catchup-loading {
  animation: fadeIn 0.5s ease-in-out;
}

.mentor-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
}

.mentor-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--mentor-gray-200);
  border-top: 4px solid var(--mentor-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.mentor-loading-text {
  text-align: left;
}

.mentor-loading-main {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mentor-gray-800);
  margin: 0 0 0.5rem 0;
}

.mentor-loading-sub {
  font-size: 1rem;
  color: var(--mentor-gray-600);
  margin: 0;
}

.mentor-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

.mentor-loading-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--mentor-gray-50);
  border-radius: 12px;
  border-left: 4px solid var(--mentor-gray-200);
  transition: all 0.3s ease;
  opacity: 0.6;
}

.mentor-loading-step-active {
  background: var(--mentor-primary-light);
  border-left-color: var(--mentor-primary);
  opacity: 1;
  transform: translateX(8px);
}

.mentor-loading-step i {
  font-size: 1.25rem;
  color: var(--mentor-gray-400);
  min-width: 20px;
  transition: color 0.3s ease;
}

.mentor-loading-step-active i {
  color: var(--mentor-primary);
}

.mentor-loading-step span {
  font-size: 1rem;
  color: var(--mentor-gray-700);
  font-weight: 500;
}

.mentor-loading-step-active span {
  color: var(--mentor-gray-800);
  font-weight: 600;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Loading Styles */
@media (max-width: 640px) {
  .mentor-loading-container {
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
  }
  
  .mentor-loading-text {
    text-align: center;
  }
  
  .mentor-loading-main {
    font-size: 1.25rem;
  }
  
  .mentor-loading-sub {
    font-size: 0.875rem;
  }
  
  .mentor-loading-steps {
    padding: 0 0.5rem;
  }
  
  .mentor-loading-step {
    padding: 0.75rem 1rem;
  }
  
  .mentor-loading-step span {
    font-size: 0.875rem;
  }
}

/* ===== MENTOR CONVERSATION CHOICE STYLES ===== */
.mentor-choice {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mentor-choice-background {
  display: none;
}

.mentor-choice-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
  text-align: center;
  animation: slideUp 0.6s ease-out;
}

.mentor-choice-header {
  margin-bottom: 2rem;
}

.mentor-logo-small {
  margin-bottom: 1rem;
}

.mentor-avatar-small {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--mentor-primary);
  box-shadow: var(--mentor-shadow-lg);
}

.mentor-choice-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mentor-gray-800);
  margin: 0.5rem 0;
}

.mentor-choice-header .mentor-subtitle {
  font-size: 1rem;
  color: var(--mentor-gray-600);
  margin: 0;
}

.mentor-choice-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mentor-choice-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--mentor-surface);
  border: 2px solid var(--mentor-gray-200);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.mentor-choice-button:hover,
.mentor-choice-button.hover {
  border-color: var(--mentor-primary);
  background: var(--mentor-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--mentor-shadow-md);
}

.mentor-choice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--mentor-primary-light);
  border-radius: 12px;
  flex-shrink: 0;
}

.mentor-choice-icon i {
  font-size: 1.5rem;
  color: var(--mentor-primary);
}

.mentor-choice-button:hover .mentor-choice-icon,
.mentor-choice-button.hover .mentor-choice-icon {
  background: var(--mentor-primary);
}

.mentor-choice-button:hover .mentor-choice-icon i,
.mentor-choice-button.hover .mentor-choice-icon i {
  color: white;
}

.mentor-choice-content {
  flex: 1;
}

.mentor-choice-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mentor-gray-800);
  margin: 0 0 0.25rem 0;
}

.mentor-choice-content p {
  font-size: 0.875rem;
  color: var(--mentor-gray-600);
  margin: 0;
}

.mentor-choice-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.mentor-choice-button:hover .mentor-choice-arrow,
.mentor-choice-button.hover .mentor-choice-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.mentor-choice-arrow i {
  font-size: 1rem;
  color: var(--mentor-gray-400);
}

.mentor-choice-footer {
  border-top: 1px solid var(--mentor-gray-200);
  padding-top: 1.5rem;
}

.mentor-choice-footer .mentor-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.mentor-choice-footer .mentor-social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mentor-gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.mentor-choice-footer .mentor-social-links a:hover {
  color: var(--mentor-primary);
}

.mentor-choice-footer .mentor-copyright {
  font-size: 0.75rem;
  color: var(--mentor-gray-500);
  margin: 0;
}

/* ===== MENTOR CHAT STYLES ===== */
.mentor-chat-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--mentor-background);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mentor-chat {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mentor-background);
}

.mentor-chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--mentor-surface);
  border-bottom: 1px solid var(--mentor-gray-200);
  box-shadow: var(--mentor-shadow-sm);
}

/* Back Button Styles */
.mentor-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--mentor-gray-100);
  color: var(--mentor-gray-600);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mentor-back-button:hover {
  background: var(--mentor-gray-200);
  color: var(--mentor-gray-800);
  transform: translateY(-1px);
}

.mentor-back-button:active {
  transform: translateY(0);
}

.mentor-chat-avatar {
  flex-shrink: 0;
}

.mentor-chat-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mentor-primary);
}

.mentor-chat-info {
  flex: 1;
}

.mentor-chat-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mentor-gray-800);
  margin: 0 0 0.25rem 0;
}

.mentor-chat-status {
  font-size: 0.875rem;
  color: var(--mentor-gray-500);
  margin: 0;
}

.mentor-chat-status.connected {
  color: var(--mentor-success);
}

.mentor-chat-connect-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--mentor-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mentor-chat-connect-btn:hover {
  background: var(--mentor-primary-dark);
  transform: translateY(-1px);
}

.mentor-chat-connect-btn.connected {
  background: var(--mentor-success);
  cursor: default;
}

.mentor-chat-connect-btn.connected:hover {
  background: var(--mentor-success);
  transform: none;
}

.mentor-chat-disconnect-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--mentor-error);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mentor-chat-disconnect-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.mentor-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 140px);
}

.mentor-chat-welcome {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--mentor-surface);
  border-radius: 16px;
  box-shadow: var(--mentor-shadow-sm);
  margin: 2rem 0;
}

.mentor-welcome-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mentor-primary);
}

.mentor-welcome-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mentor-gray-800);
  margin: 0 0 0.5rem 0;
}

.mentor-welcome-text p {
  font-size: 0.875rem;
  color: var(--mentor-gray-600);
  margin: 0;
  line-height: 1.5;
}

.mentor-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: messageSlide 0.3s ease-out;
}

.mentor-chat-message.user {
  flex-direction: row-reverse;
}

.mentor-chat-message.system {
  justify-content: center;
}

.mentor-message-avatar {
  flex-shrink: 0;
}

.mentor-message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.mentor-message-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mentor-chat-message.user .mentor-message-content {
  align-items: flex-end;
}

.mentor-chat-message.system .mentor-message-content {
  align-items: center;
  max-width: 90%;
}

.mentor-message-text {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.mentor-chat-message.agent .mentor-message-text {
  background: var(--mentor-surface);
  color: var(--mentor-gray-800);
  border: 1px solid var(--mentor-gray-200);
}

.mentor-chat-message.user .mentor-message-text {
  background: var(--mentor-primary);
  color: white;
}

.mentor-chat-message.system .mentor-message-text {
  background: var(--mentor-gray-100);
  color: var(--mentor-gray-600);
  font-style: italic;
  text-align: center;
}

.mentor-message-time {
  font-size: 0.75rem;
  color: var(--mentor-gray-500);
  padding: 0 0.5rem;
}

.mentor-chat-input-section {
  padding: 1rem 1.5rem;
  background: var(--mentor-surface);
  border-top: 1px solid var(--mentor-gray-200);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.mentor-chat-input-container {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--mentor-gray-50);
  border: 2px solid var(--mentor-gray-200);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.mentor-chat-input-container.focused {
  border-color: var(--mentor-primary);
  background: var(--mentor-surface);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.mentor-chat-input-container textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--mentor-gray-800);
  outline: none;
  resize: none;
  min-height: 20px;
  max-height: 120px;
  line-height: 1.4;
  font-family: inherit;
  padding: 0;
  overflow-y: auto;
}

.mentor-chat-input-container textarea::placeholder {
  color: var(--mentor-gray-500);
}

.mentor-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--mentor-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mentor-send-button:hover:not(:disabled) {
  background: var(--mentor-primary-dark);
  transform: scale(1.05);
}

.mentor-send-button:disabled {
  background: var(--mentor-gray-300);
  cursor: not-allowed;
  transform: none;
}

.mentor-send-button i {
  font-size: 0.875rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 640px) {
  .mentor-choice-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .mentor-choice-button {
    padding: 1rem;
  }
  
  .mentor-choice-icon {
    width: 40px;
    height: 40px;
  }
  
  .mentor-choice-icon i {
    font-size: 1.25rem;
  }
  
  .mentor-chat-header {
    padding: 0.75rem 1rem;
  }
  
  .mentor-chat-messages {
    padding: 0.75rem;
  }
  
  .mentor-chat-input-section {
    padding: 0.75rem 1rem;
  }
  
  .mentor-message-content {
    max-width: 85%;
  }
} 
/* Time Limit Warning Styles */
.mentor-time-limit-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.mentor-time-limit-warning .warning-icon {
  width: 48px;
  height: 48px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mentor-time-limit-warning .warning-icon i {
  color: white;
  font-size: 1.25rem;
}

.mentor-time-limit-warning .warning-text h3 {
  margin: 0 0 0.5rem 0;
  color: #991b1b;
  font-size: 1.125rem;
  font-weight: 600;
}

.mentor-time-limit-warning .warning-text p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Remaining Time Info Styles */
.mentor-remaining-time-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #166534;
}

.mentor-remaining-time-info i {
  color: #22c55e;
}

/* Disabled button styles */
.mentor-choice-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f3f4f6;
}

.mentor-choice-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .mentor-time-limit-warning {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  
  .mentor-time-limit-warning .warning-icon {
    width: 40px;
    height: 40px;
  }
  
  .mentor-time-limit-warning .warning-icon i {
    font-size: 1rem;
  }
}

