/* English Subject Page Styles */

/* Subject Hero Section */
.subject-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8edff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.subject-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/icons/english-icon.svg');
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 350px;
    opacity: 0.07;
    z-index: 0;
}

.subject-hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.subject-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #333;
}

.subject-hero-content .subject-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.subject-hero-image {
    text-align: center;
}

.subject-hero-image img {
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Topics Section */
.topics-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.topic-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e8edff;
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #6741d9;
}

.topic-icon {
    margin-bottom: 20px;
}

.topic-icon img {
    width: 60px;
    height: 60px;
}

.topic-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.topic-card p {
    color: #666;
    line-height: 1.5;
}

/* AI Assistant Section */
.ai-assistant-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.assistant-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chat-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #6741d9;
    color: #fff;
}

.chat-header img {
    width: 35px;
    height: 35px;
    margin-right: 15px;
}

.chat-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.chat-messages {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.message {
    display: flex;
    margin-bottom: 20px;
    max-width: 80%;
}

.message p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
}

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

.message-user p {
    background: #e8edff;
    color: #333;
    border-bottom-right-radius: 4px;
}

.message-ai p {
    background: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-loading p {
    background: #f0f2f5;
    color: #666;
}

.message-loading p::after {
    content: "...";
    animation: dots 1.5s infinite;
}

.message-error p {
    background: #ffeeee;
    color: #cc0000;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
}

.chat-input input:focus {
    border-color: #6741d9;
    box-shadow: 0 0 0 2px rgba(103, 65, 217, 0.1);
}

.chat-input button {
    margin-left: 10px;
    height: 45px;
    width: 80px;
}

.assistant-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-right: 15px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-content h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Vocabulary Builder Section */
.vocab-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.vocab-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.vocab-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.vocab-list h3 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 1.6rem;
}

.vocab-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.vocab-card h4 {
    color: #6741d9;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.vocab-card .definition,
.vocab-card .example {
    margin-bottom: 15px;
    line-height: 1.5;
}

.vocab-card .example {
    color: #555;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.vocab-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Poetry Analysis Section */
.poetry-section {
    padding: 80px 0;
    background-color: #fff;
}

.poetry-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.poetry-selector {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.poem-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.poem-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.poem-text h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.poem-text pre {
    font-family: 'Georgia', serif;
    white-space: pre-wrap;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    font-size: 1rem;
}

.poem-breakdown h4 {
    color: #6741d9;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.poem-breakdown p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.poem-breakdown ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.poem-breakdown li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #888;
}

.placeholder-content img {
    width: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.placeholder-content p {
    max-width: 400px;
    line-height: 1.5;
}

/* Writing Assistant Section */
.writing-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.writing-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.writing-editor {
    margin-bottom: 30px;
}

.writing-editor textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.writing-editor textarea:focus {
    border-color: #6741d9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(103, 65, 217, 0.1);
}

.writing-feedback {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.writing-analysis h3 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.feedback-section {
    margin-bottom: 30px;
}

.feedback-section h4 {
    color: #6741d9;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feedback-meter {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 15px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #6741d9, #8e70e3);
    border-radius: 5px;
}

.feedback-section ul {
    padding-left: 20px;
}

.feedback-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.highlighted-text {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

/* Animation */
@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Loading & Error States */
.loading {
    text-align: center;
    color: #666;
    padding: 30px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #cc0000;
    background-color: #ffeeee;
    padding: 15px;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .poetry-container {
        grid-template-columns: 1fr;
    }
    
    .subject-hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .subject-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .assistant-features {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* 测验部分样式 */
.quiz-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.quiz-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-top: 20px;
    width: 90%;
}

.quiz-content {
    min-height: 400px;
    position: relative;
    display: none; /* 初始状态下只隐藏内容 */
    width: 100%;
}

.quiz-content {
    min-height: 400px;
    position: relative;
    width: 100%;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

/* Add a new class for initially hidden content */
.quiz-content.initially-hidden {
    display: none;
}

/* Add a new style to ensure JavaScript visibility works properly */
.quiz-content.visible {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.quiz-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

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

.quiz-progress {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quiz-option {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000; /* Always black text */
}

.quiz-option span {
    color: #000; /* Ensure text inside spans is black too */
}

.quiz-option:hover {
    background-color: var(--hover-bg);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: var(--success-light);
}

.quiz-option.incorrect {
    border-color: var(--error-color);
    background-color: var(--error-light);
}

.quiz-option input[type="radio"] {
    margin-right: 0.5rem;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.answer-feedback h4 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.explanation {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.result-summary {
    margin: 2rem 0;
}

.grade {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.result-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.learning-assessment {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.assessment-content {
    margin: 1rem 0;
    line-height: 1.6;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quiz-controls {
        grid-template-columns: 1fr;
    }
    
    .quiz-option {
        padding: 0.8rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .reading-test-controls {
        flex-direction: column;
    }
    
    .reading-test-controls select,
    .reading-test-controls button {
        width: 100%;
    }
    
    .quiz-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .quiz-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .test-passage {
        padding: 15px;
        font-size: 1rem;
    }
}

/* 阅读测试样式 */
.reading-test-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.reading-test-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.reading-article {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.cloze-article {
    white-space: pre-line;
}

.questions-container h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #555;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

.question-header {
    display: flex;
    margin-bottom: 10px;
    font-weight: 500;
}

.question-number {
    margin-right: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

.option-item {
    padding: 8px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.option-item:hover {
    background: #f0f0f0;
}

.option-item.correct {
    background: rgba(76, 175, 80, 0.15);
    border-left: 3px solid #4CAF50;
}

.option-item.incorrect {
    background: rgba(244, 67, 54, 0.15);
    border-left: 3px solid #F44336;
}

.option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.option-marker {
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.option-text {
    flex: 1;
}

.explanation-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.correct-answer {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.explanation p {
    color: #666;
    font-style: italic;
}

.test-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.test-results {
    text-align: center;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
}

.test-error {
    padding: 20px;
    background: #fff9f9;
    border-radius: 8px;
    border-left: 4px solid #f44336;
}

.raw-response {
    max-height: 400px;
    overflow-y: auto;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
    white-space: pre-wrap;
}

/* 加载状态 */
.loading:after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

.error {
    color: #f44336;
    text-align: center;
    padding: 20px;
}

/* 阅读测试部分 */
.reading-test {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reading-test-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.reading-test-controls select,
.reading-test-controls button {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.reading-test-controls select {
    background-color: white;
    min-width: 120px;
}

.reading-test-controls select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

#reading-test-container {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.test-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.test-passage {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    white-space: pre-wrap;
    border: 1px solid #eee;
    width: 100%;
    max-width: 100%;
    font-size: 1.05rem;
}

.test-questions {
    margin-bottom: 20px;
}

.question {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-text {
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
}

.option {
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option input[type="radio"] {
    margin-right: 10px;
}

.test-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.test-results {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f5f7ff;
    border: 1px solid #e1e5f1;
}

.test-results h4 {
    margin-top: 0;
    color: #333;
}

.explanation {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

/* 选项样式 */
.correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.incorrect {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.correct-answer {
    background-color: rgba(40, 167, 69, 0.05);
    border-left: 3px solid #28a745;
}

.unanswered {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

.show-correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.loading-spinner div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #007bff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-spinner div:nth-child(1) {
    left: 8px;
    animation: loading-spinner1 0.6s infinite;
}

.loading-spinner div:nth-child(2) {
    left: 8px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(3) {
    left: 32px;
    animation: loading-spinner2 0.6s infinite;
}

.loading-spinner div:nth-child(4) {
    left: 56px;
    animation: loading-spinner3 0.6s infinite;
}

@keyframes loading-spinner1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading-spinner3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading-spinner2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

/* 错误消息 */
.error-message {
    color: #dc3545;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reading-test-controls {
        flex-direction: column;
    }
    
    .reading-test-controls select,
    .reading-test-controls button {
        width: 100%;
    }
}

/* Add this new style for better button appearance */
#generate-quiz, #generate-reading-test {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(114, 9, 183, 0.2);
}

#generate-quiz:hover, #generate-reading-test:hover {
    background: linear-gradient(135deg, #3b54d6, #6408a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 9, 183, 0.3);
}

@media (max-width: 576px) {
    #generate-quiz, #generate-reading-test {
        width: 100%;
        margin-top: 0.5rem;
    }
} 