/* plik plan_lecji.css - WERSJA BEŻOWA */
*{box-sizing:border-box}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 16px;
  background: #f5efe6; /* ciepłe kremowe tło */
  color: #3d2f1f; /* ciemny brąz zamiast czarnego */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.not-today-alert {
  background: #fef3c7;
  border: 2px solid #d4a574;
  border-bottom: 4px solid #b8860b;
  color: #5c3a1e;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
}

.btn-today-back {
  background: #8b6f47;
  color: #fffaf0;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-today-back:hover {
  background: #6f5635;
}
.btn-back {
  box-shadow: 3px 4px 0px 0px #6f5635;
  background: linear-gradient(to bottom, #a08766 5%, #c4a784 100%);
  background-color: #a08766;
  border-radius: 18px;
  border: 1px solid #8b6f47;
  display: inline-block;
  cursor: pointer;
  color: #fffaf0;
  font-family: Arial;
  font-size: 17px;
  padding: 7px 25px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #5c3a1e;
  flex-shrink: 0;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.toolbar-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d4c4a8;
  cursor: pointer;
  font-size: 14px;
  background: #fffaf0;
  color: #5c3a1e;
  font-weight: 600;
  transition: all .2s;
}

.toolbar-btn:hover {
  background: #f5efe6;
  transform: translateY(-1px);
}

.now-info {
  margin-left: auto;
  background: #8b6f47;
  color: #fffaf0;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(139, 111, 71, .25);
  white-space: nowrap;
}

.weekend-banner {
  background: linear-gradient(135deg, #e6c89a, #c4a784);
  color: #5c3a1e;
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(196, 167, 132, .3);
}

.weekend-banner .emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.desktop-plan {
  display: block;
}

.app-layout {
  display: flex;
  gap: 0;
  background: #fffaf0;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(92, 58, 30, .1);
  overflow: hidden;
  min-height: 700px;
  border: 1px solid #e8dcc4;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #f5efe6;
  border-right: 1px solid #e8dcc4;
  padding: 22px 0;
}

.sidebar-title {
  padding: 0 22px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #a08766;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.class-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #5c4530;
  border-left: 4px solid transparent;
  transition: all .18s ease;
}

.class-item:hover {
  background: #ede0c8;
  color: #6f5635;
}

.class-item.active {
  background: linear-gradient(90deg, rgba(139, 111, 71,.18), rgba(139, 111, 71,.04));
  border-left-color: #8b6f47;
  color: #6f5635;
  font-weight: bold;
}

.class-item .icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #d4c4a8;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}

.class-item.active .icon {
  background: #8b6f47;
  box-shadow: 0 6px 14px rgba(139, 111, 71,.3);
}

/* ─── ZAKŁADKI DNI ─── */

.days-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow-x: auto;
  padding-top: 14px;
  background: #f5efe6;
}

.day-column {
  background: transparent;
  padding: 0;
  min-width: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.day-header {
  padding: 16px 14px;
  background: #fffaf0;
  text-align: center;
  border-radius: 10px 10px 0 0;
  border: 2px solid transparent;
  border-bottom: 2px solid #8b6f47;
  margin: 0 4px;
  position: relative;
  cursor: default;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Nieaktywne zakładki - wyszarzone */
.day-column:not(.today) .day-header {
  background: #ede0c8;
  border-color: transparent;
}

.day-column:not(.today) .day-header h3 {
  color: #a08766;
  font-weight: 600;
}

/* Aktywna zakładka (DZIŚ) - "wystaje" w górę */
.day-column.today .day-header {
  background: #fffaf0;
  border-bottom: 2px solid #fffaf0;
  margin-top: -6px;
  padding-top: 22px;
  padding-bottom: 16px;
  z-index: 2;
  box-shadow: 0 -4px 12px rgba(139, 111, 71, .1);
}
/* Kliknięty dzień na desktopie */
.day-column.active-day .day-header {
  background: #fffaf0;
  border-bottom: 2px solid #fffaf0;
  margin-top: -6px;
  padding-top: 22px;
  padding-bottom: 16px;
  z-index: 2;
  box-shadow: 0 -4px 12px rgba(139, 111, 71, .1);
}

.day-column.active-day .day-header h3 {
  color: #3d2f1f;
  font-weight: bold;
}

/* Nieaktywne zakładki - wyszarzone (nadpisuje today jeśli nie jest active) */
.day-column.today:not(.active-day) .day-header {
  background: #ede0c8;
  border-color: transparent;
  margin-top: 0;
  padding-top: 16px;
  box-shadow: none;
}

.day-column.today:not(.active-day) .day-header h3 {
  color: #a08766;
  font-weight: 600;
}

/* Oś czasu aktywnego dnia */
.day-column.active-day .col-timeline::before {
  background: rgba(139, 111, 71, .3);
}
/* Hover na zakładce */
.day-header:hover {
  background: #f5efe6 !important;
  transition: background 0.2s;
}

.day-column.active-day .day-header:hover,
.day-column.today.active-day .day-header:hover {
  background: #fffaf0 !important;
}
.day-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #3d2f1f;
  letter-spacing: -.2px;
}

.day-column.today .day-header h3 {
  color: #6f5635;
}

.today-label {
  display: inline-block;
  margin-left: 8px;
  background: #8b6f47;
  color: #fffaf0;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .4px;
  vertical-align: middle;
}

/* Kontener z lekcjami pod zakładkami */
.col-timeline {
  position: relative;
  padding: 18px 14px 18px 20px;
  background: #fffaf0;
  flex: 1;
}

.col-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  bottom: 18px;
  width: 2px;
  background: #e0d0b0;
}

.day-column.today .col-timeline::before {
  background: rgba(139, 111, 71,.3);
}

.day-divider.current-break {
  background: #fef3c7;
  color: #8b6f47;
  border: 1px solid #d4a574;
  border-radius: 999px;
  padding: 6px 10px;
  margin: 8px 0 12px 32px;
  box-shadow: 0 6px 14px rgba(184, 134, 11, .15);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.day-divider.current-break span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.col-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.col-row:nth-child(1) { animation-delay: 0.03s; }
.col-row:nth-child(2) { animation-delay: 0.06s; }
.col-row:nth-child(3) { animation-delay: 0.09s; }
.col-row:nth-child(4) { animation-delay: 0.12s; }
.col-row:nth-child(5) { animation-delay: 0.15s; }
.col-row:nth-child(6) { animation-delay: 0.18s; }
.col-row:nth-child(7) { animation-delay: 0.21s; }
.col-row:nth-child(8) { animation-delay: 0.24s; }

.col-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffaf0;
  border: 2px solid #d4c4a8;
  flex-shrink: 0;
  margin-top: 11px;
  margin-right: 8px;
  box-sizing: border-box;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #8b6f47;
}

.col-dot.current {
  background: #fffaf0;
  border: 3px solid #8b6f47;
  box-shadow: 0 0 0 5px rgba(139, 111, 71,.15);
  color: #6f5635;
}
.col-dot.done {
  background: #fffaf0;
  border: 2px solid #8b6f47;
  color: #6f5635;
  font-size: 13px;
  font-weight: 900;
}
.col-dot.okienko {
  border-style: dashed;
  color: #d4c4a8;
}

.col-card {
  flex: 1;
  border-radius: 12px;
  padding: 8px 6px;
  background: #fffaf0;
  border: 1px solid #e8dcc4;
  border-left-width: 4px;
  transition: all .2s ease;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(92, 58, 30,.05);
  position: relative;
}

.col-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(92, 58, 30,.1);
}

.col-card.okienko-card {
  border-style: dashed;
  background: #f5efe6 !important;
  border-left-color: #d4c4a8 !important;
}

.col-card .time {
	font-size: 11px;
	color: #8b6f47;
	font-weight: 700;
	margin-bottom: 4px;
}

.col-card .subj {
  font-weight: bold;
  font-size: 14px;
  color: #3d2f1f;
  line-height: 1.25;
  margin-bottom: 5px;
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
  /* white-space: nowrap; */
}

.col-card .meta {
  font-size: 11px;
  color: #8b6f47;
  line-height: 1.4;
  font-weight: 600;
}

.col-card .meta .room {
	display: inline-block;
	background: #f5efe6;
	padding: 2px 7px;
	border-radius: 7px;
	margin-right: 5px;
	color: #5c4530;
}

.col-row.current .col-card {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe9b3 100%) !important;
  border: 2px solid #dc2626 !important;
  border-left-width: 6px !important;
  box-shadow: 
    0 0 0 4px rgba(220, 38, 38, 0.15),
    0 14px 32px rgba(220, 38, 38, 0.25) !important;
  transform: translateY(-3px) scale(1.03);
  position: relative;
  z-index: 5;
  animation: currentPulse 2.5s ease-in-out infinite;
}
@keyframes currentPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 4px rgba(220, 38, 38, 0.15),
      0 14px 32px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 
      0 0 0 6px rgba(220, 38, 38, 0.25),
      0 14px 36px rgba(220, 38, 38, 0.35);
  }
}
.col-row.current .col-card .subj { 
  color: #991b1b; 
  font-size: 15px;
}
.col-row.current .col-card .time { 
  color: #dc2626; 
  font-weight: 800;
}
.col-row.current .col-card .meta .room { 
  background: rgba(220, 38, 38, 0.12); 
  color: #991b1b; 
}

.col-row.current .badge-desktop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;;
  color: #fffaf0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  margin-top: 7px;
  letter-spacing: .35px;
}

.col-row.current .badge-desktop::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #fffaf0;
  border-radius: 50%;
  animation: badgeBlink 1s infinite ease-in-out;
}
@keyframes badgeBlink {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .25;
    transform: scale(.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.progress-bar {
  width: 100%;
  height: 4px;
  background: #ede0c8;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #8b6f47, #b8956a);
  border-radius: 999px;
  transition: width 1s linear;
}

/* ─── Mobile ─── */

.mobile-plan { display: none; }

.mobile-header {
  text-align: center;
  padding: 4px 0 12px;
}

.mobile-header .class-select {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #3d2f1f;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  padding: 4px 24px 4px 8px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d2f1f' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.mobile-header .class-select:focus { outline: none; }

.mobile-header .date-text {
  color: #a08766;
  font-size: 14px;
  margin-top: 4px;
}

.days-pills {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 0 4px 18px;
}

.day-pill {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 20px;
  background: #ede0c8;
  font-size: 13px;
  font-weight: 500;
  color: #8b6f47;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.day-pill.active {
  background: #8b6f47;
  color: #fffaf0;
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #e0d0b0;
  z-index: 0;
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.row:nth-child(1) { animation-delay: 0.05s; }
.row:nth-child(2) { animation-delay: 0.1s; }
.row:nth-child(3) { animation-delay: 0.15s; }
.row:nth-child(4) { animation-delay: 0.2s; }
.row:nth-child(5) { animation-delay: 0.25s; }
.row:nth-child(6) { animation-delay: 0.3s; }
.row:nth-child(7) { animation-delay: 0.35s; }
.row:nth-child(8) { animation-delay: 0.4s; }

.time-col {
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffaf0;
  border: 2px solid #d4c4a8;
  margin-bottom: 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #8b6f47;
}

.dot.done {
  background: #fffaf0;
  border-color: #8b6f47;
  color: #6f5635;
}

.dot.current {
  background: #fffaf0;
  border: 3px solid #b8860b;
  color: #b8860b;
}

.dot.next {
  background: #fffaf0;
  border: 3px solid #c4a784;
  color: #a08766;
}

.dot.upcoming {
  background: #fffaf0;
  border-color: #d4c4a8;
  color: #8b6f47;
}

.time-label {
  font-size: 12px;
  color: #8b6f47;
  font-weight: 500;
}
.time-label-end {
  font-size: 10px;
  color: #a08766;
  font-weight: 500;
  margin-top: 1px;
  opacity: 0.75;
}

.time-label-end::before {
  content: "–";
  margin-right: 2px;
  opacity: 0.6;
}

.row.current .time-label-end {
  color: #b91c1c;
  opacity: 0.85;
}
.card {
  flex: 1;
  background: #fffaf0;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(92, 58, 30,0.06);
  border-left: 4px solid #d4c4a8;
  margin-left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  border-bottom:1px solid #e8dcc4;
  border-right:1px solid #e8dcc4;
  border-top:1px solid #e8dcc4;
  background: linear-gradient(to bottom, #fffaf0 5%, #f9f2e3 100%);
  position: relative;
}

.card.okienko-mobile {
  border-style: dashed;
  background: #f5efe6;
  border-left-color: #d4c4a8;
}

.info .name {
  font-weight: 700;
  font-size: 15px;
  color: #3d2f1f;
  line-height: 1.2;
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  
  -webkit-line-clamp: 2;
  line-clamp: 2;
  
  overflow: hidden;
  word-break: break-word;
  transition: all 0.3s ease;
}

.card.expanded .info .name {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* ─── Karty z grupami: zawsze rozwinięte, bez ucinania ─── */
.card.has-groups .info .name {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
}

.mobile-plan .card {
  cursor: pointer;
  align-items: flex-start;
}

.info .details {
  font-size: 12px;
  color: #a08766;
  margin-top: 3px;
}

.row.current .card {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe9b3 100%) !important;
  padding: 14px;
  border: 2px solid #dc2626 !important;
  border-left-width: 6px !important;
  box-shadow: 
    0 0 0 3px rgba(220, 38, 38, 0.15),
    0 8px 20px rgba(220, 38, 38, 0.25);
  transform: scale(1.02);
  position: relative;
  z-index: 5;
  animation: currentPulseMobile 2.5s ease-in-out infinite;
}

@keyframes currentPulseMobile {
  0%, 100% {
    box-shadow: 
      0 0 0 3px rgba(220, 38, 38, 0.15),
      0 8px 20px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 
      0 0 0 5px rgba(220, 38, 38, 0.25),
      0 8px 24px rgba(220, 38, 38, 0.35);
  }
}

.row.current .info .name {
  color: #991b1b;
  font-size: 16px;
}

.row.current .time-label {
  color: #dc2626;
  font-weight: 700;
}

.row.current .info .details {
  color: #b91c1c;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fffaf0;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #fffaf0;
  border-radius: 50%;
  animation: badgeBlink 1s infinite ease-in-out;
}

 

.empty-day {
  text-align: center;
  padding: 40px 20px;
  color: #a08766;
}

.empty-day .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-day .empty-text {
  font-size: 16px;
  font-weight: 700;
}

.kbd-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3d2f1f;
  color: #d4c4a8;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  line-height: 1.6;
}

.kbd-hint.show {
  opacity: 1;
  pointer-events: auto;
}

.kbd-hint kbd {
  background: #5c4530;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #f5efe6;
}

/* ─── Tablet ─── */

@media (min-width: 769px) and (max-width: 1100px) {
  .sidebar { width: 160px; }
  .day-column { min-width: 160px; }
  .col-timeline { padding: 14px 10px 14px 16px; }
  .col-card .subj { font-size: 13px; }
  .col-card .meta { font-size: 10px; }
  .day-header h3 { font-size: 15px; }
}

/* ─── Mobile ─── */

@media (max-width: 768px) {
  body { padding: 12px; background: #fffaf0; }
  .desktop-plan { display: none; }
  .mobile-plan { display: block; }
  .toolbar { display: none; }
  .kbd-hint { display: none !important; }
}

/* ─── Print ─── */

@media print {
  body { background: white !important; padding: 0; color: #000 !important; }

  .toolbar, .sidebar, .now-info, .mobile-plan,
  .badge, .badge-desktop, .btn-back, .top-bar,
  .kbd-hint, .weekend-banner, .toolbar-btn,
  .progress-bar { display: none !important; }

  .app-layout { box-shadow: none; border: 1px solid #ccc; }

  .days-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .col-card { box-shadow: none !important; transform: none !important; }
  .col-row.current .col-card { border: 1px solid #333 !important; }
  .col-row { animation: none !important; opacity: 1 !important; }
}
/* ─── Custom Tooltip a'la Shadcn ─── */
.custom-tooltip {
  position: fixed;
  background-color: #3d2f1f;
  color: #f5efe6;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease, margin-top 0.15s ease;
  margin-top: 4px;
  max-width: 280px;
  white-space: pre-line;
  text-align: center;
  line-height: 1.4;
}

.custom-tooltip.show {
  opacity: 1;
  margin-top: 0;
}
/* ─── Animacja wpadania (spadania) ─── */
@keyframes fallDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fall {
  opacity: 0;
  animation: fallDown 0.5s ease-out forwards;
}
.mobile-break {
  margin: 8px 0 12px 62px;
}
.time-remaining {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8860b;
  margin-top: 4px;
  margin-bottom: 2px;
}
/* Wyłączenie animacji przy lekkiej aktualizacji */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
  animation: none !important;
  transition-duration: 0s !important;
}
/* ─── Mobile: badge + tekst w linii ─── */

.mobile-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
  width: 100%;
}

.mobile-status-row .badge {
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.time-left {
  display: contents;
}

.time-left-text {
  font-size: 12px;
  color: #8b6f47;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.time-left .progress-bar {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 2px;
  height: 5px;
}

/* Pasek w wersji "ciepłej" gdy lekcja trwa */
.row.current .time-left .progress-bar .fill {
  background: linear-gradient(90deg, #b8860b, #d4a574);
}
/* ─── Stopka z datą wygenerowania planu ─── */

.plan-footer {
  max-width: 1400px;
  margin: 24px auto 8px;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #a08766;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.plan-footer strong {
  color: #8b6f47;
  font-weight: 700;
}

@media print {
  .plan-footer {
    color: #666 !important;
    margin-top: 12px;
    font-size: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   IKONY PRZEDMIOTÓW (osobne divy w prawym górnym rogu karty)
   ═══════════════════════════════════════════════════════════════ */

.card-icons {
  position: absolute;
  top: 25px;
  right: 5px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 2;
  pointer-events: none;
}

.card-icon {
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('img/ikony_plan/domyslna.png');
}

/* Mobile — mniejsze ikony */
.mobile-plan .card-icon {
  width: 32px;
  height: 32px;
}

/* Większa ikona dla aktywnej lekcji (desktop) */
.col-row.current .card-icon {
  width: 30x;
  height: 30x;
}

/* Padding po prawej — jedna szerokość ikony wystarczy (ikony są pionowo) */
.col-card {
  padding-right: 28px;
}

.col-row.current .col-card {
  padding-right: 56px;
}

.mobile-plan .card {
  padding-right: 44px;
}

/* Każdy przedmiot grupy w osobnej linii — bez ucinania */
.col-card .subj.subj-group {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 2px;

  /* Maksymalnie 2 linie na przedmiot — potem ... */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
 
  word-break: break-word;
}

/* Mniejszy odstęp dla meta przy grupach */
.col-card .meta.meta-group {
  margin-bottom: 6px;
  padding-left: 2px;
}

.col-card .meta-group:last-child {
  margin-bottom: 0;
}

.col-card .group-arrow {
  font-size: 10px;
  color: #a08766;
  margin-right: 2px;
}

/* Mobile — grupy w osobnych liniach */
.mobile-plan .card .info .name .group-line {
  display: block;
  line-height: 1.3;
  margin-bottom: 2px;
}

.mobile-plan .card .info .name .group-line:last-child {
  margin-bottom: 0;
}
/* ─── Mobile: blok grupy (przedmiot + jego szczegóły) ─── */
.mobile-plan .card .info .group-block {
  margin-bottom: 8px;
}

.mobile-plan .card .info .group-block:last-child {
  margin-bottom: 0;
}

.mobile-plan .card .info .group-details {
  margin-top: 2px;
  padding-left: 4px;
}
.lesson-group{
    margin-top:2px;
    font-size:12px;
    font-weight:700;
    color:#0f766e;
    line-height:1.25;
}