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

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

/* ==================== SETUP SCREEN ==================== */
.setup-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.setup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.setup-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.setup-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.setup-header .subtitle {
    opacity: 0.8;
    font-size: 0.95rem;
}

.setup-content {
    padding: 30px;
}

.setup-section {
    margin-bottom: 24px;
}

.setup-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.setup-section input,
.setup-section select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.setup-section input:focus,
.setup-section select:focus {
    outline: none;
    border-color: #667eea;
}

.topic-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.suggestion {
    padding: 6px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.voice-description {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* Level Selection */
.level-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.level-option {
    flex: 1;
    cursor: pointer;
}

.level-option input[type="radio"] {
    display: none;
}

.level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.2s;
}

.level-option input[type="radio"]:checked + .level-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.level-option:hover .level-card {
    border-color: #a0aec0;
}

.level-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.level-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
}

/* Role Selection */
.role-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f7fafc;
    transition: all 0.2s;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.role-option:hover .role-card {
    border-color: #a0aec0;
}

.role-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.role-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.8rem;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.hint-text {
    text-align: center;
    margin-top: 16px;
    color: #718096;
    font-size: 0.9rem;
}

.hint-text kbd {
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: #4a5568;
}

.btn-end {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: #e53e3e;
    color: white;
}

.btn-end:hover:not(:disabled) {
    background: #c53030;
}

.setup-footer {
    padding: 20px;
    text-align: center;
    background: #f7fafc;
    font-size: 0.8rem;
    color: #718096;
}

.setup-footer a {
    color: #667eea;
    text-decoration: none;
}

/* ==================== APP SCREEN ==================== */
.app-screen {
    display: flex;
    height: 100vh;
}

/* Main Area */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f7fafc;
    min-width: 0;
    overflow: auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-header h1 {
    font-size: 1.2rem;
    color: #2d3748;
}

.current-topic {
    font-size: 0.85rem;
    color: #718096;
    margin-left: 12px;
}

/* Recording Area */
.recording-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 30px;
    min-height: 400px;
}

.teacher-response {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 500px;
    width: 100%;
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.teacher-avatar.thinking {
    animation: pulse-avatar 1.5s ease-in-out infinite;
}

@keyframes pulse-avatar {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.teacher-text {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2d3748;
}

/* Mic Container */
.mic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mic-status {
    font-size: 0.9rem;
    color: #718096;
}

.mic-status.listening {
    color: #e53e3e;
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.mic-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mic-btn:disabled {
    background: #a0aec0;
    border-color: #a0aec0;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mic-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mic-btn.recording {
    background: #e53e3e;
    animation: pulseBtn 1.5s infinite;
}

.mic-btn.auto-start {
    animation: readyPulse 1s infinite;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(229, 62, 62, 0); }
}

@keyframes readyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0); }
}

.mic-icon {
    width: 36px;
    height: 36px;
}

.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    min-width: 100px;
}

.audio-visualizer .bar {
    width: 4px;
    background: #e53e3e;
    border-radius: 2px;
}

/* Feedback Panel */
.feedback-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feedback-score {
    text-align: center;
    margin-bottom: 16px;
}

.score-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.score-label {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
}

.feedback-text p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 8px;
}

.feedback-tip {
    background: #ebf8ff;
    padding: 10px 14px;
    border-left: 3px solid #3182ce;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #2c5282;
}

.toggle-details {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #667eea;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-details:hover {
    background: #f7fafc;
}

.feedback-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    max-height: 400px;
    overflow-y: auto;
}

.score-section {
    margin-bottom: 16px;
}

.score-section h4 {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.transcript {
    background: #f7fafc;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2d3748;
}

.ai-transcript {
    border-left: 3px solid #667eea;
}

.user-transcript {
    border-left: 3px solid #48bb78;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.score-item {
    text-align: center;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.score-item .score-label {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 4px;
}

.score-item .score-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.score-num.excellent {
    color: #276749;
}

.score-num.good {
    color: #975a16;
}

.score-num.needs-work {
    color: #c53030;
}

.fluency-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #4a5568;
}

.fluency-stats span {
    background: #f7fafc;
    padding: 6px 10px;
    border-radius: 6px;
}

.word-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.word-score {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.word-score.excellent {
    background: #c6f6d5;
    color: #276749;
}

.word-score.good {
    background: #fefcbf;
    color: #975a16;
}

.word-score.needs-work {
    background: #fed7d7;
    color: #c53030;
}

.word-score span {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 4px;
}

.phoneme-word {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.phoneme {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 2px;
}

.phoneme.excellent {
    background: #c6f6d5;
    color: #276749;
}

.phoneme.good {
    background: #fefcbf;
    color: #975a16;
}

.phoneme.needs-work {
    background: #fed7d7;
    color: #c53030;
}

/* Comparison layout */
.comparison-section {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.comparison-header h4 {
    margin: 0;
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.comparison-col {
    min-width: 0;
}

.comparison-col .transcript {
    font-size: 0.85rem;
    margin: 0;
}

/* Score comparison table */
.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.score-table th,
.score-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.score-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.score-table th:first-child,
.score-table td:first-child {
    text-align: left;
}

.score-table tbody tr:last-child td {
    border-bottom: none;
}

.score-table .score-num {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==================== CHAT SIDEBAR ==================== */
.chat-sidebar {
    width: 400px;
    background: white;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
    font-size: 1rem;
    color: #2d3748;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Messages */
.chat-message {
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.teacher {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message .message-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.teacher .message-bubble {
    background: #f7fafc;
    color: #2d3748;
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message .message-score {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* Message Images */
.chat-message .message-image {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
}

.chat-message .message-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.chat-message .message-image img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.chat-message.teacher .message-image {
    margin-left: 0;
}

.chat-message.user .message-image {
    margin-left: auto;
}

/* Scrollbar */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.loading-message {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

/* ==================== SUMMARY MODAL ==================== */
.summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.summary-modal {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.summary-header h2 {
    margin-bottom: 8px;
}

.summary-header .overall-grade {
    font-size: 3rem;
    font-weight: 700;
}

.summary-content {
    padding: 24px;
}

.summary-section {
    margin-bottom: 20px;
}

.summary-section h3 {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.summary-stat {
    text-align: center;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
}

.summary-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.summary-stat .label {
    font-size: 0.7rem;
    color: #718096;
    text-transform: uppercase;
}

.summary-feedback {
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    color: #4a5568;
}

.summary-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}

.summary-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .app-screen {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .recording-area {
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .setup-screen {
        padding: 0;
    }

    .setup-container {
        border-radius: 0;
        min-height: 100vh;
    }
}

/* ==================== PRACTICE MODE ==================== */

/* Mode Selection */
.mode-options {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.mode-option {
    flex: 1;
    cursor: pointer;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.2s;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.mode-option:hover .mode-card {
    border-color: #a0aec0;
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.mode-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 4px;
}

.mode-desc {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
}

/* Practice Text Input */
#practiceInputSection textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

#practiceInputSection textarea:focus {
    outline: none;
    border-color: #667eea;
}

#practiceInputSection textarea::placeholder {
    color: #a0aec0;
}

.practice-hint {
    color: #667eea !important;
    font-style: italic;
}

/* Practice Target Display */
.practice-target {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecf5 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.practice-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.practice-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.practice-stress {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.stress-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stress-display {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #2d3748;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.stress-display .word {
    display: inline-block;
    margin-right: 8px;
}

.stress-display .syllable {
    display: inline;
}

.stress-display .syllable.primary {
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    font-size: 1.1em;
}

.stress-display .syllable.secondary {
    font-weight: 600;
    color: #805ad5;
}

.stress-display .syllable-separator {
    color: #a0aec0;
    margin: 0 1px;
}

.practice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.practice-controls .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 1.2rem;
}

.attempt-counter {
    font-size: 0.9rem;
    color: #718096;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Practice Action Buttons */
.practice-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.practice-actions .btn {
    min-width: 140px;
}

/* Secondary Button Style */
.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

/* Practice History Item in Sidebar */
.practice-attempt {
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.practice-attempt.excellent {
    border-left-color: #38a169;
}

.practice-attempt.good {
    border-left-color: #d69e2e;
}

.practice-attempt.needs-work {
    border-left-color: #e53e3e;
}

.practice-attempt .attempt-number {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 4px;
}

.practice-attempt .attempt-score {
    font-size: 1.5rem;
    font-weight: 700;
}

.practice-attempt .attempt-score.excellent {
    color: #38a169;
}

.practice-attempt .attempt-score.good {
    color: #d69e2e;
}

.practice-attempt .attempt-score.needs-work {
    color: #e53e3e;
}

/* Responsive Practice Mode */
@media (max-width: 600px) {
    .mode-options {
        flex-direction: column;
    }

    .practice-text {
        font-size: 1.4rem;
    }

    .practice-controls {
        flex-direction: column;
        gap: 12px;
    }

    .practice-actions {
        flex-direction: column;
    }

    .practice-actions .btn {
        width: 100%;
    }
}
