* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.main-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.pedagogy-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.description {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.description h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.description p {
    line-height: 1.7;
    color: #444;
    font-size: 14px;
}

.dialogue-container {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.dialogue-turn {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

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

.tutor-turn {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-left: 4px solid #667eea;
}

.student-turn {
    background: linear-gradient(135deg, #10b98110, #05966910);
    border-left: 4px solid #10b981;
}

.role-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutor-label {
    color: #667eea;
}

.student-label {
    color: #10b981;
}

.dialogue-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.question-indicator {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 5px;
}

.key-insights {
    background: linear-gradient(135deg, #ffd93d20, #ffb74d20);
    border-left: 4px solid #ffd93d;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.key-insights h3 {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 16px;
}

.key-insights ul {
    list-style: none;
    padding: 0;
}

.key-insights li {
    padding: 8px 0;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.key-insights li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.action-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.play-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

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

.loading-spinner {
    margin: 30px auto;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ef5350;
}
