/* ===================================
   Place Value Lesson Plan - Complete Styles
   ================================== */

/* Global Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

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

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-brand { font-size: 1.4rem; font-weight: 600; }
.back-link { color: white; text-decoration: none; font-weight: 500; transition: opacity 0.3s; }
.back-link:hover { opacity: 0.8; }
.role-selector select { padding: 8px 15px; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; }

/* Hero Section */
.hero {
    text-align: center; padding: 40px 20px; background: white;
    border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.hero h1 { font-size: 2.5rem; color: #2d3748; margin-bottom: 15px; }
.lesson-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.badge { background: #667eea; color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }

/* Overview Card */
.overview-card { background: white; padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.overview-card h2 { color: #2d3748; margin-bottom: 15px; }
.progress-indicator { margin-top: 20px; padding: 15px; background: #f7fafc; border-radius: 8px; }
.progress-bar { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin-top: 10px; }
#progressFill { height: 100%; background: linear-gradient(90deg, #48bb78, #38a169); width: 0%; transition: width 0.5s ease; }

/* Navigation Grid */
.navigation-grid h2 { color: #2d3748; margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.nav-card {
    background: white; padding: 25px; border-radius: 12px;
    text-decoration: none; color: #2d3748; transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); display: block;
}
.nav-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }
.card-icon { font-size: 2.5rem; margin-bottom: 10px; }
.nav-card h3 { color: #667eea; margin-bottom: 8px; }
.nav-card p { color: #718096; font-size: 0.95rem; }

/* Section Headers */
.section-header { text-align: center; padding: 30px 20px; background: white; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.section-header h1 { font-size: 2.2rem; color: #2d3748; }
.subtitle { color: #718096; font-size: 1.1rem; margin-top: 10px; }

/* Learning Outcomes */
.outcomes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.outcome-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); border-left: 5px solid #667eea; }
.outcome-number {
    width: 40px; height: 40px; background: #667eea; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: bold; margin-bottom: 15px;
}
.outcome-card h3 { color: #2d3748; margin-bottom: 10px; }
.outcome-description { color: #4a5568; margin: 10px 0; }
.pedagogy-link { background: #f7fafc; padding: 12px; border-radius: 6px; margin-top: 15px; border-left: 3px solid #48bb78; }

/* Info Cards */
.info-card { background: #edf2f7; padding: 25px; border-radius: 12px; margin: 20px 0; border-left: 5px solid #4299e1; }
.info-card h3 { color: #2d3748; margin-bottom: 10px; }

/* Quiz and Forms */
.quiz-form, .reflection-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.quiz-question { margin-bottom: 25px; padding: 20px; background: #f7fafc; border-radius: 8px; }
.quiz-question label { display: block; margin-bottom: 10px; font-weight: 600; color: #2d3748; }
.quiz-question input[type="text"], .quiz-question textarea {
    width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 6px; font-size: 1rem; font-family: inherit;
}
.quiz-question input:focus, textarea:focus { outline: none; border-color: #667eea; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-group label { font-weight: normal; cursor: pointer; }

/* Feedback */
.feedback { margin-top: 10px; padding: 10px; border-radius: 6px; font-weight: 500; display: none; }
.feedback.correct { background: #c6f6d5; color: #22543d; display: block; }
.feedback.incorrect { background: #fed7d7; color: #742a2a; display: block; }

/* Buttons */
.btn { padding: 12px 24px; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; font-weight: 500; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5568d3; transform: translateY(-2px); }
.btn-secondary { background: #718096; color: white; }
.btn-secondary:hover { background: #4a5568; }
.navigation-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* Activity & Resource Cards */
.activity-section, .prep-section, .phase-container, .assessment-type, .resource-section, .diff-section, .reflection-section { margin-bottom: 30px; }
.activity-card, .resource-card, .tool-card, .assessment-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.activity-card h3, .resource-card h3, .tool-card h3 { color: #667eea; margin-bottom: 15px; }

/* Phase Containers */
.phase-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; }
.phase-content { background: white; padding: 30px; border-radius: 0 0 12px 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.time-badge { background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; }

/* Tables */
.place-value-table { width: 100%; border-collapse: collapse; margin: 20px 0; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.place-value-table th, .place-value-table td { padding: 15px; text-align: center; border: 2px solid #e2e8f0; }
.place-value-table th { background: #667eea; color: white; font-weight: 600; }
.matrix-table, .rubric-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.matrix-table th, .rubric-table th { background: #2d3748; color: white; padding: 15px; }
.matrix-table td, .rubric-table td { padding: 12px; border: 1px solid #e2e8f0; }
.matrix-table tr:nth-child(even), .rubric-table tr:nth-child(even) { background: #f7fafc; }

/* Hidden Elements */
.hidden { display: none !important; }

/* Tool Instructions */
.tool-instructions { background: #edf2f7; padding: 20px; border-radius: 8px; margin-top: 15px; border-left: 4px solid #4299e1; }
.tool-instructions ol { margin-left: 20px; }
.tool-instructions li { margin: 10px 0; }

/* Additional Styles */
.teacher-script { background: #fffbeb; padding: 15px; border-left: 4px solid #f59e0b; border-radius: 6px; font-style: italic; }
.step-number { display: inline-block; width: 30px; height: 30px; background: #667eea; color: white; border-radius: 50%; text-align: center; line-height: 30px; margin-right: 10px; font-weight: bold; }
.formula { font-size: 1.3rem; font-weight: bold; color: #2d3748; padding: 15px; background: #f7fafc; border-radius: 8px; text-align: center; margin: 15px 0; }
.score-display { display: none; padding: 15px; margin-top: 20px; border-radius: 8px; font-weight: bold; font-size: 1.2rem; text-align: center; }
.checklist { margin-top: 15px; }
.checklist label { display: block; margin: 10px 0; cursor: pointer; }
.checklist input[type="checkbox"] { margin-right: 10px; }

/* Slides */
.slideshow { position: relative; min-height: 500px; }
.slide { display: none; background: white; padding: 50px; border-radius: 15px; box-shadow: 0 5px 30px rgba(0,0,0,0.1); min-height: 500px; }
.slide.active { display: block; }
.slide-content { max-width: 900px; margin: 0 auto; }
.slide-number { position: absolute; top: 20px; right: 30px; background: #667eea; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; }
.title-slide { text-align: center; padding: 80px 20px; }
.title-slide h1 { font-size: 3rem; color: #2d3748; margin-bottom: 10px; }
.title-slide h2 { font-size: 2rem; color: #667eea; margin-bottom: 20px; }
.slideshow-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 25px 0; }
#slideCounter, #slideCounter2 { font-weight: 600; color: #4a5568; }

/* Alignment Visual */
.alignment-diagram { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px; background: #f7fafc; border-radius: 12px; margin-top: 20px; }
.alignment-column { flex: 1; }
.alignment-column h4 { text-align: center; color: #2d3748; margin-bottom: 15px; }
.alignment-item { background: white; padding: 12px; margin: 8px 0; border-radius: 6px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.alignment-arrow { font-size: 2rem; color: #667eea; font-weight: bold; }

/* Differentiation Grids */
.support-grid, .enrichment-grid, .materials-grid, .accessibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.support-card, .enrichment-card, .material-card, .access-card, .strategy-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.support-card h4, .enrichment-card h4, .material-card h4, .access-card h4, .strategy-card h4 { color: #667eea; margin-bottom: 12px; }

/* Typography */
ul, ol { margin-left: 25px; margin-top: 10px; }
li { margin: 8px 0; }
a { color: #667eea; transition: color 0.3s; }
a:hover { color: #5568d3; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 15px; color: #2d3748; }
h2 { font-size: 1.8rem; margin-top: 30px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 15px; }
strong { font-weight: 600; color: #2d3748; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .card-grid { grid-template-columns: 1fr; }
    .outcomes-grid { grid-template-columns: 1fr; }
    .alignment-diagram { flex-direction: column; }
    .alignment-arrow { transform: rotate(90deg); }
    .slide-content { padding: 30px 15px; }
    .navbar { flex-direction: column; gap: 15px; }
    .navigation-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .support-grid, .enrichment-grid, .materials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 10px; }
    .slide { padding: 20px; }
    .title-slide h1 { font-size: 2rem; }
    .title-slide h2 { font-size: 1.5rem; }
}

/* Print Styles */
@media print {
    .navbar, .navigation-buttons, .btn, .slideshow-controls { display: none; }
    .slide { display: block !important; page-break-after: always; }
    body { background: white; }
}
