@charset "UTF-8";
:root {
  /* Colors */
  --f1-primary: #1EBEEB; /* HsH Blue (30, 190, 235) */
  --f1-secondary: #575250; /* HsH Anthracite (87, 82, 80) */
  --f1-dark: #575250;
  --f1-light: #f5f5f5;
  --f1-white: #ffffff;
  --f1-border: #dee2e6;
  --f1-error: #DC3C05; /* HsH Red (220, 60, 5) */
  /* Additional HsH official colors */
  --hsh-blue: #1EBEEB; /* HsH Blue (30, 190, 235) */
  --hsh-red: #DC3C05; /* HsH Red (220, 60, 5) */
  --hsh-grey: #575250; /* HsH Grey (87, 82, 80) */
  --hsh-mint: #46B428; /* HsH Mint (70, 180, 40) */
  --hsh-yellow: #FFD200; /* HsH Yellow (255, 210, 0) */
  --hsh-green: #96BE00; /* HsH Green (150, 190, 0) */
  --hsh-orange: #FFA500; /* HsH Orange (255, 165, 0) */
  --hsh-violet: #D23C96; /* HsH Violet (210, 60, 150) */
  /* Spacing */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 15px rgba(0,0,0,0.1);
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
}

:root {
  /* Video icon */
  --video-icon-svg-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231EBEEB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 7l-7 5 7 5V7z'%3E%3C/path%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E");
  --video-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 7l-7 5 7 5V7z'%3E%3C/path%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E");
  /* Presentation icon */
  --presentation-icon-svg-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231EBEEB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
  --presentation-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
  /* Announcements icon */
  --announcements-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23575250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
  /* Banner icon */
  --banner-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'%3E%3C/path%3E%3Cpath d='M12 12v9'%3E%3C/path%3E%3Cpath d='m8 17 4 4 4-4'%3E%3C/path%3E%3C/svg%3E");
  /* Display icon */
  --display-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='6' y1='9' x2='6' y2='11'%3E%3C/line%3E%3Cline x1='10' y1='9' x2='10' y2='11'%3E%3C/line%3E%3Cline x1='14' y1='9' x2='14' y2='11'%3E%3C/line%3E%3Cline x1='18' y1='9' x2='18' y2='11'%3E%3C/line%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--f1-dark);
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-family: var(--font-family);
}

a {
  color: var(--f1-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 95%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  font-weight: bold;
  color: var(--hsh-blue);
  margin-bottom: 10px;
}

.page-subtitle {
  text-align: center;
  font-weight: bold;
  color: var(--f1-dark);
  margin-bottom: 20px;
}

.main-header {
  background: var(--f1-white);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-title h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.header-title h2 {
  color: var(--f1-primary);
  font-size: 20px;
  margin: 5px 0 0;
}

.main-logo {
  height: 100px;
  width: auto;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
  margin-top: 15px;
}

.system-title {
  text-align: center;
  margin: 5px 0 30px 0;
  background-color: rgba(30, 190, 235, 0.08);
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid rgba(30, 190, 235, 0.2);
  box-shadow: 0 2px 4px rgba(30, 190, 235, 0.05);
}

.system-title h1 {
  color: var(--f1-primary);
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.page-footer {
  background: white;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--f1-border);
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.footer-content p {
  margin: 5px 0;
}

.sub-footer {
  background: var(--f1-light);
  border-top: 1px solid var(--f1-border);
}

.sub-footer .footer-content {
  padding: 10px 20px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: 20px 0;
  padding: 0;
}

.button-container-flex {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}

.f1-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: var(--hsh-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.f1-button:hover {
  background-color: #1aa8d1;
}

.f1-button,
.f1-button:visited {
  text-decoration: none;
  border: none;
  outline: none;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1.2;
}

.f1-button.small {
  min-width: 80px;
  padding: 6px 12px;
  font-size: 13px;
}

.f1-button.delete {
  background-color: var(--f1-error);
}

.f1-button.delete:hover {
  background-color: #B03004;
}

.f1-button.primary {
  background-color: var(--f1-primary);
}

.f1-button.secondary {
  background-color: var(--hsh-grey);
}

.f1-button.secondary:hover {
  background-color: #5a6268;
}

.button-group {
  margin-top: 20px;
}

.program-section .form-group input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d3d3d3; /* Light grey border for unchecked */
  border-radius: 50%;
  outline: none;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  margin: 0;
  background: #fff; /* Ensure white background for contrast */
}

.program-section .form-group input[type=radio]:checked {
  border-color: var(--hsh-blue); /* Blue border when checked */
}

.program-section .form-group input[type=radio]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--hsh-blue); /* Blue dot when checked */
  border-radius: 50%;
}

.program-section .form-group input[type=radio]:focus {
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08); /* Subtle focus ring */
}

/* General form-group styling */
.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
  width: 100%; /* Ensure consistent width for all form groups */
}

.form-group label {
  display: block; /* Default block display for labels */
  color: var(--f1-dark);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  margin-bottom: var(--space-xs);
}

/* Input styling - General for all inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  font-family: var(--font-family);
  border: 1px solid var(--f1-border);
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--hsh-blue);
  box-shadow: 0 0 0 2px rgba(30, 190, 235, 0.12);
}

/* Error state for inputs */
.form-group.has-error input {
  border-color: var(--f1-error);
}

/* Specific styling for radio and checkbox inputs */
.form-group input[type=radio],
.form-group input[type=checkbox] {
  width: auto;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  accent-color: var(--hsh-blue);
}

/* Program-section specific styles */
.program-section {
  margin-bottom: 30px;
}

.program-section h3 {
  color: var(--hsh-dark-blue);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.program-section .form-group {
  display: block;
}

.program-section .form-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
  cursor: pointer;
}

/* Hover and selected states for program options */
.program-section .form-group label:hover {
  background-color: rgba(30, 190, 235, 0.05);
}

.program-section .form-group input[type=radio]:checked + span,
.program-section .form-group label:has(input[type=radio]:checked) {
  font-weight: 500;
  color: var(--hsh-blue);
}

/* Placeholder styling */
.f1-form .form-group input::placeholder,
.f1-form .form-group textarea::placeholder {
  color: var(--f1-dark);
  opacity: 1;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: normal;
}

/* Inline form group for horizontal forms */
.inline-form-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.inline-form-group label {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap;
}

.inline-form-group input,
.inline-form-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 180px; /* Set a reasonable min width */
  max-width: 300px; /* Prevent excessive stretching */
  width: auto; /* Override 100% width */
  font-size: 1em;
}

.inline-form-group button {
  margin-left: 8px;
}

/* Info box styling */
.info-box,
.info-box-anmeldung,
.info-box-abmeldung,
.info-box-all-labs {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 30px;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-box-anmeldung {
  background-color: var(--hsh-light-green);
  border: 2px solid var(--hsh-green);
}

.info-box-abmeldung {
  background-color: var(--hsh-light-red);
  border: 2px solid var(--hsh-red);
}

.info-box-all-labs {
  background-color: var(--hsh-light-blue);
  border: 2px solid var(--hsh-blue);
}

.info-title {
  margin-bottom: 8px;
}

.info-title-anmeldung {
  color: var(--hsh-green);
}

.info-title-abmeldung {
  color: var(--hsh-red);
}

.info-title-all-labs {
  color: var(--hsh-blue);
}

/* Warning Box (Error) */
.warning-box {
  background-color: var(--hsh-light-red);
  border: 2px solid var(--hsh-red);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.warning-title {
  color: var(--hsh-red);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.warning-text {
  color: var(--hsh-red);
  font-size: 1.2em;
}

/* Edit Form Specific Styles */
.edit-form-fieldset {
  border: 1px solid var(--f1-border);
  border-radius: 10px;
  padding: 24px 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 190, 235, 0.06);
  margin-bottom: 32px;
}

.edit-form-legend {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hsh-blue);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.edit-form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.edit-form-label {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--f1-dark);
  font-family: var(--font-family);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.edit-form-input,
.edit-form-select {
  padding: 10px;
  font-size: 1.1rem;
  font-family: var(--font-family);
  border: 1px solid var(--f1-border);
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 4px;
  background: #f9fafd;
  transition: border-color 0.2s;
  width: auto; /* Override 100% width from general rules */
  min-width: 180px; /* Set a reasonable min width */
  max-width: 400px; /* Prevent excessive stretching */
}

.edit-form-input:focus,
.edit-form-select:focus {
  outline: none;
  border-color: var(--hsh-blue);
  box-shadow: 0 0 0 2px rgba(30, 190, 235, 0.12);
}

.edit-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.field-hint {
  font-size: 0.95em;
  color: var(--f1-dark);
  opacity: 0.7;
  margin-top: 2px;
}

/* For grouped email fields */
.email-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.email-group input {
  flex: 1;
  min-width: 120px;
}

.email-group span {
  font-weight: 500;
  color: var(--f1-dark);
}

/* General table container */
.table-container {
  background: var(--f1-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: var(--space-md) 0;
  overflow-x: auto;
  width: 100%;
}

/* Base table styles */
.f1-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  table-layout: auto; /* Allow columns to size based on content */
}

.f1-table th {
  background: var(--f1-primary);
  color: white;
  padding: 12px 16px;
  font-weight: normal;
}

.f1-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--f1-border);
}

.f1-table td, .f1-table th {
  white-space: nowrap;
  padding: 8px;
}

.f1-table tr:hover {
  background: var(--f1-light);
}

/* Ensure full row hover highlight for matrix tables (including sticky columns) */
.matrix-table tbody tr:hover td,
.matrix-table tbody tr:hover th {
  background-color: var(--f1-light) !important;
  transition: background-color 0.12s ease-in-out;
}

/* General alignments */
.f1-table td:last-child,
.f1-table th:last-child {
  min-width: 150px; /* Prevent actions column from being too narrow */
  text-align: center;
  vertical-align: middle;
}

/* Checkboxes */
.f1-table input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  vertical-align: middle;
}

/* Per-table variants - Abmeldung */
.f1-table-abmeldung {
  background-color: var(--hsh-light-red);
}

.f1-table-abmeldung th {
  background-color: var(--hsh-red);
  color: white;
}

.f1-table-abmeldung td {
  background-color: var(--hsh-light-red);
  color: inherit;
}

.f1-table-abmeldung tr:nth-child(even) td {
  background-color: #f8d7da;
}

.f1-table-abmeldung tr:nth-child(odd) td {
  background-color: var(--hsh-light-red);
}

.f1-table-abmeldung tr:hover td {
  background-color: #f5c6cb;
}

.f1-table-abmeldung input[type=checkbox] {
  accent-color: var(--hsh-red);
}

/* Per-table variants - Anmeldung */
.f1-table-anmeldung {
  background-color: var(--hsh-light-green);
}

.f1-table-anmeldung th {
  background-color: var(--hsh-green);
  color: white;
}

.f1-table-anmeldung td {
  background-color: var(--hsh-light-green);
  color: inherit;
}

.f1-table-anmeldung tr:nth-child(even) td {
  background-color: #e6f4fa;
}

.f1-table-anmeldung tr:nth-child(odd) td {
  background-color: var(--hsh-light-green);
}

.f1-table-anmeldung tr:hover td {
  background-color: #a8d5a5;
}

.f1-table-anmeldung input[type=checkbox] {
  accent-color: var(--hsh-green);
}

/* Per-table variants - All-Labs */
.f1-table-all-labs {
  background-color: var(--hsh-light-blue);
}

.f1-table-all-labs th {
  background-color: var(--hsh-blue);
  color: white;
}

.f1-table-all-labs td {
  background-color: var(--hsh-light-blue);
  color: inherit;
}

.f1-table-all-labs tr:nth-child(even) td {
  background-color: #e6f4fa;
}

.f1-table-all-labs tr:nth-child(odd) td {
  background-color: var(--hsh-light-blue);
}

.f1-table-all-labs tr:hover td {
  background-color: #b3e5fc;
}

.f1-table-all-labs input[type=checkbox] {
  accent-color: var(--hsh-blue);
}

/* Scroll wrapper */
.f1-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Sortable styles */
.sortable {
  cursor: pointer;
  position: relative;
}

.sortable:after {
  content: "▲";
  position: absolute;
  right: 10px;
  font-size: 0.8em;
  color: #ccc;
  display: inline;
}

.sortable.sorted-asc:after {
  content: "▲";
  color: #333;
}

.sortable.sorted-desc:after {
  content: "▼";
  color: #333;
}

/* Sortable table specific adjustments */
.f1-table.sortable-table {
  table-layout: auto; /* Ensure sortable tables use auto layout for better column sizing */
}

/* Button sizing in tables */
.f1-table .f1-button {
  min-width: 80px; /* Ensure buttons have consistent width */
  white-space: nowrap; /* Prevent button text from wrapping */
}

/* Utility styles */
.no-data {
  text-align: center;
  color: var(--f1-dark);
  font-style: italic;
  padding: 40px 0;
}

.confirmation-text {
  text-align: center;
  font-size: 1.1rem;
  margin: 20px 0;
}

.no-print {
  display: none;
}

/* Sticky rules */
.f1-table thead th {
  position: sticky;
  top: 0;
  z-index: 12;
  background-clip: padding-box;
}

.f1-table th:first-child,
.f1-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background-clip: padding-box;
}

.f1-table th:last-child,
.f1-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background-clip: padding-box;
}

/* Per-table sticky overrides */
.f1-table-abmeldung thead th:first-child,
.f1-table-abmeldung thead th:last-child {
  background-color: var(--hsh-red);
}

.f1-table-anmeldung thead th:first-child,
.f1-table-anmeldung thead th:last-child {
  background-color: var(--hsh-green);
}

.f1-table-all-labs thead th:first-child,
.f1-table-all-labs thead th:last-child {
  background-color: var(--hsh-blue);
}

/* Matrix table cells */
.cell {
  position: relative;
  padding: 4px;
}

.cell.editing {
  z-index: 20; /* Higher than sticky columns (z-index: 3) */
  background: var(--f1-light); /* Highlight editing cell */
}

.cell.editing button {
  position: relative;
  z-index: 21; /* Above the editing cell */
}

.assign-laboratories-table .mini-assignment-form {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
}
.assign-laboratories-table .mini-assignment-form input[type=number] {
  width: 2.5em;
  padding: 2px 4px;
  font-size: 0.9em;
  text-align: center;
}
.assign-laboratories-table .mini-assignment-form select {
  width: 3.5em;
  padding: 2px;
  font-size: 0.9em;
}
.assign-laboratories-table .mini-assignment-form button {
  padding: 2px 6px;
  font-size: 0.85em;
  min-width: auto;
  white-space: nowrap;
}
.assign-laboratories-table .mini-assignment-form button[value=save] {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}
.assign-laboratories-table .mini-assignment-form button[value=clear] {
  background-color: #f44336;
  color: white;
  border: none;
  cursor: pointer;
  width: 1.8em;
}
.assign-laboratories-table .matrix-table th,
.assign-laboratories-table .matrix-table td {
  padding: 8px;
  white-space: nowrap;
}
.assign-laboratories-table .matrix-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--f1-primary);
  color: white;
  z-index: 10;
}
.assign-laboratories-table .matrix-table td:nth-child(1),
.assign-laboratories-table .matrix-table td:nth-child(2),
.assign-laboratories-table .matrix-table td:nth-child(3),
.assign-laboratories-table .matrix-table th:nth-child(1),
.assign-laboratories-table .matrix-table th:nth-child(2),
.assign-laboratories-table .matrix-table th:nth-child(3) {
  position: sticky;
  background-color: white;
  z-index: 5;
}
.assign-laboratories-table .matrix-table thead th:nth-child(1),
.assign-laboratories-table .matrix-table thead th:nth-child(2),
.assign-laboratories-table .matrix-table thead th:nth-child(3) {
  background-color: var(--f1-primary);
}
.assign-laboratories-table .matrix-table th:nth-child(1) {
  left: 0;
}
.assign-laboratories-table .matrix-table th:nth-child(2) {
  left: 150px;
}
.assign-laboratories-table .matrix-table th:nth-child(3) {
  left: 230px;
}
.assign-laboratories-table .matrix-table td:nth-child(1) {
  left: 0;
}
.assign-laboratories-table .matrix-table td:nth-child(2) {
  left: 150px;
}
.assign-laboratories-table .matrix-table td:nth-child(3) {
  left: 230px;
}
@media (max-width: 768px) {
  .assign-laboratories-table .matrix-table th:nth-child(1),
  .assign-laboratories-table .matrix-table td:nth-child(1) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .assign-laboratories-table .matrix-table th:nth-child(2) {
    left: 120px;
  }
  .assign-laboratories-table .matrix-table th:nth-child(3) {
    left: 180px;
  }
  .assign-laboratories-table .matrix-table td:nth-child(2) {
    left: 120px;
  }
  .assign-laboratories-table .matrix-table td:nth-child(3) {
    left: 180px;
  }
  .assign-laboratories-table .mini-assignment-form {
    flex-direction: column;
    gap: 2px;
  }
  .assign-laboratories-table .mini-assignment-form input[type=number],
  .assign-laboratories-table .mini-assignment-form select {
    width: 100%;
  }
}

/* Base Icons Foundation */
.file-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
}

.preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--f1-primary);
}

.preview-icon .file-icon {
  filter: none !important; /* Remove any filter that might be affecting color */
  opacity: 1 !important; /* Ensure full opacity */
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.section-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-group {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  color: #000;
}

.icon-separator {
  margin: 0 5px;
  font-weight: bold;
}

.icon-group .section-icon {
  width: 24px;
  height: 24px;
}

/* ===================================
   Other Section Icons
   =================================== */
/* Banner icon */
.banner-icon {
  background-image: var(--banner-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Display icon */
.display-icon {
  background-image: var(--display-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.pdf-icon {
  background-image: var(--pdf-icon-svg) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Video Icons
   =================================== */
/* Navigation/General video icon */
.video-icon {
  background-image: var(--video-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mode preview video icon */
.mode-video-icon {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* File icon for video */
.file-icon.video-icon {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Upload section video title icon */
.upload-section-title.video-title::before {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Presentation Icons
   =================================== */
/* Navigation/General presentation icon */
.presentations-icon {
  background-image: var(--presentation-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mode preview presentation icon */
.mode-presentation-icon {
  background-image: var(--presentation-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Upload section presentation title icon */
.upload-section-title.presentation-title::before {
  background-image: var(--presentation-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Announcements Icons
   =================================== */
/* Mode preview announcements icon */
.mode-announcements-icon {
  background-image: var(--announcements-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-text h1 {
  color: var(--f1-primary);
  font-size: 24px;
  font-weight: normal;
  margin: 0;
}

.highlight {
  background-color: #ffffcc; /* Light yellow background */
  padding: 0 3px;
  font-weight: bold;
  border-radius: 3px; /* Optional: rounded corners */
}

/* Enhanced field hint styling */
.field-hint {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: #f8f9fa;
  border-left: 3px solid var(--hsh-yellow);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--hsh-grey);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Warning variant for important constraints */
.field-hint.warning {
  border-left-color: var(--hsh-orange);
  background-color: rgba(255, 165, 0, 0.05);
}

/* For highlighting specific text within hints */
.field-hint .highlight {
  display: inline-block;
  background-color: #ffffcc;
  padding: 0 3px;
  font-weight: bold;
  border-radius: 3px;
}

/* Styled list for better scanability */
.constraint-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: none;
}

.constraint-list li {
  position: relative;
  padding: 3px 0;
}

.constraint-list li::before {
  content: "•";
  color: var(--hsh-orange);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* Success/Error Message Styles */
.alert {
  font-weight: bold;
  font-size: 1.2em;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.alert-success {
  color: var(--hsh-green);
  background-color: #e6f4ea;
  border: 1px solid var(--hsh-green);
}

.alert-error {
  color: var(--hsh-red);
  background-color: #fbeaea;
  border: 1px solid var(--hsh-red);
}

/* Specific styles for the generate-lists page */
.generate-lists-description {
  font-size: 1.1em;
  color: var(--f1-dark);
  background-color: #f8f9fa;
  padding: 1em;
  border-left: 4px solid var(--hsh-blue);
  border-radius: 4px;
  margin-bottom: 2em;
}

.generate-lists-description code {
  font-family: monospace;
  background-color: #e9ecef;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

/* Conditions List */
/* Enhanced Conditions Section */
.conditions-section {
  background-color: #f8f9fa;
  border: 2px solid var(--hsh-blue);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conditions-title {
  font-size: 1.5em;
  color: var(--hsh-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.conditions-title i {
  color: var(--hsh-orange);
}

.conditions-intro {
  font-size: 1.1em;
  color: var(--f1-dark);
  margin-bottom: 15px;
}

.conditions-list {
  list-style: none;
  padding: 0;
}

.conditions-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.conditions-list li::before {
  content: "✓";
  color: var(--hsh-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.conditions-list input[type=checkbox] {
  margin-right: 10px;
  accent-color: var(--hsh-blue);
}

.conditions-list label {
  cursor: pointer;
}

/* Warning overlay and dialog styles (using existing variables) */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-dialog {
  background: var(--f1-white);
  padding: var(--space-lg);
  border-radius: 8px;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--hsh-red);
}

.warning-dialog h2 {
  color: var(--hsh-red);
  margin-top: 0;
  font-size: var(--font-size-xl);
}

.warning-dialog p {
  color: var(--f1-dark);
  font-size: var(--font-size-md);
}

.warning-dialog .button-container {
  margin-top: var(--space-md);
  gap: var(--space-sm);
}

.warning-dialog .f1-button.secondary {
  background-color: var(--hsh-grey);
}

.warning-dialog .f1-button.secondary:hover {
  background-color: var(--hsh-grey); /* Darker shade if needed */
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: #f8f9fa;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
}

.login-header {
  display: flex;
  text-align: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.login-header h1 {
  color: var(--f1-primary);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  flex-grow: 1;
}

.login-logo {
  height: 120px;
  width: auto;
}

.login-wortmarke {
  height: 100px;
  width: auto;
}

/* Error message box styling */
.error-message {
  background: #fff3f3;
  color: var(--f1-error);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 5px;
}

.error-icon {
  background: #dc3545;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
}

/* Keep login form buttons centered */
.login-form .button-container {
  justify-content: center;
}

.faculty-header {
  text-align: center;
  padding: 20px;
  background-color: var(--f1-primary);
  color: var(--f1-white);
  margin-bottom: 40px;
}

.faculty-header h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.faculty-header h2,
.faculty-header h3 {
  font-style: italic;
  font-weight: bold;
  margin: 0;
}

.faculty-header h2 {
  font-size: 24px;
}

.faculty-header h3 {
  font-size: 20px;
  color: var(--f1-white);
}

.preview-content {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
}

/* Styling for Laborordnung approval */
.laborordnung-approval {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
  padding: 10px 0;
}

.laborordnung-approval label {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* Space between checkbox and text */
}

.laborordnung-approval input[type=checkbox] {
  width: 24px;
  height: 24px;
  accent-color: var(--hsh-blue);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px; /* Small offset to align with first line of text */
}

.laborordnung-approval span {
  font-size: 1.4rem;
  line-height: 1.4;
  display: inline; /* Changed from block to inline */
}

.laborordnung-approval a {
  color: var(--hsh-blue);
  text-decoration: underline;
  font-size: inherit;
}

.email-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.email-input-field {
  width: 120px;
}

.email-bold-span {
  font-weight: bold;
}

.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.admin-sidebar {
  width: 280px; /* Adjusted width to reduce space */
  background: #f8f9fa; /* Light background */
  color: #333; /* Dark text */
  padding: 20px 0;
  border-right: 1px solid #dee2e6; /* Subtle border */
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 20px 10px; /* Reduced bottom padding */
  border-bottom: 1px solid #dee2e6;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--hsh-blue); /* Use hshblue */
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-header {
  padding: 20px 20px 10px;
  font-size: 0.8em;
  text-transform: uppercase;
  color: #6c757d; /* Muted text */
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-item a:hover {
  background-color: var(--hsh-blue); /* Use hshblue */
  color: #fff;
}

.nav-item.active a {
  background-color: var(--hsh-blue); /* Use hshblue */
  color: #fff;
}

.nav-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.logout {
  margin-top: 20px;
  border-top: 1px solid #dee2e6;
}

/* Main Content */
.admin-content {
  flex: 1;
  margin-left: 0; /* Removed extra margin */
  padding: 20px; /* Adjusted padding */
  background: #ffffff; /* White background */
  overflow-x: auto; /* Prevent overflow from overlapping the sidebar */
}

.content-header {
  background: #f8f9fa; /* Light background */
  padding: 10px 20px; /* Reduced padding */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Reduced margin */
}

.semester-info {
  display: flex;
  gap: 20px;
  color: #6c757d; /* Muted text */
  margin-top: 5px; /* Reduced margin */
}

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

.stat-card {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--hsh-blue);
}

body.dashboard .f1-table td:nth-child(2) {
  text-align: left;
}

.section-margin-top {
  margin-top: 40px;
}

.flex-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.input-padding {
  padding: 8px;
}

.select-max-width {
  max-width: 200px;
}

.btn-success {
  background-color: #28a745;
}

.btn-danger {
  background-color: #dc3545;
}

.text-muted {
  color: #666;
  font-size: 0.9em;
}

.status-active {
  color: #28a745;
  font-weight: bold;
}

.status-archived {
  color: #6c757d;
}

@keyframes moveLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}
/* 8.3 Drag-and-Drop Animations */
@keyframes updown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (max-width: 1440px) {
  .page-wrapper,
  .header-content,
  .container,
  .footer-content {
    max-width: 100%;
    padding: 0 30px;
  }
}
@media (max-width: 768px) {
  .page-wrapper,
  .header-content,
  .container,
  .footer-content {
    padding: 0 15px;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .button-container {
    flex-direction: column;
  }
  .f1-button {
    width: 100%;
  }
  .hide-mobile {
    display: none;
  }
}
/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  .info-box-all-labs,
  .info-box-all-labs * {
    visibility: visible;
  }
  .info-box-all-labs {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
