/* TŁO TERMINARZA */
.sekcja-terminarz {
    background: url('/img/tlo6.jpg') center/cover no-repeat fixed;
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
}

.sekcja-terminarz .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

.terminarz-box {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
    text-align: center;
}

/* 🔥 NOWA, POPRAWIONA BELKA Z MIESIĄCEM I STRZAŁKAMI */
.month-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.month-bar a button {
    width: 42px;
    height: 42px;
    font-size: 22px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    backdrop-filter: blur(3px);
}

.month-bar a button:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.12);
}

.month-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    min-width: 240px; /* stała szerokość — strzałki zawsze równo */
    text-align: center;
}

/* KALENDARZ */
.calendar {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-name {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #222;
    border-radius: 6px;
}

.day {
    padding: 20px;
    text-align: center;
    background: #006400;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.day:hover {
    background: #228B22;
}

.free { background: #006400 !important; }
.maybe { background: #b8860b !important; }
.busy { background: #8b0000 !important; }

/* NEONOWA KROPKA POD DZISIEJSZYM DNIEM */
.day.today::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #00aaff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
}

/* CHMURKA */
.note-popup {
    position: absolute;
    display: none;
    background: #ffffff;
    color: #000;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    z-index: 9999;
    font-size: 15px;

    max-width: 320px;
    min-width: 220px;
    width: max-content;
    white-space: normal;
    line-height: 1.4;

    animation: fadeIn 0.15s ease-out;
}

.note-popup::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.note-admin {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.note-admin button {
    flex: 1;
    padding: 6px;
    border: none;
    background: #0077ff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.note-admin button:hover {
    background: #005fcc;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.info {
    margin-top: 20px;
    font-size: 20px;
}

/* PANEL ADMINA */
.admin-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.75);
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 99999;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.admin-panel a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

.admin-panel a:hover {
    color: #00aaff;
}
