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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('https://wusteam.com/public/src/vtd/img/main/bg.webp') center center / cover no-repeat fixed;
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score,
.question-count {
    font-weight: 600;
    color: #555;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 1px solid #17a2b8;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.btn-info:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Main content */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-height: 500px;
}

/* Welcome screen */
.welcome-screen {
    text-align: center;
    padding: 60px 20px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

/* Quiz container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Quiz settings */
.quiz-settings {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    user-select: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

/* Repeat indicator */
.repeat-indicator {
    color: #667eea;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.question-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.question-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* Question header */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.read-answer-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 0;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.options-container {
    display: grid;
    gap: 15px;
}

.option {
    padding: 20px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.option.correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.option.incorrect {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-label {
    font-weight: 600;
    margin-right: 15px;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.quiz-actions {
    text-align: center;
    margin-top: 30px;
}

.result {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.result h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.result.success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.result.error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Repeat prompt */
.repeat-prompt {
    text-align: center;
    padding: 30px;
}

.repeat-prompt h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #667eea;
}

.repeat-prompt p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.repeat-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.remaining-info {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Input Mode Styles */
.input-mode-container {
    text-align: center;
    padding: 20px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.answer-input {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    min-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.submit-btn {
    padding: 15px 25px;
    font-size: 1rem;
    white-space: nowrap;
}

.hint-text {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.hint-text p {
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

.hint-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hint-item {
    background: white;
    border: 1px solid #667eea;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.input-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
}

.input-result.correct {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #155724;
}

.input-result.incorrect {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #721c24;
}

.result-content h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.result-content p {
    margin-bottom: 8px;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive cho input mode */
@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .answer-input {
        min-width: auto;
        width: 100%;
    }

    .hint-options {
        flex-direction: column;
        align-items: center;
    }

    .hint-item {
        width: fit-content;
    }
}

/* No questions message */
.no-questions {
    text-align: center;
    padding: 60px 20px;
}

.no-questions h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #666;
}

.no-questions p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #888;
}

/* Folders list styles */
.folders-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.folder-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.folder-card.clickable {
    cursor: pointer;
}

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

.folder-card.empty {
    opacity: 0.6;
    cursor: not-allowed;
}

.folder-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.folder-info {
    flex: 1;
}

.folder-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}

.folder-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.questions-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Admin styles */
.admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
}

.folders-management-section,
.add-question-section,
.questions-list-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

.folder-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.folders-list-admin {
    max-height: 300px;
    overflow-y: auto;
}

.folder-item-admin {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.folder-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.folder-item-actions {
    display: flex;
    gap: 8px;
}

.folder-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 10px;
}

.add-question-section h2,
.questions-list-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.5rem;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Noto Sans JP', sans-serif;
}

.list-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.questions-list {
    max-height: 600px;
    overflow-y: auto;
}

.question-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.question-item h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.question-options {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.question-option {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.question-option.correct {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    font-weight: 500;
}

.question-explanation {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: #f1f3f4;
    border-radius: 6px;
}

.question-folder-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.question-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    margin: auto;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* TXT Import Modal */
.txt-import-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.import-instructions {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.import-instructions h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.format-example {
    margin-bottom: 20px;
}

.format-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
}

.format-rules ul {
    margin: 0;
    padding-left: 20px;
}

.format-rules li {
    margin-bottom: 8px;
    color: #555;
}

.format-rules code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #2d3748;
}

.import-form {
    margin-bottom: 25px;
}

.txt-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.txt-preview h4 {
    margin-bottom: 15px;
    color: #333;
}

.preview-summary {
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
    color: #333;
}

.preview-question {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.preview-question h5 {
    margin-bottom: 10px;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
}

.preview-option {
    padding: 5px 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.preview-option.correct {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    font-weight: 500;
}

.preview-explanation {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
    font-style: italic;
}

.preview-more {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 25px;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

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

    .folders-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .folder-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .admin-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .folders-management-section,
    .add-question-section,
    .questions-list-section {
        padding: 20px;
    }

    .list-actions {
        flex-direction: column;
        gap: 10px;
    }

    .folder-filter {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .modal-content {
        padding: 20px;
    }

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

    .quiz-settings {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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

/* Genki Cat */
.genki-cat {
    position: fixed !important;
    top: 50px !important;
    left: 70px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer;
}

.cat-container {
    width: 80px;
    height: 80px;
    position: relative;
    animation: catBounce 2s ease-in-out infinite;
}

.cat-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
    transition: transform 0.3s ease;
}

.cat-gif:hover {
    transform: scale(1.1);
}









.ear.left {
    left: 5px;
    transform: rotate(-20deg);
}

.ear.right {
    right: 5px;
    transform: rotate(20deg);
}

.cat-eyes {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
}

.eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    top: 0;
    animation: catBlink 4s ease-in-out infinite;
}

.eye.left {
    left: 2px;
}

.eye.right {
    right: 2px;
}

.cat-nose {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: #ff69b4;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(255, 105, 180, 0.3);
}

.cat-mouth {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.cat-mouth::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 3px;
    background: #ff69b4;
    border-radius: 50%;
}

.cat-tail {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 20px;
    height: 3px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 3px;
    animation: catTailWag 1.5s ease-in-out infinite;
    transform-origin: left center;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.cat-tail::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -1px;
    width: 4px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}


/* Waving paw */
.cat-container::before {
    content: '';
    position: absolute;
    top: 25px;
    right: -10px;
    width: 6px;
    height: 15px;
    background: #ff8c42;
    border-radius: 3px;
    transform: rotate(-30deg);
    animation: catWave 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}

.cat-container::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    width: 4px;
    height: 4px;
    background: #ffb3ba;
    border-radius: 50%;
    transform: rotate(-30deg);
    animation: catWave 2s ease-in-out infinite;
}

@keyframes catWave {

    0%,
    100% {
        transform: rotate(-30deg);
    }

    50% {
        transform: rotate(-60deg);
    }
}

.cat-message {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    animation: catMessagePop 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes catBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes catWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

@keyframes catBlink {

    0%,
    90%,
    100% {
        height: 8px;
    }

    95% {
        height: 2px;
    }
}

@keyframes catTailWag {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(20deg);
    }
}

@keyframes catMessagePop {

    0%,
    80%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0px);
    }

    85%,
    95% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

.genki-cat:hover .cat-container {
    animation: catHappy 0.5s ease-in-out;
}

.genki-cat:hover .cat-message {
    animation: catMessageHappy 0.5s ease-in-out;
}

@keyframes catHappy {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes catMessageHappy {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Sakana Widget - Takina bên trái */
.sakana-box-left {
    position: fixed !important;
    bottom: 0px !important;
    left: -70px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

/* Sakana Widget - Chisato bên phải */
.sakana-box-right {
    position: fixed !important;
    bottom: 0px !important;
    right: -50px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

/* Responsive cho Sakana Widget */
@media (max-width: 768px) {

    .sakana-box-left,
    .sakana-box-right {
        display: none !important;
    }

    .genki-cat {
        top: 20px !important;
        left: 30px !important;
    }

    .cat-container {
        width: 60px;
        height: 60px;
    }

    .cat-body {
        width: 45px;
        height: 35px;
    }

    .cat-head {
        width: 35px;
        height: 30px;
    }

    .ear {
        width: 10px;
        height: 15px;
    }

    .eye {
        width: 6px;
        height: 6px;
    }

    .cat-message {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .option {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .question-card {
        padding: 20px;
    }

    .question-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .read-answer-btn {
        align-self: flex-end;
        min-width: 50px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}