/* === TABULKA TERMÍNŮ === */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #fff;
}

/* === BUŇKY A HLAVIČKY === */
th, td {
    border: 1px solid #e5e7eb;
    padding: 10px 8px;
    overflow: visible;
    font-size: 16px;
}

th {
    background: #f8f9fb;
    font-weight: 700;
    color: #111;
}

td {
    color: #222;
    transition: background 0.15s ease, color 0.15s ease;
}

/* === PRVNÍ SLOUPEC (popisky vlevo) === */
.firstcol {
    text-align: left;
    padding-left: 12px;
    white-space: nowrap;
    background: #f9fafb;
    font-weight: 600;
    color: #000056;
}

/* === SLOUPEC S ČASEM === */
.timecol {
    vertical-align: bottom;
    background: #f9fafb;
    font-weight: 600;
}

/* === ROTOVANÉ HLAVIČKY === */
th.rotate {
    height: 80px;
    vertical-align: bottom;
    white-space: nowrap;
    position: relative;
    right: -10px;
    background: #f1f3f8;
    border-bottom: 2px solid #000056;
}
th.rotate.firstcol { right: -28px; }
.rot {
    display: inline-block;
    white-space: nowrap;
    padding: 5px;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    font-size: 15px;
    color: #000056;
}

/* === STAVY BUNĚK === */
td.available,
td.available-teacher,
td.available-nl {
    background: #e7f9ee; /* světle zelená */
    cursor: pointer;
}

td.unavailable,
td.unavailable-teacher,
td.unavailable-nl {
    background: #fde7e7; /* světle červená */
    color: #777;
}

td.no-data,
td.no-data-nl {
    background: #f2f2f2; /* šedá */
    color: #aaa;
}

/* Hover efekt jen pro klikatelné */
td.available:hover,
td.available-teacher:hover {
    background: #c6f6d5;
}

/* === RESPONSIVE VERZE === */
.short { display: none; }

@media (max-width: 1200px) {
    .full { display: none; }
    .short { display: inline; }

    th, td {
        font-size: 14px;
        padding: 6px;
    }
    th.rotate {
        height: 60px;
    }
}

/* === POPUP OKNO === */
.hidden_popup_for_booking {
    display: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 420px;
}

.popup-exit {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.popup-buttons {
    margin-top: 22px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.popup-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
}

.btn-confirm {
    background-color: #16a34a; /* zelená */
    color: white;
}
.btn-confirm:hover { background-color: #0e8239; }

.btn-cancel {
    background-color: #dc2626; /* červená */
    color: white;
}
.btn-cancel:hover { background-color: #b91c1c; }

/* === DROBNÉ VYLEPŠENÍ === */
h2 {
    font-size: 1.6rem;
    color: #000056;
    text-align: center;
    margin: 10px 0 20px;
}
