/* ==========================================
   Docenten Portal Specific Styles
   Using Design System Components
   ========================================== */

/* Import design system */
@import url('design-system.css');

/* Teacher Portal Body */
.teacher-portal {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Dashboard Overview */
.dashboard-overview {
    margin-bottom: var(--space-3xl);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.dashboard-card {
    background: #FFFFFF;
    /* backdrop-filter removed for performance */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.week-badge, .date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.card-body {
    padding: var(--space-lg);
}

/* Current Week Card */
.current-week h4 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: var(--space-xs);
}

/* Quick Actions */
.action-buttons {
    display: grid;
    gap: var(--space-md);
}

.action-btn {
    /* Extend design system button styles */
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: 0.025em;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.action-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Schedule Timeline */
.schedule-timeline {
    position: relative;
    padding-left: var(--space-xl);
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-sm) 0;
    position: relative;
    opacity: 0.6;
    transition: all var(--transition);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.timeline-item.active {
    opacity: 1;
    font-weight: 600;
}

.timeline-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(143, 209, 79, 0.2);
}

.time {
    color: var(--primary);
    font-weight: 600;
    min-width: 50px;
}

.activity {
    color: var(--text-dark);
}

/* ==========================================
   Week Planner with VOOR/TIJDENS/NA
   ========================================== */
.teacher-week-nav {
    margin-bottom: var(--space-3xl);
}

.week-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    background: #FFFFFF;
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.week-tab {
    background: white;
    border: 2px solid transparent;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--text-medium);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.week-tab:hover {
    background: var(--primary-light);
    color: white;
}

.week-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.week-content {
    background: #FFFFFF;
    /* backdrop-filter removed for performance */
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.week-plan {
    display: none;
}

.week-plan.active {
    display: block;
    animation: fadeIn var(--transition);
}

.week-plan h3 {
    color: var(--primary);
    margin-bottom: var(--space-xl);
    font-size: 1.5rem;
}

/* WAAROM/HOE/WAT for Teachers */
.teacher-whw {
    display: grid;
    gap: var(--space-xl);
}

.whw-section {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.whw-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.whw-section.waarom::before {
    background: var(--primary);
}

.whw-section.hoe::before {
    background: var(--accent);
}

.whw-section.wat::before {
    background: var(--text-dark);
}

.whw-section h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.whw-section h5 {
    color: var(--primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

/* Learning Goals */
.learning-goals {
    background: rgba(143, 209, 79, 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.learning-goals ul {
    list-style: none;
    padding: 0;
}

.learning-goals li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.learning-goals li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Lesson Phases */
.lesson-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.phase {
    background: var(--background-grey);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.phase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.phase.voor::after {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.phase.tijdens::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-red-light));
}

.phase.na::after {
    background: linear-gradient(90deg, var(--text-dark), var(--text-medium));
}

.phase h5 {
    margin-top: 0;
}

.phase ul, .phase ol {
    padding-left: var(--space-lg);
    line-height: 1.8;
}

.phase li {
    margin-bottom: var(--space-sm);
}

.phase strong {
    color: var(--primary);
}

/* Activity Checklist */
.activity-checklist {
    background: rgba(143, 209, 79, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.activity-checklist h5 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.activity-checklist label {
    display: block;
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.activity-checklist label:hover {
    background: rgba(143, 209, 79, 0.1);
    border-radius: var(--radius-sm);
}

.activity-checklist input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.activity-checklist input[type="checkbox"]:checked + * {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Intervention Moments */
.intervention-moments {
    background: rgba(230, 57, 70, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
}

.intervention-moments h5 {
    color: var(--accent);
}

.intervention-moments ul {
    list-style: none;
    padding: 0;
}

.intervention-moments li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.intervention-moments li:last-child {
    border-bottom: none;
}

.intervention-moments strong {
    color: var(--accent);
    display: inline-block;
    min-width: 60px;
}

/* ==========================================
   Timer Section
   ========================================== */
.timer-section {
    margin-bottom: var(--space-3xl);
}

.timer-container {
    background: #FFFFFF;
    /* backdrop-filter removed for performance */
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.timer-display {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.timer-circle {
    display: inline-block;
    position: relative;
}

.timer-svg {
    width: 200px;
    height: 200px;
}

.timer-progress {
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    fill: var(--text-dark);
}

/* Timer Controls */
.timer-controls {
    display: grid;
    gap: var(--space-xl);
}

.phase-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.phase-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition);
}

.phase-btn:hover {
    background: var(--primary);
    color: white;
}

.phase-btn.active {
    background: var(--primary);
    color: white;
}

.timer-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.timer-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.timer-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.timer-btn.pause {
    background: var(--accent);
}

.timer-btn.reset {
    background: var(--text-medium);
}

.timer-btn.bell {
    background: #FFD700;
    color: var(--text-dark);
}

.custom-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
}

.custom-timer input {
    width: 80px;
    padding: var(--space-sm);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}

.custom-timer button {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
}

.custom-timer button:hover {
    background: var(--primary-dark);
}

/* ==========================================
   Didactic Tools
   ========================================== */
.didactic-tools {
    margin-bottom: var(--space-3xl);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.tool-card {
    background: #FFFFFF;
    /* backdrop-filter removed for performance */
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.tool-card h4 {
    color: var(--text-dark);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

/* Intervention List */
.intervention-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.intervention-item {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.intervention-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.intervention-item p {
    margin: 0;
    color: var(--text-medium);
    font-style: italic;
}

/* Observation Checklist */
.observation-checklist label {
    display: block;
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.observation-checklist label:hover {
    background: rgba(143, 209, 79, 0.05);
    border-radius: var(--radius-sm);
}

.observation-checklist input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: 16px;
    height: 16px;
}

/* Question Bank */
.question-bank {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.question-category {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.question-category h4 {
    margin-top: 0;
    color: var(--primary);
}

.question-category ul {
    padding-left: var(--space-lg);
    line-height: 1.8;
}

.question-category li {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

/* ==========================================
   Assessment Tools Styles
   ========================================== */
.assessment-tools {
    margin-bottom: var(--space-3xl);
}

.assessment-container {
    background: #FFFFFF;
    /* backdrop-filter removed for performance */
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

/* Assessment Overview */
.assessment-overview {
    margin-bottom: var(--space-2xl);
}

.assessment-overview h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.assessment-component {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.weight-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: bold;
    font-size: 0.9rem;
}

.assessment-component h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.assessment-component p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

/* Rubrics Section */
.rubrics-section {
    margin-bottom: var(--space-2xl);
}

.rubrics-section h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.rubric-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.rubric-card h4 {
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.rubric-table {
    width: 100%;
    border-collapse: collapse;
}

.rubric-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.rubric-table th {
    padding: var(--space-md);
    text-align: left;
    font-size: 0.9rem;
}

.rubric-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rubric-table tbody tr:hover {
    background: rgba(143, 209, 79, 0.05);
}

.rubric-table td {
    padding: var(--space-md);
    font-size: 0.85rem;
}

.rubric-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Quick Assessment */
.quick-assessment {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2xl);
}

.quick-assessment h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.checklist-column h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.team-input {
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 1rem;
    margin-left: var(--space-sm);
}

.checklist-section {
    background: var(--background-grey);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.checklist-section h5 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.checklist-section label {
    display: block;
    padding: var(--space-xs) 0;
    cursor: pointer;
}

.checklist-section input[type="checkbox"] {
    margin-right: var(--space-sm);
}

/* Scores Section */
.score-section {
    margin-bottom: var(--space-md);
}

.score-section label {
    display: block;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.score-input {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    text-align: center;
}

.total-score {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin: var(--space-lg) 0;
}

.total-score h5 {
    margin-bottom: var(--space-sm);
}

#weighted-average {
    font-size: 2rem;
    font-weight: bold;
}

.calculate-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all var(--transition);
}

.calculate-btn:hover {
    background: var(--accent-red-dark);
}

/* Assessment Notes */
.assessment-notes {
    margin-top: var(--space-2xl);
}

.assessment-notes h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

#assessment-feedback {
    width: 100%;
    min-height: 200px;
    padding: var(--space-md);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.assessment-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.assessment-actions button {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
}

.assessment-actions button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Grade Distribution */
.grade-distribution {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

.grade-distribution h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.distribution-chart {
    height: 200px;
    position: relative;
    margin-bottom: var(--space-xl);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    margin: 0 5px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: all var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar:hover {
    background: linear-gradient(180deg, var(--accent-red-light), var(--accent));
}

.bar span {
    position: absolute;
    top: -20px;
    font-weight: bold;
    color: var(--text-dark);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    padding-top: var(--space-sm);
    border-top: 2px solid var(--text-dark);
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: var(--text-dark);
}

.distribution-stats {
    display: flex;
    justify-content: space-around;
    background: var(--background-grey);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

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

.stat-label {
    display: block;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* ==========================================
   Quick Navigation
   ========================================== */
.quick-navigation {
    margin-bottom: var(--space-3xl);
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.nav-controls {
    display: grid;
    gap: var(--space-xl);
}

.week-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.week-selector label {
    font-weight: 600;
    color: var(--text-dark);
}

#weekJumper {
    flex: 1;
    max-width: 400px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

#weekJumper:hover,
#weekJumper:focus {
    border-color: var(--primary);
    outline: none;
}

.quick-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.nav-btn {
    padding: var(--space-sm) var(--space-lg);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-btn.current-week {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-btn.current-week:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.section-jumpers {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.jump-btn {
    padding: var(--space-sm) var(--space-md);
    background: rgba(143, 209, 79, 0.1);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition);
}

.jump-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Keyboard Shortcuts */
.shortcuts-guide {
    margin-top: var(--space-xl);
    text-align: center;
}

.toggle-shortcuts {
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all var(--transition);
}

.toggle-shortcuts:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
}

.shortcuts-list {
    margin-top: var(--space-lg);
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.shortcuts-list h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-lg);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.shortcut {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--background-grey);
    border-radius: var(--radius-sm);
}

kbd {
    display: inline-block;
    padding: 3px 6px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    white-space: nowrap;
}

.shortcut span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Week Progress */
.week-progress {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
}

.week-progress h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 30px;
    background: var(--background-grey);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width var(--transition);
}

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.progress-details .completed {
    color: var(--primary);
}

.progress-details .current {
    color: var(--accent);
    font-weight: 600;
}

.progress-details .remaining {
    color: var(--text-medium);
}

/* ==========================================
   Teacher Notes Section
   ========================================== */
.teacher-notes {
    margin-bottom: var(--space-3xl);
}

.notes-container {
    display: grid;
    gap: var(--space-2xl);
}

/* Quick Notes */
.quick-notes {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.note-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-light);
}

.note-tab {
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.note-tab:hover {
    color: var(--primary);
}

.note-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.note-panel {
    display: none;
}

.note-panel.active {
    display: block;
}

.note-panel textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition);
}

.note-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.note-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.save-note-btn,
.timestamp-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.timestamp-btn {
    background: var(--accent);
}

.save-note-btn:hover {
    background: var(--primary-dark);
}

.timestamp-btn:hover {
    background: var(--accent-red-dark);
}

/* Team and Student Selectors */
.team-selector,
.student-selector {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    align-items: center;
}

.team-selector select,
.student-selector input,
.student-selector select {
    padding: var(--space-sm);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.student-selector input {
    flex: 1;
}

/* Incident Tags */
.incident-type {
    margin-bottom: var(--space-md);
}

.incident-tags {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.tag-btn {
    padding: var(--space-xs) var(--space-md);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.tag-btn:hover,
.tag-btn.active {
    border-color: var(--primary);
    background: rgba(143, 209, 79, 0.1);
}

/* Observation Templates */
.observation-templates {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.template-icon {
    font-size: 1.5rem;
}

/* Saved Notes */
.saved-notes {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.notes-filter {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.notes-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
}

.note-item {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.note-date {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.note-type {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform var(--transition);
}

.star-btn:hover {
    transform: scale(1.2);
}

.note-preview {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.note-footer {
    display: flex;
    gap: var(--space-sm);
}

.expand-btn,
.edit-btn,
.delete-btn {
    padding: var(--space-xs) var(--space-sm);
    background: var(--background-grey);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.expand-btn:hover {
    background: var(--primary);
    color: white;
}

.edit-btn:hover {
    background: #FFD700;
}

.delete-btn:hover {
    background: var(--accent);
    color: white;
}

/* Notes Export */
.notes-export {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.export-btn {
    padding: var(--space-sm) var(--space-lg);
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.export-btn:hover {
    background: var(--primary);
    color: white;
}

/* Voice Notes */
.voice-notes {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.voice-btn:hover {
    background: var(--accent-red-dark);
}

.voice-btn.recording {
    background: #ff0000;
    animation: pulse 1.5s infinite;
}

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

.voice-status {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.status-text {
    color: var(--text-medium);
}

.recording-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.voice-transcription {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.transcription-text {
    padding: var(--space-md);
    background: var(--background-grey);
    border-radius: var(--radius-sm);
    margin: var(--space-md) 0;
    min-height: 100px;
}

.add-to-notes-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.add-to-notes-btn:hover {
    background: var(--primary-dark);
}

/* ==========================================
   Event Cards Library
   ========================================== */
.event-cards-library {
    margin-bottom: var(--space-3xl);
}

.event-intro {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.event-intro p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.event-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.event-category {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.event-category h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.event-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.event-card.opportunity {
    border-color: var(--primary-light);
}

.event-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.event-card.opportunity .event-card-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.event-icon {
    font-size: 1.5rem;
}

.event-card-header h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.event-card-body {
    padding: var(--space-lg);
}

.event-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.event-impact {
    background: rgba(143, 209, 79, 0.1);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
}

.event-questions {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-md);
}

.event-questions strong {
    color: var(--accent);
    display: block;
    margin-bottom: var(--space-sm);
}

.event-questions ul {
    list-style: none;
    padding: 0;
}

.event-questions li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    color: var(--text-medium);
}

.event-questions li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.use-event-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.use-event-btn:hover {
    background: var(--primary-dark);
}

/* Event Deployment Guide */
.event-deployment-guide {
    margin-top: var(--space-2xl);
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.event-deployment-guide h3 {
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.deployment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.step {
    display: flex;
    gap: var(--space-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: var(--text-medium);
    line-height: 1.5;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .week-tabs {
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .lesson-phases {
        grid-template-columns: 1fr;
    }
    
    .phase-buttons {
        grid-template-columns: 1fr;
    }
    
    .timer-actions {
        flex-wrap: wrap;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-timer {
        flex-direction: column;
    }
}

/* ==========================================
   Printable Lesson Plans
   ========================================== */
.printable-lessons {
    margin-bottom: var(--space-3xl);
}

.print-controls {
    background: #FFFFFF;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.print-options {
    display: grid;
    gap: var(--space-lg);
}

.print-options label {
    font-weight: 600;
    color: var(--text-dark);
}

#printWeekSelect {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    max-width: 400px;
}

.print-format {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.print-format label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.print-btn,
.preview-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-block;
    margin-right: var(--space-md);
}

.preview-btn {
    background: var(--accent);
}

.print-btn:hover {
    background: var(--primary-dark);
}

.preview-btn:hover {
    background: var(--accent-red-dark);
}

/* Print Layout */
.print-layout {
    display: none;
}

.print-layout.active {
    display: block;
}

/* Print Preview Modal */
.print-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
}

.print-preview-modal.active {
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: white;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header button {
    background: var(--accent);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.preview-content {
    flex: 1;
    padding: var(--space-lg);
    overflow: auto;
    background: #666;
}

#printPreviewFrame {
    width: 100%;
    height: 100%;
    background: white;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    /* Hide non-printable elements */
    .no-print,
    .site-header,
    .site-footer,
    .dashboard-overview,
    .quick-navigation,
    .teacher-week-nav,
    .timer-section,
    .didactic-tools,
    .assessment-tools,
    .event-cards-library,
    .teacher-notes,
    .print-controls,
    .print-preview-modal {
        display: none !important;
    }
    
    /* Show print layout */
    .print-layout {
        display: block !important;
    }
    
    /* Reset page styles */
    * {
        margin: 0;
        padding: 0;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
        background: white;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 15mm;
    }
    
    .lesson-page {
        page-break-after: always;
        page-break-inside: avoid;
        width: 100%;
    }
    
    .lesson-page:last-child {
        page-break-after: auto;
    }
    
    /* Print header */
    .print-header {
        display: flex;
        justify-content: space-between;
        border-bottom: 2px solid #000;
        padding-bottom: 10pt;
        margin-bottom: 15pt;
    }
    
    .print-header h1 {
        font-size: 16pt;
        font-weight: bold;
        margin: 0;
    }
    
    .print-header h2 {
        font-size: 14pt;
        color: #333;
        margin: 5pt 0 0 0;
    }
    
    .header-right {
        text-align: right;
        font-size: 10pt;
    }
    
    .header-right p {
        margin: 2pt 0;
    }
    
    /* Print sections */
    .print-section {
        margin-bottom: 15pt;
        page-break-inside: avoid;
    }
    
    .print-section h3 {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 8pt;
        padding: 5pt;
        background: #f0f0f0;
        border-left: 3pt solid #8FD14F;
    }
    
    /* Objectives list */
    .objectives-list {
        list-style: none;
        padding-left: 0;
    }
    
    .objectives-list li {
        margin: 5pt 0;
        padding-left: 20pt;
    }
    
    /* Timing table */
    .timing-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    
    .timing-table th,
    .timing-table td {
        border: 1pt solid #ddd;
        padding: 5pt;
        text-align: left;
    }
    
    .timing-table th {
        background: #f0f0f0;
        font-weight: bold;
    }
    
    .timing-table tr:nth-child(even) {
        background: #f9f9f9;
    }
    
    /* Conflict box */
    .conflict-box {
        border: 1pt solid #ddd;
        padding: 10pt;
        background: #f9f9f9;
    }
    
    .conflict-item {
        margin: 5pt 0;
        padding: 5pt;
        background: white;
        border-left: 2pt solid #E63946;
    }
    
    /* Intervention checklist */
    .intervention-checklist p {
        margin: 5pt 0;
        padding-left: 20pt;
    }
    
    /* Notes section */
    .notes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10pt;
    }
    
    .note-box {
        border: 1pt solid #ddd;
        padding: 8pt;
        background: #f9f9f9;
    }
    
    .note-box h4 {
        font-size: 10pt;
        font-weight: bold;
        margin-bottom: 5pt;
    }
    
    .lines p {
        margin: 8pt 0;
        border-bottom: 1pt solid #999;
        min-height: 15pt;
    }
    
    /* Assessment grid */
    .assessment-grid {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    
    .assessment-grid th,
    .assessment-grid td {
        border: 1pt solid #000;
        padding: 5pt;
        text-align: center;
    }
    
    .assessment-grid th {
        background: #e0e0e0;
        font-weight: bold;
    }
    
    .assessment-grid td {
        height: 20pt;
    }
    
    /* Print footer */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9pt;
        color: #666;
        padding: 5pt;
        border-top: 1pt solid #ddd;
    }
    
    /* Hide screen-only elements */
    .teacher-portal {
        background: white;
    }
    
    .timer-section,
    .timer-controls,
    .top-nav,
    .site-footer {
        display: none;
    }
    
    .dashboard-card,
    .tool-card,
    .whw-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .week-tabs {
        display: none;
    }
    
    .week-plan {
        display: block !important;
        page-break-before: always;
    }
}

/* ==========================================
   AI Prompt Section Styles
   ========================================== */

/* AI Prompt Section - matches the WHW section design */
.ai-prompt-section {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);  /* Proper spacing from previous section */
    position: relative;
    box-shadow: var(--shadow-sm);
}

.ai-prompt-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);  /* Green accent to match design system */
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.ai-prompt-section h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.prompt-container {
    background: rgba(143, 209, 79, 0.08);  /* Light green background matching primary */
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(143, 209, 79, 0.25);
}

.prompt-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-base);
}

/* Copy Prompt Button - consistent with action-btn style */
.copy-prompt {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-base);
    letter-spacing: 0.025em;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.copy-prompt:hover {
    background: var(--primary-dark);
    color: white;  /* Ensure text remains white on hover */
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.copy-prompt:active {
    transform: translateY(0);
}

/* Lesson Tools Section */
.lesson-tools {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.lesson-tools h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}