html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

.classroom-shape {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.classroom-shape:hover {
  opacity: 0.7;
}

.highlight {
  background-color: #3b82f6 !important; /* Blue-500 */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.highlight-subject {
  background-color: #eff6ff !important; /* Blue-50 */
}

.highlight-map {
  stroke: #3b82f6;
  stroke-width: 4px;
  fill: #93c5fd; /* Blue-300 */
}

.current-time-highlight {
  box-shadow: 0 0 0 3px #fb923c inset; /* Orange-400 */
}

.current-time-highlight-map {
  stroke: #fb923c; /* Orange-400 */
  stroke-width: 4px;
}

.break-highlight {
  box-shadow: -5px 0 0 #fb923c inset;
}


.current-day-row .day-header {
  background-color: #dbeafe; /* Blue-100 */
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: inset 0 0 0 2px #60a5fa;
}

.schedule-cell {
  padding: 0.5rem;
  border: 1px solid #e5e7eb; /* gray-200 */
  text-align: center;
  min-width: 110px;
}

.landing-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.landing-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  min-height: 140px;
  color: #0f172a;
  text-align: center;
}

.landing-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.landing-card-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule-cell:hover:not(.day-header):not(.break-cell) {
  background-color: #f9fafb; /* gray-50 */
}

.day-header {
  font-weight: 600;
  background-color: #f3f4f6; /* gray-100 */
}

.break-cell {
  background-color: #f9fafb; /* gray-50 */
  color: #6b7280; /* gray-500 */
  font-style: italic;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

#map-hover-tooltip {
  transition: opacity 0.1s ease-in-out;
  max-width: 250px;
  z-index: 50;
}

#map-hover-tooltip.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 320px;
}

#map-hover-tooltip:not(.centered) {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
}

#map-hover-tooltip svg {
  width: 100%;
  height: auto;
}

@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-color: white !important;
    font-size: 8pt;
    color: black !important;
  }

  .no-print,
  #current-date-time {
    display: none !important;
  }

  #schedule-container,
  #map-section,
  .day-header,
  .classroom-shape,
  svg > rect:first-child {
    background-color: white !important;
    fill: white !important;
    color: black !important;
  }

  .highlight,
  .highlight-subject,
  .current-time-highlight,
  .break-highlight {
    background-color: white !important;
    box-shadow: none !important;
    color: black !important;
  }

  .classroom-shape,
  .classroom-shape.current-time-highlight-map,
  svg > rect:first-child {
    stroke: black !important;
    stroke-width: 1px !important;
  }

  .day-header {
    font-weight: bold;
  }

  .container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  #schedule-container,
  #map-section {
    box-shadow: none !important;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 0.5rem;
    page-break-inside: avoid;
  }

  #map-section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  #schedule-table-container {
    overflow: visible;
  }

  .schedule-cell {
    padding: 2px;
    font-size: 7pt;
    min-width: auto;
  }

  .schedule-cell > div {
    font-size: 6pt;
    line-height: 1.2;
    margin-top: 0 !important;
    color: black !important;
  }

  .schedule-cell > div.font-semibold {
    font-size: 8pt !important;
    font-weight: bold;
  }

  #map-table-container td {
    padding: 2px;
  }

  #map-table-container svg {
    max-height: 65px;
  }

  #map-drugi svg {
    max-height: 130px;
  }
}
