/* ============================================
   EDUCATION MINIGAMES CSS
   Styles for teaching-themed games
   ============================================ */

.education-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: auto;
    color: white;
    width: 100%;
}

.education-game .game-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.education-game .game-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

.education-game .timer-icon {
    font-size: 1.3rem;
}

.education-game .timer-warning {
    color: #ff4444;
    animation: pulse 0.5s infinite;
}

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

.education-game .game-progress {
    background: rgba(76, 175, 80, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ============================================
   GRADING PAPERS GAME
   ============================================ */

.grading-game {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.grading-game .grading-desk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.grading-game .paper-stack {
    perspective: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.grading-game .student-paper {
    background: linear-gradient(135deg, #FFFEF0 0%, #F5F5DC 100%);
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    min-height: 200px;
    padding: 25px 25px 30px 25px;
    border-radius: 8px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    color: #333;
    transform-style: preserve-3d;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.grading-game .student-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: #ffcccb;
}

.grading-game .student-paper.graded {
    transform: translateX(100px) rotateY(-20deg);
    opacity: 0;
}

.grading-game .paper-header {
    border-bottom: 2px solid #666;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    padding-left: 40px;
}

.grading-game .paper-question {
    margin-bottom: 20px;
    padding-left: 40px;
    padding-right: 10px;
}

.grading-game .paper-question strong {
    color: #555;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.grading-game .paper-question p {
    margin-top: 8px;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
}

.grading-game .paper-answer {
    background: rgba(255, 255, 0, 0.2);
    padding: 15px 15px 15px 40px;
    border-radius: 5px;
    border-left: 4px solid #FFD700;
    margin-top: 15px;
}

.grading-game .paper-answer strong {
    color: #555;
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.grading-game .paper-answer p {
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #1E3A5F;
}

.grading-game .grading-buttons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
    padding-top: 10px;
}

.grading-game .grade-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 140px;
}

.grading-game .correct-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.grading-game .wrong-btn {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
}

.grading-game .grade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.grading-game .grade-icon {
    font-size: 1.6rem;
}

.grading-game .grading-feedback {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 30px;
    text-align: center;
}

.grading-game .grading-feedback.success {
    color: #4CAF50;
}

.grading-game .grading-feedback.error {
    color: #f44336;
}

/* ============================================
   LESSON PLANNING GAME
   ============================================ */

.lesson-planning-game .lesson-board {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
}

.lesson-planning-game h3 {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.lesson-planning-game .lesson-instruction {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.lesson-planning-game .step-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.lesson-planning-game .step-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    min-height: 50px;
    transition: all 0.2s;
}

.lesson-planning-game .step-slot.drag-over {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196F3;
}

.lesson-planning-game .step-slot.filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5);
}

.lesson-planning-game .step-slot.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.lesson-planning-game .step-slot.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.lesson-planning-game .slot-number {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.lesson-planning-game .slot-content {
    flex: 1;
    color: rgba(255, 255, 255, 0.6);
}

.lesson-planning-game .step-slot.filled .slot-content {
    color: white;
}

.lesson-planning-game .step-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    min-height: 60px;
    margin-bottom: 20px;
}

.lesson-planning-game .step-item {
    background: linear-gradient(135deg, #5C6BC0 0%, #3949AB 100%);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.lesson-planning-game .step-item:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.lesson-planning-game .step-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.lesson-planning-game .submit-plan-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.lesson-planning-game .submit-plan-btn:hover {
    transform: scale(1.02);
}

.lesson-planning-game .lesson-feedback {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 30px;
}

.lesson-planning-game .lesson-feedback.success {
    color: #4CAF50;
}

.lesson-planning-game .lesson-feedback.error {
    color: #f44336;
}

/* ============================================
   ATTENDANCE CHECK GAME
   ============================================ */

.attendance-game .classroom-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.attendance-game .desk-spot {
    width: 60px;
    height: 60px;
    background: rgba(139, 90, 43, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.attendance-game .desk-spot.occupied {
    background: rgba(76, 175, 80, 0.3);
}

.attendance-game .desk-spot.empty {
    background: rgba(100, 100, 100, 0.3);
}

.attendance-game .student-icon {
    font-size: 2rem;
}

.attendance-game .empty-desk {
    font-size: 1.5rem;
    opacity: 0.5;
}

.attendance-game .attendance-question {
    text-align: center;
    margin-bottom: 20px;
}

.attendance-game .attendance-question p {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.attendance-game .present-text {
    color: #4CAF50;
    font-weight: bold;
}

.attendance-game .absent-text {
    color: #f44336;
    font-weight: bold;
}

.attendance-game .count-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.attendance-game .count-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #5C6BC0 0%, #3949AB 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.attendance-game .count-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.attendance-game .attendance-feedback {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 30px;
}

.attendance-game .attendance-feedback.success {
    color: #4CAF50;
}

.attendance-game .attendance-feedback.error {
    color: #f44336;
}

/* ============================================
   POP QUIZ GAME
   ============================================ */

.pop-quiz-game .quiz-card {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pop-quiz-game .quiz-question {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.pop-quiz-game .quiz-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pop-quiz-game .quiz-answer-btn {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
    min-height: 50px;
    text-align: center;
}

.pop-quiz-game .quiz-answer-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.pop-quiz-game .quiz-answer-btn:disabled {
    cursor: default;
}

.pop-quiz-game .quiz-answer-btn.correct {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4CAF50;
}

.pop-quiz-game .quiz-answer-btn.wrong {
    background: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
}

.pop-quiz-game .quiz-feedback {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    min-height: 30px;
}

.pop-quiz-game .quiz-feedback.success {
    color: #4CAF50;
}

.pop-quiz-game .quiz-feedback.error {
    color: #f44336;
}

/* ============================================
   PARENT CONFERENCE GAME
   ============================================ */

.parent-conference-game .conference-room {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    max-width: 550px;
    margin: 0 auto;
}

.parent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.parent-avatar {
    font-size: 2.5rem;
}

.parent-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.parent-concern {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-style: italic;
}

.response-prompt {
    margin-bottom: 10px;
    font-weight: bold;
}

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

.response-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
    width: 100%;
}

.response-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.response-btn.correct {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4CAF50;
}

.response-btn.wrong {
    background: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
}

.conference-feedback {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.conference-feedback.success { color: #4CAF50; }
.conference-feedback.error { color: #f44336; }

/* ============================================
   CLASSROOM MANAGEMENT GAME
   ============================================ */

.classroom-mgmt-game .classroom-situation {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    max-width: 550px;
    margin: 0 auto;
}

.situation-display {
    text-align: center;
    margin-bottom: 20px;
}

.situation-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.situation-desc {
    font-size: 1.1rem;
    font-weight: bold;
}

.action-prompt {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.action-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    min-height: 50px;
    width: 100%;
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-btn.correct {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4CAF50;
}

.action-btn.wrong {
    background: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
}

.mgmt-feedback {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.mgmt-feedback.success { color: #4CAF50; }
.mgmt-feedback.error { color: #f44336; }

/* ============================================
   REPORT CARD GAME
   ============================================ */

.report-card-game .report-card-area {
    max-width: 450px;
    margin: 0 auto;
}

.student-report {
    background: linear-gradient(135deg, #FFFEF0 0%, #F5F5DC 100%);
    padding: 20px;
    border-radius: 10px;
    color: #333;
}

.student-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #666;
    padding-bottom: 10px;
}

.student-header .student-avatar {
    font-size: 2rem;
}

.student-header .student-name {
    font-size: 1.3rem;
    font-weight: bold;
}

.grade-breakdown {
    margin-bottom: 15px;
}

.grade-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}

.grade-row.total {
    border-bottom: none;
    border-top: 2px solid #666;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: bold;
}

.grade-row .score {
    font-weight: bold;
    color: #1E3A5F;
}

.grade-prompt {
    text-align: center;
    margin: 15px 0 10px;
    font-weight: bold;
}

.grade-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.grade-option-btn {
    padding: 12px 15px;
    border: 2px solid #666;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 100px;
    min-height: 45px;
    text-align: center;
}

.grade-option-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

.grade-option-btn.correct {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.grade-option-btn.wrong {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.report-feedback {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.report-feedback.success { color: #4CAF50; }
.report-feedback.error { color: #f44336; }

/* ============================================
   FIRE DRILL GAME
   ============================================ */

.fire-drill-game .drill-area {
    max-width: 550px;
    margin: 0 auto;
}

.classroom-visual {
    background: rgba(255, 100, 100, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 2px dashed #ff6666;
}

.students-group {
    font-size: 1.5rem;
    letter-spacing: 5px;
}

.drill-progress-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.drill-step-indicator {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.drill-step-indicator.completed {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4CAF50;
}

.drill-step-indicator.current {
    border-color: #ff6666;
    box-shadow: 0 0 10px #ff6666;
}

.drill-instruction {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.drill-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
    width: 100%;
}

.drill-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.drill-option-btn .option-icon {
    font-size: 1.5rem;
}

.drill-option-btn.correct {
    background: rgba(76, 175, 80, 0.5);
    border-color: #4CAF50;
}

.drill-option-btn.wrong {
    background: rgba(244, 67, 54, 0.5);
    border-color: #f44336;
}

.drill-feedback {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.drill-feedback.success { color: #4CAF50; }
.drill-feedback.error { color: #f44336; }

/* ============================================
   SUPPLY REQUEST GAME
   ============================================ */

.supply-request-game .supply-area {
    max-width: 550px;
    margin: 0 auto;
}

.budget-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.budget-label {
    color: rgba(255, 255, 255, 0.7);
}

.budget-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 0 10px;
}

.spent-amount {
    color: rgba(255, 255, 255, 0.7);
}

.spent-amount.over-budget {
    color: #f44336;
    font-weight: bold;
}

.remaining-amount {
    display: block;
    margin-top: 5px;
    color: #4CAF50;
    font-size: 0.9rem;
}

.needs-list {
    background: rgba(255, 200, 100, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #FFD700;
}

.needs-list.optional-list {
    background: rgba(100, 200, 255, 0.15);
    border-left: 4px solid #64B5F6;
}

.needs-list.optional-list h4 {
    color: #64B5F6;
}

.needs-list h4 {
    margin-bottom: 10px;
    color: #FFD700;
}

.needs-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.need-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.need-item.required {
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.need-item.optional {
    border: 1px solid rgba(100, 181, 246, 0.5);
}

.need-item.fulfilled {
    background: rgba(76, 175, 80, 0.5);
    text-decoration: line-through;
}

.supply-item-btn.required-item {
    border-color: rgba(255, 215, 0, 0.6);
}

.supply-item-btn.optional-item {
    border-color: rgba(100, 181, 246, 0.6);
}

.supply-catalog h4 {
    margin-bottom: 10px;
}

.catalog-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.supply-item-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.supply-item-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.supply-item-btn.selected {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

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

.supply-item-btn .item-name {
    flex: 1;
    text-align: left;
}

.supply-item-btn .item-price {
    font-weight: bold;
    color: #4CAF50;
}

.submit-order-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-order-btn:hover {
    transform: scale(1.02);
}

.supply-feedback {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
}

.supply-feedback.success { color: #4CAF50; }
.supply-feedback.error { color: #f44336; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 600px) {
    .education-game {
        padding: 10px;
    }

    .grading-game .student-paper {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 15px;
    }

    .grading-game .grading-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .grading-game .grade-btn {
        padding: 12px 20px;
        min-width: 120px;
    }

    .attendance-game .classroom-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .attendance-game .desk-spot {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .pop-quiz-game .quiz-answers {
        grid-template-columns: 1fr;
    }
}
