body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
	background: url('https://christinaenglish.ru/img/bg.png') center/cover;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
  background: rgba(10, 15, 25, 0.6);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
}

/* LEFT / RIGHT */
.tb-left,
.tb-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CENTER BLOCK */
.tb-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* NAV ROW (Prev / Date / Next) */
.tb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* DATE */
.tb-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    min-width: 140px;
    text-align: center;
}

/* NAV BUTTONS */
.nav-btn {
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #e5e7eb;
}

/* =========================
   CALENDAR (ВАЖНО: FIX кликабельности)
========================= */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 15px;

    position: relative;
    z-index: 1;

    /* КЛЮЧ: чтобы ничего не перекрывало клики */
    pointer-events: auto;
}

/* DAY */
.day {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* TITLE */
.day-title {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    color: #2e21d0;
}

/* SLOT */
.slot {
    height: 22px;
    margin: 4px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 6px;
    font-size: 12px;

    background: #ccf4ca73;
    border: 1px solid #e5e7eb;

    position: relative;

    cursor: pointer;
    pointer-events: auto;
}

/* hover */
.slot:hover {
    background: #f7f9ff;
}

/* busy */
.busy {
    background: #eea09c54;
}

/* disabled */
.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================
   MODAL (НЕ ЛОМАЕТ КЛИКИ)
========================= */
#m {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.4);
}

/* =========================
   LINKS
========================= */
a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

a:hover {
    color: #fff;
}
#m-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* кнопки студентов */
#m-list button {
    padding: 6px 10px;
    border-radius: 999px;

    border: 1px solid #e5e7eb;
    background: #f9fafb;

    font-size: 13px;
    color: #111827;

    cursor: pointer;

    transition: 0.2s;
    white-space: nowrap;
}

/* hover */
#m-list button:hover {
    background: #e8f0fe;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

/* active / click effect */
#m-list button:active {
    transform: scale(0.98);
}

/* если хочешь выделение выбранного (добавишь класс active через JS) */
#m-list button.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 500;
}