/* Base styles */
html {
    font-size: 20px; /* 1rem = 20px */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafb;
}

/* Page setup for printing */
@page {
    size: A4;
    margin: 20px 5px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        font-size: 14px;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .worksheet-container {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    /* Ensure colors print correctly */
    .bg-blue-100,
    .bg-yellow-50,
    .bg-green-50,
    .bg-blue-50,
    .bg-purple-50,
    .bg-pink-50,
    .text-blue-600 {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .highlight {
        background-color: #fef08a !important;
    }

    .correct {
        color: #16a34a !important;
    }

    .incorrect {
        color: #dc2626 !important;
    }
}

/* Container styles */
.worksheet-container {
    background-color: white;
    border-radius: 0.75rem;
    /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); */
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* Typography */
.worksheet-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #2563eb; /* text-blue-600 */
}

.section-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #1f2937; /* text-gray-800 */
}

.subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937; /* text-gray-800 */
}

/* Input styles */
.answer-input {
    border-bottom: 1px dashed #4b5563;
    min-width: 80px;
    display: inline-block;
    text-align: center;
    padding: 0.25rem 0.5rem;
}

/* Highlight and feedback styles */
.highlight {
    background-color: #fef08a;
}

.correct {
    color: #16a34a;
}

.incorrect {
    color: #dc2626;
}

/* Card styles */
.info-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Section background colors */
.bg-yellow-50 {
    background-color: #fefce8;
    border-left: 4px solid #facc15;
}

.bg-green-50 {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.bg-blue-50 {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.bg-purple-50 {
    background-color: #faf5ff;
    border-left: 4px solid #a855f7;
}

.bg-pink-50 {
    background-color: #fdf2f8;
    border-left: 4px solid #ec4899;
}

/* Vocabulary card styles */
.vocab-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.vocab-word {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.vocab-type {
    color: #6b7280;
}

.vocab-meaning {
    color: #374151;
}

/* Exercise styles */
.exercise-container {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;    
}

.exercise-title {   
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.exercise-instruction {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

/* Radio button styles */
.radio-group {
    display: flex;
    gap: 1rem;
    padding: 0rem 0.5rem;
    border-radius: 0.5rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
}

.radio-input {
    margin-right: 0.5rem;
}

/* Responsive styles */
@media (min-width: 640px) {
    .grid-2-cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .grid-3-cols {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

/* Utility classes */
.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-500 {
    color: #6b7280;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Print-specific styles */
@media print {
    .worksheet-title {
        font-size: 1.125rem; /* text-lg */
    }

    .section-title {
        font-size: 0.875rem; /* text-sm */
    }

    .subsection-title {
        font-size: 0.875rem;
    }
} 