/* ============================================================
   WACKERS ACADEMIE PORTAL - STYLESHEET
   ============================================================

   IMPORTANT: TO CHANGE BUTTON COLORS/STYLES
   All button styles are centralized at line ~196
   Search for "CENTRALIZED BUTTON STYLES" to find the section

   To change button hover color across ALL pages:
   - Find line ~244: "Primary Button Hover"
   - Change "background: #000000" to your desired color

   ============================================================ */

/* Complete redesign with modern, minimal aesthetic inspired by Cal.com */
/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  margin: 0;
  padding: 0;
  color: #374151;
  line-height: 1.6;
  font-size: 16px;
}

/* Main container for all portal pages - clean, centered layout */
.wackers-student-dashboard,
.wackers-teacher-dashboard,
.wackers-admin-dashboard,
.wackers-assessments-view,
.wackers-assessments-list,
.wackers-feedback-form,
.wackers-feedback-view,
.wackers-assessment-input,
.wackers-attendance-lists,
.wackers-student-history,
.wackers-lesgroep-management,
.wackers-user-management,
.wackers-settings,
.wackers-reports,
.wackers-trimester-beheer,
.vakken-beheer-page,
.wackers-debug-viewer,
.wackers-assign-vakken-tool,
.mijn-gegevens-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

/* Modern page headers with subtle typography hierarchy */
.dashboard-header,
.assessments-header,
.feedback-header,
.assessment-header,
.attendance-header,
.history-header,
.management-header,
.settings-header,
.reports-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.dashboard-header .header-actions,
.assessments-header .header-actions,
.feedback-header .header-actions,
.assessment-header .header-actions,
.attendance-header .header-actions,
.history-header .header-actions,
.management-header .header-actions,
.settings-header .header-actions,
.reports-header .header-actions {
  margin-top: 1rem;
}

.dashboard-header h1,
.assessments-header h1,
.feedback-header h1,
.assessment-header h1,
.attendance-header h1,
.history-header h1,
.management-header h1,
.settings-header h1,
.reports-header h1 {
  color: #2b5473;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.dashboard-header h2,
.assessments-header h2,
.feedback-header h2,
.assessment-header h2,
.attendance-header h2,
.history-header h2,
.management-header h2,
.settings-header h2,
.reports-header h2 {
  color: #2b5473;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.dashboard-header p,
.assessments-header p,
.feedback-header p,
.assessment-header p,
.attendance-header p,
.history-header p,
.management-header p,
.settings-header p,
.reports-header p {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0;
  font-weight: 400;
}

/* Section labels with modern typography */
.section-label,
label {
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modern form elements with subtle shadows and clean borders */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

select,
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="file"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 0.875rem;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: #2b5473;
}

select:hover,
input:hover,
textarea:hover {
  border-color: #9ca3af;
}

/* Added styling for disabled select options */
select option:disabled {
  color: #9ca3af !important;
  background-color: #f9fafb !important;
  cursor: not-allowed !important;
  font-style: italic;
}

select option:disabled:hover {
  background-color: #f9fafb !important;
  color: #9ca3af !important;
}

/* Ensure disabled options are visually distinct */
select:focus option:disabled {
  color: #6b7280 !important;
  background-color: #f3f4f6 !important;
}

/* ============================================================
   CENTRALIZED BUTTON STYLES - EDIT ALL BUTTONS HERE
   ============================================================
   To change button styles across the entire portal, edit this section only.
   All portal pages use these unified button styles.
   ============================================================ */

/* Primary Button Style - Used for main actions throughout portal */
/* NOTE: button selector excludes #wackers-dashboard-root so Tailwind classes work there */
button:not(#wackers-dashboard-root *),
.btn,
.action-button,
.assess-button,
.previous-button,
.edit-button,
.archive-button,
.load-students-btn,
.submit-btn,
.submit-button,
.upload-button,
.save-button,
.add-button,
.preview-button,
.edit-lesgroep,
.delete-lesgroep,
.btn-action,
.btn-save,
.btn-add-vak,
.btn-mijn-gegevens,
.expand-button,
.view-details-btn,
.edit-assessment-btn,
.delete-assessment-btn,
.generate-report,
.edit-user,
.change-role {
  background: #214457 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
  margin-top: 1rem;
  white-space: nowrap;
  width: auto;
  height: auto;
  line-height: 1.5;
}

/* Primary Button Hover - BLACK BACKGROUND for all buttons */
button:not(#wackers-dashboard-root *):hover,
.btn:hover,
.action-button:hover,
.assess-button:hover,
.previous-button:hover,
.edit-button:hover,
.archive-button:hover,
.load-students-btn:hover,
.submit-btn:hover,
.submit-button:hover,
.upload-button:hover,
.save-button:hover,
.add-button:hover,
.preview-button:hover,
.edit-lesgroep:hover,
.delete-lesgroep:hover,
.btn-action:hover,
.btn-save:hover,
.btn-add-vak:hover,
.btn-mijn-gegevens:hover,
.expand-button:hover,
.view-details-btn:hover,
.edit-assessment-btn:hover,
.delete-assessment-btn:hover,
.generate-report:hover,
.edit-user:hover,
.change-role:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Secondary Button Style - Used for cancel/back actions */
.secondary-button,
.cancel-button,
.btn-back {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  white-space: nowrap;
  width: auto;
  height: auto;
  line-height: 1.5;
}

.secondary-button:hover,
.cancel-button:hover,
.btn-back:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-1px);
}

/* Accent Button Style - Used for special emphasis actions */
.accent-button {
  background: #214457;
  color: #ffffff;
}

.accent-button:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Logout Button Style */
.btn-logout {
  background: #214457;
  color: #ffffff;
  white-space: nowrap;
  width: auto;
  height: auto;
  line-height: 1.5;
}

.btn-logout:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ============================================================
   END OF CENTRALIZED BUTTON STYLES
   ============================================================ */

/* Form actions container */
.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-actions button {
  margin-top: 0;
}

/* Tab system with modern styling */
.settings-tabs,
.user-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-button {
  background: transparent;
  color: #6b7280;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0;
  border-bottom: 2px solid transparent;
}

.tab-button:hover {
  color: #374151;
  background: #f9fafb;
}

.tab-button.active {
  color: #2b5473;
  border-bottom-color: #2b5473;
  background: #ffffff;
}

/* Modern card system with subtle shadows */
.dashboard-card,
.assessment-card,
.feedback-student-card,
.student-item,
.lesgroep-item,
.report-card,
.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0;
  transition: all 0.2s ease;
}

.dashboard-card:hover,
.assessment-card:hover,
.feedback-student-card:hover {
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.dashboard-card h3,
.assessment-card h3,
.feedback-student-card h3 {
  color: #2b5473;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* Grid layouts with consistent spacing */
.dashboard-grid,
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Assessment display with modern card styling */
.assessment-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.grade-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0;
  border-left: 4px solid #2b5473;
}

.grade-label {
  font-weight: 600;
  color: #2b5473;
  font-size: 0.875rem;
}

.grade-value {
  color: #374151;
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Feedback display with clean styling */
.feedback-details {
  background: #f8fafc;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.feedback-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.feedback-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.feedback-section h4 {
  color: #2b5473;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feedback-content {
  color: #374151;
  line-height: 1.6;
  background: white;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid #d1d5db;
}

/* Enhanced feedback form styling with photo management */
.wackers-feedback-form {
  /* Width controlled by main container styles above */
}

.feedback-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.feedback-mode-controls {
  position: absolute;
  top: 0;
  right: 0;
}

/* Feedback view mode styling */
.feedback-view-mode {
  background: #f8fafc;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

/* Student actions with modern button layout */
.student-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Trimester sections with clean card styling */
.trimester-section {
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  border-radius: 0;
  overflow: hidden;
}

.trimester-header {
  background: #2b5473;
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.trimester-content {
  padding: 1.5rem;
  background: #ffffff;
}

/* Target assessment layout matching the provided screenshot */

/* Academic Year Accordion - Groups all trimesters per year with collapsible functionality */
.academic-year-accordion {
  margin-bottom: 1.5rem;
  border: 2px solid #2b5473;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
}

.academic-year-header {
  background: #2b5473;
  color: #ffffff;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #2b5473;
  user-select: none;
}

.academic-year-header:hover {
  background: #2b5473;
}

.academic-year-header.is-expanded {
  border-bottom: 2px solid #2b5473;
}

.academic-year-title {
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  transition: all 0.2s ease;
}

.academic-year-header:hover .accordion-toggle {
  background: rgba(255, 255, 255, 0.2);
}

.toggle-icon {
  transition: transform 0.3s ease;
  color: #ffffff;
}

.academic-year-header.is-expanded .toggle-icon {
  transform: rotate(180deg);
}

.academic-year-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.academic-year-content.is-expanded {
  /* Max-height will be set dynamically via JavaScript */
}

/* Legacy support for old non-accordion style (can be removed after migration) */
.academic-year-section {
  margin-bottom: 3rem;
  border: 2px solid #2b5473;
  background: #ffffff;
  border-radius: 0;
}

.academic-year-section .academic-year-title {
  background: #2b5473;
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 2px solid #2b5473;
}

/* Trimester Section - Groups assessments per trimester */
.trimester-section-target {
  border: 1px solid #e5e7eb;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
}

.trimester-section-target:last-child {
  border-bottom: none;
}

/* Trimester Accordion Header */
.trimester-header-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trimester-header-target:hover {
  background: #e5e7eb;
}

.trimester-title-target {
  color: #2b5473;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.trimester-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.trimester-header-target.is-expanded .trimester-toggle {
  transform: rotate(180deg);
}

.trimester-toggle .toggle-icon {
  color: #6b7280;
}

/* Trimester Accordion Content */
.trimester-content-target {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.trimester-content-target.is-expanded {
  /* Max-height will be set dynamically via JavaScript */
  overflow: visible;
}

/* Vak Section (between Trimester and Assessment Cards) */
.vak-section {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.vak-title {
  color: #2b5473;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-left: 4px solid #2b5473;
  border-bottom: 1px solid #e5e7eb;
}

/* Teacher-specific Trimester Section for beoordelingen invoeren */
.trimester-section-teacher {
  margin: 0;
  padding: 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.trimester-section-teacher:last-child {
  border-bottom: none;
}

.trimester-title-teacher {
  color: #2b5473;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Vakken Grid - Shows lesgroepen as cards */
.vakken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Vak Card - Individual lesgroep card */
.vak-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.vak-card:hover {
  border-color: #2b5473;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.vak-card-header {
  margin-bottom: 1rem;
}

.vak-title {
  color: #2b5473;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.vak-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #6b7280;
}

.vak-meta .student-count {
  font-weight: 600;
  color: #374151;
}

.vak-meta .lesdag {
  color: #6b7280;
}

.vak-card-actions {
  margin-top: 1rem;
}

.vak-card-actions .action-button {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

/* Assessments Accordion Container */
.assessments-accordion-container {
  margin-top: 2rem;
}

.no-lesgroepen {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  margin-top: 2rem;
}

.no-lesgroepen p {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0;
}

/* Overview page - Trimester sections for beoordelingen lijst */
.trimester-section-overview {
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

.trimester-section-overview:last-child {
  border-bottom: none;
}

/* Trimester Header - Collapsible */
.trimester-header-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trimester-header-overview:hover {
  background: #e5e7eb;
}

.trimester-title-overview {
  color: #2b5473;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.trimester-toggle-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.trimester-header-overview.is-expanded .trimester-toggle-overview {
  transform: rotate(180deg);
}

.trimester-toggle-overview .toggle-icon {
  color: #6b7280;
}

/* Trimester Content - Collapsible */
.trimester-content-overview {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.trimester-content-overview.is-expanded {
  /* Max-height will be set dynamically via JavaScript */
  padding: 1.5rem;
  overflow: visible;
}

/* Vak Section (Teacher Overview) */
.vak-section-overview {
  margin: 0 0 2rem 0;
  padding: 0;
  background: #ffffff;
}

.vak-section-overview:last-child {
  margin-bottom: 0;
}

.vak-title-overview {
  color: #2b5473;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-left: 4px solid #2b5473;
  border-bottom: 1px solid #e5e7eb;
}

/* Assessments Grid for overview page */
.assessments-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Assessment Card Overview */
.assessment-card-overview {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.assessment-card-overview:hover {
  border-color: #2b5473;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.assessment-card-header-overview {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.student-name-overview {
  color: #2b5473;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.assessment-meta-overview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.assessment-meta-overview .lesgroep-badge,
.assessment-meta-overview .vak-badge {
  background: #e5e7eb;
  color: #374151;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  border-radius: 0;
  font-size: 0.75rem;
}

.assessment-meta-overview .date-badge {
  background: transparent;
  color: #374151;
  padding: 0.25rem 0;
  font-weight: 500;
  font-size: 0.875rem;
}

.assessment-summary-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.grade-summary-overview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grade-label-overview {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.grade-value-overview {
  font-size: 1rem;
  font-weight: 700;
  color: #2b5473;
}

.grade-value-overview.uitstekend {
  color: #059669;
}

.grade-value-overview.ruim-voldoende {
  color: #10b981;
}

.grade-value-overview.voldoende {
  color: #3b82f6;
}

.grade-value-overview.matig {
  color: #f59e0b;
}

.grade-value-overview.onvoldoende {
  color: #ef4444;
}

.assessment-actions-overview {
  display: flex;
  gap: 0.5rem;
}

.assessment-actions-overview .view-details-btn {
  background: #2b5473;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.assessment-actions-overview .view-details-btn:hover {
  background: #000000;
}

.assessment-actions-overview .delete-assessment-btn-small {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.assessment-actions-overview .delete-assessment-btn-small:hover {
  background: #991b1b;
}

/* Assessment Details Overview (expandable) */
.assessment-details-overview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.detailed-grades-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grade-item-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #f9fafb;
  font-size: 0.875rem;
}

.grade-item-overview .grade-label {
  font-weight: 600;
  color: #374151;
}

.grade-item-overview .grade-value {
  font-weight: 500;
  color: #6b7280;
}

.assessment-comments-overview {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
}

.assessment-comments-overview h5 {
  color: #2b5473;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.assessment-comments-overview p {
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.assessment-card-target {
  padding: 1.5rem;
  background: #ffffff;
  border: none;
  margin: 0;
}

.assessment-meta-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.assessment-date-code {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.assessment-teacher {
  font-size: 1rem;
  color: #374151;
  font-weight: 400;
}

.assessment-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 1.5rem 0;
}

.assessment-content-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.grades-left-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grade-item-target {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0;
  border-left: 4px solid #2b5473;
}

.grade-label-target {
  font-weight: 600;
  color: #2b5473;
  font-size: 0.875rem;
}

.grade-value-target {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: right;
}

.overall-grade-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  min-width: 200px;
}

.overall-label-target {
  font-weight: 600;
  color: #2b5473;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.overall-value-target {
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
}

.assessment-comments-target {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.comments-title-target {
  color: #374151;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
}

.comments-text-target {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

/* Assessment card action buttons */
.assessment-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.view-details-btn,
.edit-assessment-btn,
.delete-assessment-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.view-details-btn:active,
.edit-assessment-btn:active,
.delete-assessment-btn:active {
  transform: translateY(0);
}

/* Assessment card layout improvements */
.assessment-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.assessment-card:hover {
  transform: translateY(-1px);
}

.assessment-card-header {
  margin-bottom: 1rem;
}

.assessment-card-header h3 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

.assessment-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trimester-badge,
.lesgroep-badge,
.date-badge {
  background: #2b5473;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.grade-summary {
  margin-bottom: 1rem;
}

.overall-grade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grade-label {
  font-weight: 500;
  color: #374151;
}

.grade-value {
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.grade-value.voldoende {
  background: #dcfce7;
  color: #166534;
}

.grade-value.ruim-voldoende {
  background: #dcfce7;
  color: #166534;
}

.grade-value.matig {
  background: #fef3c7;
  color: #92400e;
}

.grade-value.onvoldoende {
  background: #fee2e2;
  color: #dc2626;
}

.assessment-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.detailed-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.grade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 0;
}

.assessment-comments {
  margin-top: 1rem;
}

.assessment-comments h4 {
  margin: 0 0 0.5rem 0;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
}

.assessment-comments p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

/* Enhanced modal for previous assessments with student-like view */
.assessments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assessments-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.assessments-modal .modal-content {
  position: relative;
  max-width: 95%;
  max-height: 90%;
  background: #ffffff;
  border-radius: 0;
  cursor: default;
  overflow-y: auto;
}

.assessments-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 0;
}

.assessments-modal .modal-header h3 {
  color: #2b5473;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.assessments-modal .modal-close {
  background: #f3f4f6;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-radius: 0;
  transition: all 0.2s ease;
}

.assessments-modal .modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.assessments-modal .modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Enhanced assessment history item with student-like view and edit capabilities */
.assessment-history-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  margin-bottom: 2rem;
  overflow: hidden;
}

.assessment-history-item:last-child {
  margin-bottom: 0;
}

.assessment-history-header {
  background: #f8fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assessment-history-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.assessment-history-date {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2b5473;
}

.assessment-history-trimester {
  font-size: 1rem;
  color: #6b7280;
}

.assessment-history-actions {
  display: flex;
  gap: 0.75rem;
}

.assessment-history-content {
  padding: 2rem;
}

.assessment-history-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.assessment-history-grades {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assessment-history-grade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0;
  border-left: 4px solid #2b5473;
}

.assessment-history-grade-label {
  font-weight: 600;
  color: #2b5473;
  font-size: 0.875rem;
}

.assessment-history-grade-value {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: right;
}

.assessment-history-overall {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  min-width: 200px;
}

.assessment-history-overall-label {
  font-weight: 600;
  color: #2b5473;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.assessment-history-overall-value {
  color: #374151;
  font-weight: 500;
  font-size: 1rem;
}

.assessment-history-comments {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.assessment-history-comments-title {
  color: #374151;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
}

.assessment-history-comments-text {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

/* Modern table styling */
.lesgroepen-table,
.users-table {
  margin-top: 1.5rem;
  background: #ffffff;
  border-radius: 0;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

.lesgroepen-table .table-header,
.lesgroepen-table .table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr 1.5fr 1.5fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}

.lesgroepen-table .table-header {
  background: #2b5473;
  color: #ffffff;
  font-weight: 700;
}

.lesgroepen-table .table-header div {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.table-header {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.table-row:hover {
  background: #f9fafb;
}

.table-row:last-child {
  border-bottom: none;
}

/* Modern image modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-modal .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.image-modal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

.image-modal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clickable photo styles */
.feedback-photo.clickable-photo {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.feedback-photo.clickable-photo:hover {
  transform: scale(1.02);
}

/* Photos grid layout */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-container {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.photo-container:hover {
  transform: translateY(-2px);
}

.feedback-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: none;
  display: block;
}

.remove-photo-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.remove-photo-btn:hover {
  background: rgba(220, 38, 38, 0.95);
  transform: scale(1.1);
}

/* Post-submission upload styling */
.post-upload-section {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.upload-slot {
  flex: 1;
  min-width: 200px;
}

.upload-trigger {
  width: 100%;
  padding: 1rem;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.upload-trigger:hover {
  border-color: #2b5473;
  background: #f0f9ff;
  color: #2b5473;
}

/* Photo modal styling */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.photo-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.photo-modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Loading overlay for photo operations */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2b5473;
  border-radius: 0;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Notification styling */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0;
  color: white;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: #10b981;
}

.notification.error {
  background: #ef4444;
}

/* Responsive design */
@media print {
  /* Hide all non-essential elements when printing */
  nav,
  header,
  footer,
  aside,
  button,
  .btn,
  .action-button,
  .secondary-button,
  .attendance-header,
  .attendance-controls,
  .form-group,
  .form-actions,
  #print-attendance,
  .dashboard-header,
  .page-header,
  .back-button,
  .btn-mijn-gegevens,
  .profile-actions,
  select,
  input[type="text"],
  input[type="date"],
  textarea,
  .no-print,
  #wpadminbar,
  .site-header,
  .site-footer,
  .site-navigation,
  .breadcrumbs,
  .sidebar,
  #sidebar,
  .widget,
  .menu,
  #menu,
  .nav,
  #nav,
  a[href^="#"],
  .edit-link,
  .comment-respond,
  .admin-bar,
  .logo,
  .site-logo,
  .site-branding,
  .custom-logo,
  .custom-logo-link,
  .site-title,
  .site-description,
  .header-image,
  .site-identity,
  img.logo,
  .brand,
  .branding {
    display: none !important;
  }

  /* Exception: React app buttons manage their own print visibility via Tailwind print: classes */
  #wackers-dashboard-root button {
    display: revert !important;
  }

  /* Clean body styling */
  body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Show only the attendance list content */
  .wackers-attendance-lists {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #attendance-list-container {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
  }

  /* Clean attendance list styling for print */
  .attendance-list,
  .attendance-list-printable {
    page-break-inside: avoid;
  }

  .attendance-header-print {
    margin-bottom: 20px !important;
  }

  .attendance-header-print h2 {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
    color: #000 !important;
  }

  .attendance-meta {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .attendance-meta p {
    margin: 2px 0 !important;
    color: #000 !important;
  }

  .attendance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px !important;
  }

  .attendance-table th,
  .attendance-table td {
    border: 1px solid #000 !important;
    padding: 6px !important;
    text-align: left;
    font-size: 11px !important;
  }

  .attendance-table th {
    background: #f0f0f0 !important;
    font-weight: bold !important;
  }

  .attendance-table .student-name-col {
    width: 150px !important;
  }

  .attendance-table .date-col {
    width: 40px !important;
    text-align: center !important;
  }

  .attendance-table .attendance-cell {
    text-align: center !important;
  }

  .attendance-footer {
    margin-top: 30px !important;
    page-break-inside: avoid !important;
  }

  .signature-section p {
    margin: 10px 0 !important;
    font-size: 12px !important;
  }

  /* Remove shadows and colors for print */
  .dashboard-card,
  .assessment-card,
  .feedback-student-card {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
  }
}

@media (max-width: 768px) {
  .wackers-student-dashboard,
  .wackers-teacher-dashboard,
  .wackers-admin-dashboard,
  .wackers-assessments-view,
  .wackers-feedback-form,
  .wackers-feedback-view,
  .wackers-assessment-input,
  .wackers-attendance-lists,
  .wackers-student-history,
  .wackers-lesgroep-management,
  .wackers-user-management,
  .wackers-settings,
  .wackers-reports {
    padding: 1.5rem 1rem;
  }

  .academic-year-title {
    font-size: 1.5rem;
    padding: 1.25rem 1rem;
  }

  .trimester-title-target {
    font-size: 1.25rem;
    padding: 1rem;
  }

  .dashboard-header h1,
  .assessments-header h1,
  .feedback-header h1,
  .assessment-header h1,
  .attendance-header h1,
  .history-header h1,
  .management-header h1,
  .settings-header h1,
  .reports-header h1 {
    font-size: 1.875rem;
  }

  .dashboard-header h2,
  .assessments-header h2,
  .feedback-header h2,
  .assessment-header h2,
  .attendance-header h2,
  .history-header h2,
  .management-header h2,
  .settings-header h2,
  .reports-header h2 {
    font-size: 1.5rem;
  }

  .dashboard-grid,
  .students-grid,
  .stats-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
  }

  .student-actions,
  .form-actions {
    flex-direction: column;
  }

  .assess-button,
  .previous-button,
  .edit-button,
  .archive-button {
    width: 100%;
  }

  .settings-tabs,
  .user-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-button {
    border-radius: 0;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .tab-button.active {
    border-left-color: #2b5473;
    border-bottom: none;
  }

  .image-modal .modal-content {
    max-width: 95%;
    max-height: 95%;
    padding: 1rem;
  }

  .image-modal #modal-image {
    max-height: 60vh;
  }

  .assessment-history-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .assessment-history-overall {
    min-width: auto;
    width: 100%;
  }

  .assessment-history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .assessment-history-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .feedback-mode-controls {
    position: static;
    text-align: center;
    margin-top: 1rem;
  }

  .photos-grid {
    grid-template-columns: 1fr;
  }

  .post-upload-section {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .assessment-actions {
    flex-direction: column;
  }

  .view-details-btn,
  .edit-assessment-btn,
  .delete-assessment-btn {
    width: 100%;
    justify-content: center;
  }

  .assessment-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .detailed-grades {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wackers-student-dashboard,
  .wackers-teacher-dashboard,
  .wackers-admin-dashboard,
  .wackers-assessments-view,
  .wackers-feedback-form,
  .wackers-feedback-view,
  .wackers-assessment-input,
  .wackers-attendance-lists,
  .wackers-student-history,
  .wackers-lesgroep-management,
  .wackers-user-management,
  .wackers-settings,
  .wackers-reports {
    padding: 1rem 0.75rem;
  }

  .academic-year-title {
    font-size: 1.25rem;
    padding: 1rem 0.75rem;
  }

  .trimester-title-target {
    font-size: 1.125rem;
    padding: 0.875rem;
  }

  .academic-year-section {
    margin-bottom: 2rem;
  }

  .dashboard-card,
  .assessment-card,
  .feedback-student-card,
  .student-item,
  .lesgroep-item,
  .report-card,
  .stat-card {
    padding: 1rem;
  }

  .table-header,
  .table-row {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .grade-item-target {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .grade-label-target {
    min-width: auto;
  }
}

/* Hide sidebar navigation */
.wackers-nav,
.sidebar,
.navigation-menu {
  display: none !important;
}

/* Ensure main content takes full width */
.main-content,
.content-area {
  width: 100% !important;
  margin-left: 0 !important;
}

/* Added feedback card styling for expandable functionality */
.feedback-student-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.feedback-student-card:hover {
}

.student-card-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.student-card-header:hover {
  background-color: #f9fafb;
}

.student-info h3 {
  margin: 0 0 0.5rem 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
}

.student-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.trimester-badge {
  background: #2b5473;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.submission-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.expand-indicator {
  display: flex;
  align-items: center;
}

.expand-arrow {
  font-size: 1.25rem;
  color: #2b5473;
  transition: transform 0.2s ease;
}

.feedback-details {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.feedback-content {
  padding: 1.5rem;
}

.feedback-section {
  margin-bottom: 1.5rem;
}

.feedback-section:last-child {
  margin-bottom: 0;
}

.feedback-section h4 {
  color: #2b5473;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.feedback-section p {
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.feedback-photos {
  margin-top: 1.5rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feedback-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.feedback-photo:hover {
  transform: scale(1.05);
}

.clickable-photo {
  cursor: pointer;
}

/* Student History Search Styles */
.history-search {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
}

.history-search .form-group {
  margin-bottom: 1rem;
}

.history-search input[type="text"] {
  width: 100%;
}

.history-search .action-button {
  width: 100%;
  margin-top: 0;
}

/* Attendance controls */
.attendance-controls {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Assessment controls */
.assessment-controls {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Assessment filters spacing */
.assessments-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
}

.assessments-filters select {
  width: 100%;
}

/* Feedback view styles */
.vak-feedback-view .feedback-filters-new {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 2rem;
}

.vak-feedback-view .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.vak-feedback-view .filter-group {
  display: flex;
  flex-direction: column;
}

.vak-feedback-view .filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vak-feedback-view .filter-group select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s ease;
}

.vak-feedback-view .filter-group select:focus {
  outline: none;
  border-color: #2b5473;
}

.vak-feedback-view .feedback-stats {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0;
  border-left: 4px solid #2b5473;
}

.vak-feedback-view .feedback-stats p {
  margin: 0;
  font-size: 1rem;
  color: #2b5473;
  font-weight: 500;
}

.vak-feedback-view .student-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vak-feedback-view .student-icon {
  font-size: 1.5rem;
}

.vak-feedback-view .student-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.vak-feedback-view .vak-badge,
.vak-feedback-view .trimester-badge,
.vak-feedback-view .submission-date {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 0.875rem;
  color: #374151;
}

.vak-feedback-view .vak-badge {
  background: #f0f9ff;
  border-color: #2b5473;
  color: #2b5473;
  font-weight: 600;
}

.vak-feedback-view .expand-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .vak-feedback-view .filter-row {
    grid-template-columns: 1fr;
  }

  .vak-feedback-view .student-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Student History Results */
.history-results {
  margin-top: 2rem;
}

.student-search-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.student-result-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem;
  transition: all 0.2s ease;
}

.student-result-card:hover {
  transform: translateY(-2px);
}

.student-result-card h3 {
  color: #2b5473;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.student-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.student-email {
  color: #6b7280;
  font-size: 0.95rem;
}

.assessment-count {
  color: #0891b2;
  font-weight: 600;
  font-size: 0.95rem;
}

.student-assessments {
  margin-top: 1.5rem;
}

.student-assessments h4 {
  color: #374151;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.assessment-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.assessment-item:last-child {
  margin-bottom: 0;
}

.assessment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.assessment-date,
.assessment-trimester,
.assessment-lesgroep {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-size: 0.875rem;
  color: #374151;
}

.assessment-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grade-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: #374151;
  font-size: 0.95rem;
}

.grade-row strong {
  font-weight: 600;
  color: #2b5473;
}

.grade-average {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: #ecfeff;
  border: 1px solid #0891b2;
  border-radius: 0;
  font-weight: 600;
  color: #2b5473;
  margin-top: 1rem;
}

.assessment-comments {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 0;
}

.assessment-comments strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #92400e;
  font-weight: 600;
}

.no-assessments {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

/* ========================================
   STUDENT PROFILE CARD - Personalized Dashboard Header
   ======================================== */

.student-profile-card {
  background: #ffffff;
  border-radius: 0;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.profile-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.profile-photo {
  flex-shrink: 0;
}

.avatar-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #f3f4f6;
}

.profile-info {
  flex: 1;
  color: #1f2937;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  line-height: 1.2;
}

.profile-subtitle {
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
  color: #6b7280;
  font-weight: 400;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-icon {
  display: none;
}

.detail-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.detail-value {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-mijn-gegevens .btn-icon {
  display: none;
}

/* Responsive adjustments for profile card */
@media (max-width: 768px) {
  .student-profile-card {
    padding: 1.5rem;
  }

  .profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-subtitle {
    font-size: 1rem;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .detail-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .detail-label {
    min-width: auto;
  }

  .profile-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-mijn-gegevens {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .student-profile-card {
    padding: 1.25rem;
    border-radius: 0;
  }

  .avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .detail-item {
    padding: 0.75rem 1rem;
  }

  .detail-icon {
    font-size: 1.25rem;
  }
}

/* ========================================
   MIJN GEGEVENS PAGE - User Profile Management
   ======================================== */

.mijn-gegevens-page {
  /* Width controlled by main container styles above */
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2b5473;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
}

.gegevens-container {
  display: grid;
  gap: 2rem;
}

.gegevens-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.gegevens-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
  background: #f9fafb;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2b5473;
  margin: 0;
}

.card-body {
  padding: 2rem;
}

/* Photo Card Specific Styles */
.photo-card .card-body {
  text-align: center;
}

.photo-display {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.profile-photo-large {
  width: 200px;
  height: 200px;
  border-radius: 0;
  border: 4px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #f3f4f6;
}

.photo-upload-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-upload-photo,
.btn-remove-photo {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-upload-photo {
  background: #2b5473;
  color: white;
}

.btn-upload-photo:hover {
  background: #1e3d4f;
}

.btn-remove-photo {
  background: #dc3545;
  color: white;
}

.btn-remove-photo:hover {
  background: #c82333;
}

.photo-message {
  padding: 0.75rem;
  margin-top: 1rem;
  text-align: center;
  border-radius: 0;
}

.photo-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.photo-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: #111827;
  font-weight: 500;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-icon {
  font-size: 1.25rem;
}

.help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.help-text a {
  color: #0891b2;
  text-decoration: none;
  font-weight: 500;
}

.help-text a:hover {
  text-decoration: underline;
  color: #2b5473;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mijn-gegevens-page {
    padding: 1.5rem 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-photo-large {
    width: 150px;
    height: 150px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-header {
    margin-bottom: 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .profile-photo-large {
    width: 120px;
    height: 120px;
  }
}

/* ========================================
   FORM STYLING - Mijn Gegevens Form
   ======================================== */

.gegevens-form {
  width: 100%;
}

.save-message {
  padding: 1rem 1.5rem;
  border-radius: 0;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
}

.save-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.save-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-large {
  flex: 2;
}

.form-group-small {
  flex: 1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group input:disabled,
.form-group input:read-only {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.readonly-field small.help-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: #0891b2;
}

.checkbox-label span {
  user-select: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.info-card {
  background: #f9fafb;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #e5e7eb;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content p {
  margin: 0.5rem 0;
  color: #374151;
}

.logout-section {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group-large,
  .form-group-small {
    flex: 1;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"] {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
  }
}

/* ===============================================
   USER MANAGEMENT STYLES
   =============================================== */

.wackers-user-management {
  /* Width controlled by main container styles above */
}

.management-actions {
  margin: 0 0 2rem 0;
}

.add-button {
  background: #0891b2;
  color: #ffffff;
  padding: 0.875rem 2rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-button:hover {
  background: #0e7490;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(8, 145, 178, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-container {
  background: #ffffff;
  border: 2px solid #2b5473;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background: #2b5473;
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

/* User Tabs */
.user-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: #0891b2;
  background: #f9fafb;
}

.tab-button.active {
  color: #0891b2;
  border-bottom-color: #0891b2;
  background: #f9fafb;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  color: #2b5473;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

/* Users Table */
.users-table {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  overflow-x: auto;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr 2fr;
  background: #2b5473;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem;
  gap: 1rem;
}

.table-header div {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr 2fr;
  padding: 1rem;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  transition: background 0.2s ease;
}

.table-row:hover {
  background: #f9fafb;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row div {
  font-size: 0.875rem;
  color: #374151;
}

/* Teacher table adjustment for extra column */
#teachers-tab .table-header,
#teachers-tab .table-row {
  grid-template-columns: 1.5fr 2fr 1.25fr 1fr 1.25fr 2fr;
}

.action-buttons {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

.edit-user-btn,
.delete-user-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.edit-user-btn {
  background: #0891b2;
  color: #ffffff;
}

.edit-user-btn:hover {
  background: #0e7490;
}

.delete-user-btn {
  background: #dc2626;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
}

.delete-user-btn:hover {
  background: #991b1b;
}

/* Lesgroep action buttons - match user management styling */
.edit-lesgroep,
.delete-lesgroep {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.edit-lesgroep {
  background: #0891b2;
  color: #ffffff;
}

.edit-lesgroep:hover {
  background: #0e7490;
}

.delete-lesgroep {
  background: #dc2626;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
}

.delete-lesgroep:hover {
  background: #991b1b;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row.full-width {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group small {
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
}

/* Password field with generator button */
.password-field-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.password-field-wrapper input {
  flex: 1;
}

.generate-password-btn {
  padding: 0.75rem 1rem;
  background: #2b5473;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.generate-password-btn:hover {
  background: #1e3d4f;
}

#password-match-message {
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Password reset section in edit user modal */
.password-reset-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0;
}

.password-reset-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.password-reset-section .help-text {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.save-button,
.cancel-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-button {
  background: #0891b2;
  color: #ffffff;
}

.save-button:hover {
  background: #0e7490;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(8, 145, 178, 0.3);
}

.cancel-button {
  background: #6b7280;
  color: #ffffff;
}

.cancel-button:hover {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 1024px) {
  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 2fr 1fr 2fr;
  }

  .table-header div:nth-child(3),
  .table-row div:nth-child(3) {
    display: none;
  }

  #teachers-tab .table-header,
  #teachers-tab .table-row {
    grid-template-columns: 1.5fr 2fr 1fr 2fr;
  }

  #teachers-tab .table-header div:nth-child(3),
  #teachers-tab .table-row div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .wackers-user-management {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .table-header {
    display: none;
  }

  .table-row {
    border: 2px solid #e5e7eb;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .table-row div:before {
    content: attr(data-label);
    font-weight: 700;
    color: #2b5473;
    display: block;
    margin-bottom: 0.25rem;
  }

  #teachers-tab .table-header div:nth-child(3),
  #teachers-tab .table-row div:nth-child(3) {
    display: block;
  }

  .action-buttons {
    margin-top: 0.5rem;
  }

  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .save-button,
  .cancel-button {
    width: 100%;
  }
}

/* ===============================================
   LESGROEP BEHEER - VERTICAL STUDENT LIST
   =============================================== */

.students-list-vertical {
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid #e5e7eb;
  padding: 1rem;
  background: #ffffff;
}

.student-item-vertical {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border: 1px solid transparent;
}

.student-item-vertical:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.student-item-vertical input[type="checkbox"] {
  margin: 0;
  margin-right: 1rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.student-item-vertical .student-name {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
}

.student-item-vertical:has(input:checked) {
  background: #ecfeff;
  border-color: #0891b2;
}

.student-item-vertical:has(input:checked) .student-name {
  color: #0891b2;
  font-weight: 600;
}

/* Scrollbar styling */
.students-list-vertical::-webkit-scrollbar {
  width: 8px;
}

.students-list-vertical::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.students-list-vertical::-webkit-scrollbar-thumb {
  background: #888;
}

.students-list-vertical::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===============================================
   STUDENT ZOEKEN - DETAIL PAGE
   =============================================== */

/* Clickable student cards */
.student-result-card.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #ffffff;
}

.student-result-card.clickable-card:hover {
  border-color: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.student-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.student-card-header h3 {
  margin: 0;
  color: #2b5473;
  font-size: 1.25rem;
}

.click-hint {
  color: #0891b2;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.student-result-card.clickable-card:hover .click-hint {
  opacity: 1;
}

.student-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.student-card-meta .meta-item strong {
  color: #374151;
}

.meta-item-inline {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.meta-item-inline .separator {
  color: #d1d5db;
  font-weight: 300;
}

.meta-item-opleiding,
.meta-item-vak {
  font-size: 0.875rem;
  color: #4b5563;
}

.meta-item-opleiding strong,
.meta-item-vak strong {
  color: #1f2937;
}

/* Student Detail Page */
.student-detail-container {
  margin-top: 2rem;
}

.student-detail-page {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  padding: 2rem;
}

.student-detail-page .secondary-button {
  background: #6b7280;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.student-detail-page .secondary-button:hover {
  background: #4b5563;
}

.student-detail-header {
  border-bottom: 3px solid #0891b2;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.student-detail-header h2 {
  color: #2b5473;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.student-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.student-info-grid .info-item {
  background: #f9fafb;
  padding: 1rem;
  border-left: 3px solid #0891b2;
}

.student-info-grid .info-item strong {
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h3 {
  color: #2b5473;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.lesgroepen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.lesgroep-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.lesgroep-card:hover {
  border-color: #0891b2;
  box-shadow: 0 2px 6px rgba(8, 145, 178, 0.1);
}

.lesgroep-card h4 {
  color: #0891b2;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.lesgroep-card div {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.lesgroep-card div strong {
  color: #374151;
}

.academic-year-block {
  margin-bottom: 2rem;
  border: 2px solid #e5e7eb;
  background: #ffffff;
}

.academic-year-block h4 {
  background: #2b5473;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  padding: 1rem 1.5rem;
}

.trimester-block {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.trimester-block:last-child {
  border-bottom: none;
}

.trimester-block h5 {
  color: #2b5473;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.assessment-detail-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.assessment-detail-card:last-child {
  margin-bottom: 0;
}

.assessment-header-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
}

.assessment-header-line strong {
  color: #374151;
}

.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.grades-grid div {
  background: #ffffff;
  padding: 0.75rem;
  border-left: 3px solid #0891b2;
  font-size: 0.875rem;
  color: #6b7280;
}

.grades-grid div strong {
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
}

.assessment-average {
  background: #0891b2;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.assessment-comments-box {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

.assessment-comments-box strong {
  color: #2b5473;
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .student-card-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .student-detail-page {
    padding: 1rem;
  }

  .assessment-header-line {
    flex-direction: column;
    gap: 0.5rem;
  }

  .grades-grid {
    grid-template-columns: 1fr;
  }

  .lesgroepen-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================================
   STUDENT ZOEKEN - GRAVATAR PHOTOS
   =============================================== */

/* Search results card with photo */
.student-card-with-photo {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.student-avatar {
  flex-shrink: 0;
}

.student-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  object-fit: cover;
  background: #f3f4f6;
  transition: border-color 0.2s ease;
}

.student-result-card.clickable-card:hover .student-avatar img {
  border-color: #2b5473;
}

.student-card-content {
  flex: 1;
  min-width: 0;
}

/* Detail page header with photo */
.student-detail-header-with-photo {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.student-detail-avatar {
  flex-shrink: 0;
}

.student-detail-avatar img,
.student-avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  object-fit: cover;
  background: #f3f4f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.student-detail-info {
  flex: 1;
  min-width: 0;
}

.student-detail-info h2 {
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .student-card-with-photo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .student-card-content {
    width: 100%;
  }

  .student-detail-header-with-photo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .student-detail-info {
    width: 100%;
  }

  .student-info-grid {
    text-align: left;
  }
}

/* ===============================================
   ASSESSMENT FORM - FIELD HINTS
   =============================================== */

.field-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
}

.comments-section {
  margin-bottom: 1.5rem;
}

.comments-section textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.comments-section textarea:focus {
  outline: none;
  border-color: #0891b2;
}

.comments-section textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* ============================================================
   WOOCOMMERCE ORDERS SECTION - Student Dashboard
   ============================================================ */

.woocommerce-orders-card {
  margin-top: 1.5rem;
}

.orders-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.wc-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.wc-orders-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
}

.wc-orders-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-orders-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.wc-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.wc-orders-table tbody tr:hover {
  background: #f9fafb;
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.order-status.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.order-status.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.status-on-hold {
  background: #fee2e2;
  color: #991b1b;
}

.order-status.status-cancelled,
.order-status.status-failed {
  background: #f3f4f6;
  color: #6b7280;
}

.order-status.status-refunded {
  background: #e0e7ff;
  color: #3730a3;
}

/* Order actions */
.order-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-view-order,
.btn-download {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-view-order {
  background: #f3f4f6;
  color: #374151;
}

.btn-view-order:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-download {
  background: #dbeafe;
  color: #1e40af;
}

.btn-download:hover {
  background: #bfdbfe;
  transform: translateY(-1px);
}

/* Order items detail row */
.order-items-row {
  background: #f9fafb;
}

.order-items-row td {
  padding: 0.75rem 1rem;
}

.order-items-detail {
  font-size: 0.875rem;
}

.order-items-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-items-list li {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.item-quantity {
  color: #6b7280;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* WooCommerce account link */
.wc-account-link {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 1rem;
}

/* No orders message */
.no-orders-message {
  text-align: center;
  padding: 3rem 1rem;
}

.no-orders-message p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .wc-orders-table {
    border: 0;
  }

  .wc-orders-table thead {
    display: none;
  }

  .wc-orders-table tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

  .wc-orders-table td {
    display: block;
    text-align: right;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .wc-orders-table td:last-child {
    border-bottom: none;
  }

  .wc-orders-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #374151;
  }

  .order-items-row {
    background: white;
  }

  .order-items-row td {
    text-align: left;
  }

  .order-items-row td::before {
    display: none;
  }

  .order-actions {
    justify-content: flex-end;
  }
}

