/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vh: 1vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: calc(var(--vh, 1vh) * 100);
    padding: 4px;
    font-size: 14px;
    overflow: hidden; /* Prevent body scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: calc(var(--vh, 1vh) * 100 - 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
.top-nav {
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: white;
    border-radius: 20px 20px 0 0;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.top-nav-brand img {
    width: 24px;
    height: 24px;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-nav-actions .btn {
    padding: 4px 12px;
    font-size: 13px;
    height: 28px;
}

.container-content {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header styles */
h1 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
    font-size: 24px;
}

h2 {
    color: #555;
    margin-bottom: 10px;
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

/* Child list (home page) */
.child-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.child-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.child-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.child-card h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Topic selection */
.topic-selection {
    margin-top: 20px;
}

.topic-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.topic-card:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.topic-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.topic-card p {
    color: #666;
    margin-bottom: 15px;
}

.topic-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Header (child page) - 3 column layout */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    gap: 15px;
    transition: all 0.3s ease;
}

/* Compact header when messages are scrollable */
.header.compact {
    padding: 5px 0;
    margin-bottom: 5px;
    gap: 10px;
    grid-template-columns: auto 1fr;
}

.header.compact #avatar-container {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.header.compact .avatar-image-container {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
}

.header.compact .avatar-status-badge {
    width: 20px;
    height: 20px;
    font-size: 12px;
    top: -4px;
    right: -4px;
}

.header.compact .child-name {
    font-size: 14px;
}

.header.compact #avatar-container .btn {
    display: none;
}

.header.compact #achievements-column {
    display: none;
}

.header.compact #rewards-container {
    flex-direction: row;
    gap: 15px;
    justify-self: end;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Left column - Avatar */
#avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

#avatar-container .avatar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Middle column - Achievements */
#achievements-column {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
}

/* Right column - Rewards */
#rewards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
}

.reward-item {
    white-space: nowrap;
}

/* Avatar image with status badge overlay */
.avatar-image-container {
    position: relative;
    width: 100px;
    height: 100px;
    min-width: 80px;
    min-height: 80px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-status-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #667eea;
}

/* Legacy emoji avatar fallback */
.avatar {
    font-size: 32px;
    line-height: 1;
}

.child-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.reward-time, .reward-money {
    background: #667eea;
    color: white;
    padding: 8px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.reward-money {
    background: #28a745;
}

.reward-none {
    color: #999;
    font-style: italic;
}

/* Tutor interface */
.tutor-interface {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 10px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-child {
    background: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: fit-content;
}

.message-tutor {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    font-size: 15px;
}

/* ASCII diagram rendering */
.message pre,
.message code,
.message .ascii-art {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    white-space: pre;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
    line-height: 1.4;
    font-size: 14px;
    overflow-x: auto;
}

.message-child pre,
.message-child code,
.message-child .ascii-art {
    background: rgba(255, 255, 255, 0.15);
}

.message-tutor pre,
.message-tutor code,
.message-tutor .ascii-art {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
}

/* SVG diagram rendering */
.svg-diagram {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
}

.svg-diagram svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.message-child .svg-diagram {
    background: rgba(255, 255, 255, 0.15);
}

.clickable-option {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 4px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.clickable-option:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.clickable-option:active {
    transform: translateY(0);
}

/* Reuse text button */
.reuse-text-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-end;
}

.reuse-text-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.reuse-text-btn:active {
    transform: scale(0.95);
}

.loading-message {
    background: #f0f0f0 !important;
    color: #999 !important;
    font-style: italic;
    border: 2px dashed #ddd !important;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f5f5f5;
}

.encouragement {
    margin: 10px 0;
    padding: 10px 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-style: italic;
    color: #856404;
    text-align: center;
}

/* Quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
    padding: 4px;
}

.quick-reply-btn {
    padding: 3px 3px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

.quick-reply-btn:active {
    transform: translateY(0);
}

.quick-reply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Input area */
.input-area {
    background: white;
    border-radius: 15px;
    padding: 4px;
    /*box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);*/
}

#message-form {
    display: flex;
    gap: 10px;
}

#message-input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: none;
    overflow-y: hidden;
    max-height: calc(1.4em * 20);
    line-height: 1.4em;
    min-height: calc(1.4em + 20px);
}

#message-input:focus {
    border-color: #667eea;
}

/* Clear input button */
.clear-input-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.clear-input-btn:hover {
    color: #667eea;
}

/* Buttons */
.btn {
    padding: 8px 8px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.topic-btn {
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .child-list {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 85%;
    }

    .avatar {
        font-size: 36px;
    }
}

/* Loading state */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* Avatar customization section */
.avatar-customization-section {
    text-align: center;
    margin: 20px 0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #667eea;
}

.modal-body {
    padding: 20px;
}

.modal-description {
    color: #666;
    margin-bottom: 15px;
}

.modal-body input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    font-family: inherit;
}

.modal-body input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.avatar-preview {
    text-align: center;
    margin: 20px 0;
}

.avatar-preview img {
    max-width: 300px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

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

.attempt-counter {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Avatar cost and payment selection */
.avatar-cost-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 2px solid #e9ecef;
}

.avatar-cost-info p {
    margin: 0 0 10px 0;
    color: #333;
}

.cost-options {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.cost-option {
    flex: 1;
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #667eea;
    border: 2px solid #667eea;
}

.cost-separator {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
}

/* Chemistry Symbol Helpers */
.symbol-toggle-btn {
    padding: 6px 12px;
    background: #667eea;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    display: block;
    width: fit-content;
}

.symbol-toggle-btn:hover {
    background: #5568d3;
}

.symbol-toggle-btn:active {
    transform: scale(0.95);
}

#symbol-toggle-icon {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s;
}

.symbol-helpers {
    display: flex;
    gap: 3px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.symbol-btn {
    padding: 4px 10px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 6px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 35px;
    font-size: 1rem;
}

.symbol-btn:hover {
    background: #667eea;
    color: white;
}

.symbol-btn:active {
    transform: scale(0.95);
}

.balance-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.balance-info span {
    font-weight: 600;
    color: #333;
}

.payment-selection {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 2px solid #667eea;
}

.payment-selection > p {
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 500;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.payment-option span {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.payment-option.disabled:hover {
    border-color: #e9ecef;
    background: #f8f9fa;
}

.balance-check {
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

.balance-check.sufficient {
    color: #28a745;
}

.balance-check.insufficient {
    color: #dc3545;
}

#avatar-loading {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    font-size: 64px;
    animation: spin 2s linear infinite;
}

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

#avatar-loading p {
    color: #666;
    margin-top: 15px;
    font-size: 14px;
}

/* Achievement System Styles */
.achievement-badge-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.achievement-badge-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.achievement-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.achievement-category {
    margin-bottom: 32px;
}

.achievement-category h3 {
    font-size: 18px;
    color: #2c5282;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.achievement-card.earned {
    background: linear-gradient(135deg, #fff7ed, #fffaf0);
    border-color: #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.achievement-card.earned:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.achievement-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 12px 0 0 12px;
    transition: width 0.5s ease-in-out;
    z-index: 0;
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.achievement-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.achievement-description {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.achievement-date {
    font-size: 12px;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.achievement-locked-text {
    font-size: 14px;
    color: #a0aec0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Achievement Toast Notification */
.achievement-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 36px;
    animation: bounce 0.6s ease-in-out infinite;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 16px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: #2d3748;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

/* Character Preset Selection Styles */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 8px;
}

.preset-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.preset-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
}

.preset-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.preset-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preset-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.preset-gender {
    font-size: 0.85rem;
    color: #64748b;
}

.preset-description {
    font-size: 0.85rem;
    color: #64748b;
}

/* Pronunciation Practice Styles */
.speak-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.speak-btn:hover {
    background: #f0f4ff;
}

.russian-word {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #4a90e2;
    padding: 2px 4px;
    border-radius: 4px;
    background: #f0f8ff;
}

.pronunciation-listening {
    padding: 10px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #856404;
}

.pronunciation-correct {
    padding: 10px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #155724;
}

.pronunciation-incorrect {
    padding: 10px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #721c24;
}

.pronunciation-error {
    padding: 10px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #856404;
}

.pronunciation-info {
    padding: 10px;
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #0c5460;
}
