body{
  width: 100%;
  height: 100%;
  background-color: #1a202c;
  padding: 10px;
  padding-top: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 20px;
  padding-right: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  color: #fff;
  font-family: 'Roboto', sans-serif; /* или ваш шрифт */
}

/* Левая часть */
.left-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2c3242;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5); /* белое кольцо */
  box-sizing: border-box;
  padding: 6px; /* отступ от края до картинки */
}

.header-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.main-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-name p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.main-name h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Правая часть */
.right-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(to right, #292f3b, #202632);
  padding: 6px 10px;
  border-radius: 8px;
  width: 400px;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #b45366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.icon i{
  font-size: 32px;
  font-weight: normal;
}

.period {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.period p {
  margin: 0;
  font-size: 14px;
}

.period p:first-child {
  font-weight: 600;
  font-size: 18.5px;
}

.year {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  margin-left: auto;
}

.year p {
  margin: 0;
  font-size: 14px;
  text-align: right;
}

.year p:first-child {
  color: #996071;
  font-weight: 600;
  font-size: 17px;
}

.year p:last-child {
  color: #fff;
  opacity: 0.8;
  font-size: 12px;
}

.schedule{
  display: flex;
  width: 100%;
  height: calc(100vh - 100px);
  overflow: hidden;
}

.weeks{
  width: 220px;
  color: #ffffff;
}

.weeks .weeks-header{
  height: 25px;
}

.week{
  display: flex;
  background-color: #262e3b;
  margin: 0.5vh;
  border: 1px solid #2b3341;
  border-radius: 10px;
  height: calc((100vh - 130px)/6 - 0.5vh);
}

.week-left{
  margin: 10px;
}

.week-left .day{
  padding: 10px;
  height: 40px;
  font-weight: bold;
  border-radius: 5px;
  background: linear-gradient(to bottom right, #9c4373, #522b6a);
}

.week:nth-child(2) .week-left .day {
  filter: hue-rotate(30deg);
}

.week:nth-child(3) .week-left .day {
  filter: hue-rotate(60deg);
}

.week:nth-child(4) .week-left .day {
  filter: hue-rotate(90deg);
}

.week:nth-child(5) .week-left .day {
  filter: hue-rotate(120deg);
}

.week:nth-child(6) .week-left .day {
  filter: hue-rotate(150deg);
}

.week-left .line{
  height: calc(100% - 50px);
  margin-top: 10px;
  margin-left: 50%;
  border-left: 2px solid #383e4a;
}

.week-right {
  flex: 1;
  min-width: 0;
  margin: 0 10px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lesson-time {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.7vh;
  color: #9ca3b3;
}

.lesson-time span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;

  color: #996071;
  font-weight: bold;
  margin-right: 20px;
}

.lesson-time span::after {
  content: "";

  position: absolute;
  left: calc(100% + 6px); /* справа от span */
  top: 50%;
  transform: translateY(-50%);

  width: 0.3vh;
  height: 0.3vh;
  border-radius: 50%;

  background-color: #575d69;
}

.groups {
  width: 100%;
  color: #ffffff;
  
}

.groups .groups-header {
  display: flex;
  height: 25px;
  background: #272f3c;
  border: 1px solid #3c4451;
  border-radius: 8px;
  overflow: hidden; /* чтобы дочерние блоки не выходили за скруглённые углы */
}

.groups .group-name {
  flex: 1 1 0;              /* все элементы получают одинаковую ширину */
  min-width: 0;             /* позволяет корректно обрезать длинный текст */
  display: flex;
  align-items: center;
  justify-content: center;  /* текст по центру */
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #3c4451;
  font-weight: bold;
  color: #9ca3b3;
}

.groups .group-name:last-child {
  border-right: none; /* не нужна линия после последнего элемента */
}

.week-group {
  background-color: #262e3b;
  margin: 0.5vh 0;
  border: 1px solid #3c4451;
  border-radius: 10px;
  height: calc((100vh - 130px) / 6 - 0.5vh);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.group-row {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  position: relative; /* чтобы карточка позиционировалась относительно строки */
}

.group-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  /*box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;*/

  border-right: 1px solid #3c4451;
  border-bottom: 1px solid #3c4451;
  position: relative; /* важно для absolute внутри */
}

.group-cell:last-child {
  border-right: none;
}

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

/* Карточка поверх сетки */
.group-data {
  position: absolute;
  top: 2px;      /* сдвиг вниз */
  left: 2px;     /* сдвиг вправо */
  right: 8px;    /* можно регулировать, чтобы карточка могла быть шире ячейки */
  bottom: 0px;

  background: linear-gradient(135deg, #363d4d 0%, #2b3242 100%);
  border-radius: 2px;
  /*padding: 8px 10px;*/
  padding-left: 6px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);

  /* цветная полоска слева */
  border-left: 4px solid #9f516b;

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;      /* скрывать, если текст вышел за правую границу */
  text-align: left;      /* всё к левому краю */
  white-space: nowrap;   /* не переносить строки */
}

/* Если нужно, чтобы карточка могла быть заметно больше ячейки,
   можно увеличить right/bottom отрицательными значениями, например:
   right: -10px; bottom: -10px; */

.subject {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /*margin-bottom: 4px;*/
  margin-top: -0.3rem;
}

.teacher {
  font-style: italic;
  color: #ffffff;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: -0.2rem;
}

.my-zoom{
  z-index: 9000;
  transform: scale(5);
}

.group-data{
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}