/* ========================================
   BOOKINGS SYSTEM STYLES
   Specyficzne dla strony index.php (system rezerwacji)
   ORGANIZACJA: według kolejności użycia w index.php
======================================== */

/* ========================================
   1. DATE SELECTOR - MOBILE WZORNIK STYLE
   (linie 61-71 w index.php)
======================================== */

/* Podstawowa struktura days-container */
.days-container {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    align-items: center;
}

/* Day item - bazowe style z mobile.html */
.day {
    width: 34px;
    padding: 2px 1px;
    text-align: center;
    border-radius: 8px;
    background: var(--background-light);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    flex-shrink: 2;
    transition: all 0.2s ease;
}

.day:hover {
    background: var(--border-neutral);
    transform: translateY(-1px);
}

/* Active state (wybrany dzień) */
.day.active {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-blue);
}

.day.active .day-name {
    color: rgba(255,255,255,0.8);
}

.day.active .day-number {
    color: white;
}

/* Today state - TYLKO niebieskie podkreślenie */
.day.today {
    background: var(--border-neutral);
    position: relative;
}

.day.today .day-number {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Today indicator - niebieskie podkreślenie pod cyfrą */
.day.today::after {
    content: "";
    position: absolute;
    bottom: 1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* Today + Active state */
.day.today.active {
    background: var(--primary-blue);
    color: white;
}

.day.today.active .day-name {
    color: rgba(255,255,255,0.8);
}

.day.today.active .day-number {
    color: white;
}

.day.today.active::after {
    background: rgba(255, 255, 255, 0.8);
}

/* Day name */
.calendar-box .day-name {
    font-size: 7px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: -1px;
}

/* Day number */
.calendar-box .day-number {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   FILTER DAY PICKER STYLES
======================================== */
.filter-day__day {
    width: 38px;
    height: 38px;
    padding: 3px 2px;
    text-align: center;
    border-radius: 8px;
    background: white;
    border: none;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.filter-day__day:hover:not(.filter-day__day--active) {
    background: #e8e8e8;
    transform: translateY(-1px);
}

/* Active state (wybrany dzień) */
.filter-day__day--active {
    background: #4A90E2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(74,144,226,0.3);
}

.filter-day .filter-day__day--active .filter-day__day-name {
    color: white;
}

.filter-day .filter-day__day--active .filter-day__day-number {
    color: white;
}

/* Today state - TYLKO niebieskie podkreślenie */
.filter-day__day--today {
    position: relative;
}

/* Today indicator - niebieskie podkreślenie pod cyfrą */
.filter-day__day--today::after {
    content: "";
    position: absolute;
    bottom: 1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: #4A90E2;
    border-radius: 1px;
}

/* Today + Active state */
.filter-day__day--today.filter-day__day--active {
    background: #4A90E2;
    color: white;
}

/* Status dni - dostępność */
.filter-day__day--available {
    border-color: #e0e0e0;
    background: #f5f5f5;
}

.filter-day__day--available .filter-day__day-number {
    color: #333;
}

.filter-day__day--limited {
    border-color: #e0e0e0;
    background: #f5f5f5;
}

.filter-day__day--limited .filter-day__day-number {
    color: #333;
}

.filter-day__day--unavailable {
    border-color: #e0e0e0;
    background: #f5f5f5;
    opacity: 0.6;
}

.filter-day__day--unavailable .filter-day__day-number {
    color: #999;
}

/* Hover dla statusów */
.filter-day__day--available:hover:not(.filter-day__day--active) {
    background: #e8e8e8;
    border-color: #e0e0e0;
}

.filter-day__day--limited:hover:not(.filter-day__day--active) {
    background: #e8e8e8;
    border-color: #e0e0e0;
}

/* Wyższa specificity dla aktywnych dni z statusami */
.filter-day__day--available.filter-day__day--active {
    background: #4A90E2;
    color: white;
}

.filter-day__day--available.filter-day__day--active .filter-day__day-name {
    color: white;
}

.filter-day__day--available.filter-day__day--active .filter-day__day-number {
    color: white;
}

.filter-day__day--limited.filter-day__day--active {
    background: #4A90E2;
    color: white;
}

.filter-day__day--limited.filter-day__day--active .filter-day__day-name {
    color: white;
}

.filter-day__day--limited.filter-day__day--active .filter-day__day-number {
    color: white;
}

.filter-day__day--unavailable.filter-day__day--active {
    background: #4A90E2;
    color: white;
}

.filter-day__day--unavailable.filter-day__day--active .filter-day__day-name {
    color: white;
}

.filter-day__day--unavailable.filter-day__day--active .filter-day__day-number {
    color: white;
}

.filter-day .filter-day__day--today.filter-day__day--active .filter-day__day-name {
    color: white;
}

.filter-day .filter-day__day--today.filter-day__day--active .filter-day__day-number {
    color: white;
}

.filter-day__day--today.filter-day__day--active::after {
    background: rgba(255, 255, 255, 0.8);
}

/* Filter day name */
.filter-day .filter-day__day-name {
    font-size: 9px;
    color: #666;
    font-weight: 500;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Filter day number */
.filter-day .filter-day__day-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.filter-day {
    background: white;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-day__month {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.filter-day__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-day__arrow:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-1px);
}

.filter-day__arrow:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.filter-day__arrow:disabled:hover {
    background: #f5f5f5;
    color: #ccc;
    transform: none;
}

/* Dodatkowe style dla klasy .disabled */
.filter-day__arrow.disabled {
    background: #f5f5f5 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
}

.filter-day__arrow.disabled:hover {
    background: #f5f5f5 !important;
    color: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.filter-day__arrow--prev {}
.filter-day__arrow--next {}

.filter-day__days-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 calc((100% - (28px + 10px + 5*38px + 4*6px + 10px + 28px)) / 2);
}



/* ========================================
   FILTER DAY PICKER ANIMACJE
======================================== */
.filter-day__day {
    animation: fadeIn 0.3s ease-out;
}

/* Animacja przejść między stronami */
.filter-day__days-row {
    transition: all 0.3s ease-out;
}

.filter-day__days-row.animating {
    opacity: 0.7;
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active selection animation */
.filter-day__day--active {
    animation: activeSelect 0.3s ease-out;
}

@keyframes activeSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02) translateY(-1px); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0,123,255,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0,123,255,0);
    }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .filter-day__day {
        animation: none !important;
        transition: none !important;
    }
    

}

/* ========================================
   2. INTERNAL BOOKING CONTROLS
   (linie 139-151 w index.php)
======================================== */
.internal-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
}

.internal-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.internal-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.internal-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ffc107;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.internal-label {
    font-weight: 600;
    color: #856404;
    font-size: 0.95em;
}

.internal-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.internal-reason {
    margin-top: 10px;
}

.internal-reason input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 2px solid #ffc107;
    border-radius: 8px;
    font-size: 0.9em;
    background: white;
}

.internal-reason input:focus {
    outline: none;
    border-color: #e0a800;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* ========================================
   3. SCHEDULE TABLE
   (linie 154-173 w index.php)
======================================== */
.schedule_schedule-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.schedule_schedule-wrapper {
    position: relative;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: visible;
}

.schedule_schedule-container {
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
}

.schedule_schedule-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    border-spacing: 0;
    font-size: 1em;
    border-radius: 8px;
    overflow: hidden;
}

.schedule_schedule-table th,
.schedule_schedule-table td {
    border: 1px solid var(--border-neutral);
    text-align: center;
    position: relative;
}

.schedule_schedule-table th {
    background: var(--background-neutral);
    font-weight: 600;
    color: var(--text-muted);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 13px;
    padding: 8px 2px;
    white-space: nowrap;
    vertical-align: top;
    line-height: 1.2;
}

.schedule_schedule-table th:not(.schedule_time-cell),
.schedule_schedule-table td:not(.schedule_time-cell) {
    min-width: 35px;
    width: 35px;
    padding: 8px 2px;
    font-size: 13px;
}

/* TIME COLUMN STYLES */
.schedule_time-cell,
th.schedule_time-cell,
td.schedule_time-cell {
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    padding: 4px 2px !important;
    text-align: center !important;
    font-size: 12px !important;
    position: sticky;
    left: 0;
    z-index: 12;
    box-sizing: content-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    background: var(--background-neutral);
    color: var(--text-muted);
    font-weight: 500;
}

.schedule_schedule-table colgroup col:first-child,
.schedule_schedule-table col.schedule_time-col {
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
}

/* ========================================
   ROOM SLOTS - APPLE STYLE
   (generowane przez JavaScript)
======================================== */
.schedule_room-slot {
    cursor: pointer;
    min-height: 34px;
    line-height: 1;
    padding-top: 4px;
    padding-bottom: 4px;
    position: relative;
    transition: all 0.2s ease;
    border-width: 1px;
    border-style: solid;
    border-color: var(--border-neutral);
    font-weight: 500;
    font-size: 13px;
    border-radius: 6px;
    margin: 1px;
}

.schedule_room-slot--available {
    background: var(--background-success);
    border-color: var(--border-success);
    color: var(--text-success);
    font-weight: 600;
}

.schedule_room-slot--available:hover {
    background: var(--background-success-adjacent);
    border-color: var(--border-success-adjacent);
    color: var(--text-success-adjacent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.schedule_room-slot--selected {
    background: var(--action-blue-hover);
    color: white;
    border-color: var(--action-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 2px 8px var(--shadow-blue);
    font-weight: 600;
}

.schedule_room-slot--adjacent {
    background: var(--background-success-adjacent);
    border-color: var(--border-success-adjacent);
    color: var(--text-success-adjacent);
    animation: pulse 2s infinite;
}

.schedule_room-slot--occupied {
    background: var(--background-error);
    border-color: var(--border-error);
    cursor: not-allowed;
    color: transparent;
    font-weight: 600;
    position: relative;
}

/* Przycisk przenoszenia rezerwacji */
.transfer-booking-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
}

.transfer-booking-btn:hover {
    opacity: 1;
    background: #0056b3;
}

.transfer-booking-btn i {
    font-size: 8px;
}

.schedule_room-slot--internal {
    background: var(--background-warning);
    border-color: var(--border-warning);
    cursor: not-allowed;
    color: var(--text-warning);
    font-weight: 600;
}

.schedule_room-slot--my-booking {
    background: var(--background-warning);
    border-color: var(--border-warning);
    cursor: not-allowed;
    color: var(--text-warning);
    font-weight: 600;
    position: relative;
}

.schedule_room-slot--bonus {
    background: var(--background-info);
    border-color: var(--border-info);
    cursor: not-allowed;
    color: var(--text-info);
    font-weight: 600;
}

/* NOWE: Style dla Google Calendar events */
.schedule_room-slot--google {
    background: var(--background-error); /* Czerwony - taki sam jak niedostępne */
    border-color: var(--border-error);
    cursor: not-allowed;
    color: transparent; /* Przezroczysty tekst jak w niedostępnych */
    font-weight: 600;
}

.schedule_room-slot--rez-google {
    background: var(--background-error); /* Czerwony - taki sam jak niedostępne */
    border-color: var(--border-error);
    cursor: not-allowed;
    color: transparent; /* Przezroczysty tekst jak w niedostępnych */
    font-weight: 600;
}

/* NOWE: Style dla slotów bonusowych niedozwolonych dla levela */
.schedule_room-slot--bonus-restricted {
    background: var(--background-pastel);
    border-color: var(--border-neutral);
    cursor: not-allowed;
    color: var(--text-muted-adjacent);
    font-weight: 600;
    opacity: 0.7;
    position: relative;
}

.schedule_room-slot--bonus-restricted:hover {
    background: var(--background-pastel);
    border-color: var(--border-neutral);
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.schedule_room-slot--bonus-restricted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}

/* DISABLED SLOTS - UNIFIED */
.schedule_room-slot--coming-soon,
.schedule_room-slot--disabled,
.schedule_room-slot--disabled:hover,
.schedule_room-slot--disabled:active,
.schedule_room-slot--available.schedule_room-slot--disabled:hover {
    background: var(--background-pastel);
    border-color: var(--border-neutral);
    cursor: not-allowed;
    color: var(--text-muted-adjacent);
    box-shadow: none;
    pointer-events: none;
}

.schedule_room-slot--past {
    background: var(--background-pastel) !important;
    border-color: var(--border-neutral) !important;
    cursor: not-allowed !important;
    color: transparent !important;
    position: relative;
}

.schedule_room-slot--past::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-pastel);
    z-index: 1;
}

/* ========================================
   CURRENT TIME LINE - APPLE STYLE
   (generowane przez JavaScript)
======================================== */
.schedule_current-time-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--danger-red);
    z-index: 100;
    box-shadow: 0 1px 4px var(--shadow-red);
}

.schedule_current-time-indicator {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--danger-red);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px var(--shadow-red);
}

/* ========================================
   4. BOOKING SUMMARY - MOBILE.HTML DESIGN
   (linie 175-200 w index.php)
======================================== */

/* STICKY BOTTOM BASE */
.booking-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px 16px;
    transform: translateY(100%);
    border-radius: 16px 16px 0 0;
}

.booking-summary.show {
    transform: translateY(0);
}

/* RESET BUTTON - PRAWY GÓRNY RÓG */
.reset-btn-corner {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.reset-btn-corner:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

/* GŁÓWNY LAYOUT */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-right: 35px; /* miejsce na reset button */
}

.summary-left {
    flex: 1;
}

.summary-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* TEXT ELEMENTS */
.summary-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2px;
}

.summary-duration {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.summary-cancellation {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-style: italic;
}

.summary-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--action-blue);
    line-height: 1.2;
}

.summary-savings {
    font-size: 11px;
    color: var(--success-green);
    font-weight: 500;
    text-align: right;
}

.wallet-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

.summary-price-old {
    font-size: 13px;
    color: var(--text-muted, #888);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
    vertical-align: middle;
}

/* CTA BUTTON BASE */
.cta-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* LOADING STATE */
.cta-btn.loading {
    pointer-events: none;
}

.cta-btn.loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* BUTTON STATES */

/* Stan normalny - niebieski */
.cta-normal {
    background: var(--action-blue);
    color: white;
}

.cta-normal:hover {
    background: var(--action-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-blue);
}

/* Stan logowania - niebieski #4a90e2 */
.cta-login {
    background: var(--primary-blue);
    color: white;
}

.cta-login:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-blue);
}

/* ========================================
   5. RESPONSIVE DESIGN
======================================== */

/* RESPONSIVE DESKTOP */
@media (min-width: 769px) {
    .booking-summary {
        left: 50%;
        width: 600px;
        max-width: 600px;
        transform: translateX(-50%) translateY(100%);
        border-radius: 12px;
        margin-bottom: 0;
    }
    
    .booking-summary.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .summary-row {
        margin-bottom: 15px;
    }
    
    .summary-text {
        font-size: 16px;
    }
    
    .summary-duration {
        font-size: 13px;
    }
    
    .summary-cancellation {
        font-size: 12px;
    }
    
    .summary-price {
        font-size: 18px;
    }
    
    .cta-btn {
        padding: 14px;
        font-size: 16px;
    }
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 480px) {
    .booking-summary {
        padding: 10px 14px;
    }
    
    .summary-row {
        padding-right: 30px;
    }
    
    .reset-btn-corner {
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .summary-text {
        font-size: 14px;
    }
    
    .summary-cancellation {
        font-size: 11px;
    }
    
    .summary-price {
        font-size: 15px;
    }
    
    .cta-btn {
        padding: 11px;
        font-size: 14px;
    }
}

/* ANIMATIONS */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpDesktop {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Animacja dla mobile - używana domyślnie */
.booking-summary.show {
    animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 2);
}

/* DESKTOP ANIMATION */
@media (min-width: 769px) {
    .booking-summary.show {
        animation: slideUpDesktop 0.3s cubic-bezier(0.25, 0.46, 0.45, 3);
    }
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .booking-summary,
    .cta-btn,
    .reset-btn-corner {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
======================================== */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 4px;
        padding-bottom: 150px;
    }
    
    .container {
        padding: 4px;
        margin: 0;
    }
    
    h1 {
        font-size: 20px;
        margin: -4px -4px 20px -4px;
        padding: 25px;
    }
    
    /* Mobile - Filter Day */
    .filter-day__day {
        width: 42px;
        height: 42px;
        padding: 4px 2px;
    }
    
    .filter-day__arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .filter-day .filter-day__day-name {
        font-size: 9px;
    }
    
    .filter-day .filter-day__day-number {
        font-size: 14px;
    }
    
    .filter-day__days-row {
        gap: 8px;
        padding: 0 calc((100% - (32px + 10px + 5*42px + 4*8px + 10px + 32px)) / 2);
    }
    
    /* Mobile - Today indicator */
    .filter-day__day--today::after {
        width: 22px;
        height: 2px;
        bottom: 2px;
    }
    
    /* DATE SELECTOR MOBILE */
    .days-container {
        gap: 3px;
    }
    
    .day {
        width: 30px;
        padding: 1px;
    }
    
    .day-name {
        font-size: 6px;
    }
    
    .day-number {
        font-size: 10px;
    }
    
    /* Today indicator mobile */
    .day.today::after {
        width: 16px;
        height: 1px;
        bottom: 1px;
    }
    
    /* SCHEDULE TABLE MOBILE - APPLE STYLE */
    .schedule_schedule-wrapper {
        overflow: hidden;
        margin-bottom: 0;
    }
    
    .schedule_schedule-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 1px;
        font-size: 1em;
        border-radius: 6px;
    }
    
    .schedule_schedule-table th:not(.schedule_time-cell),
    .schedule_schedule-table td:not(.schedule_time-cell) {
        min-width: 22px;
        width: 22px;
    }
    
    .schedule_schedule-table th:not(.schedule_time-cell) {
        font-size: 11px;
        padding: 4px 0;
    }
    
    .schedule_time-cell {
        font-size: 11px !important;
    }
    
    .schedule_room-slot {
        min-height: 24px;
        line-height: 1.2;
        font-size: 11px;
        border-radius: 4px;
        margin: 0.5px;
    }
    
    .schedule_room-slot--available {
        font-size: 11px;
    }
    
    /* BOOKING SUMMARY MOBILE */
    .booking-summary {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        transform: translateY(100%);
        border-radius: 20px 20px 0 0;
    }
    
    .booking-summary.show {
        transform: translateY(0);
    }
    
    /* Show mobile layout, hide desktop */
    .summary-content {
        display: none;
    }
    
    .summary-content.mobile-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .summary-left {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .summary-details {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 0.95em;
        opacity: 0.9;
        white-space: nowrap;
        gap: 6px;
    }
    
    .summary-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .summary-price {
        display: block;
        font-size: 1.2em;
        font-weight: bold;
    }
    
    .summary-duration {
        display: block;
        font-size: 0.85em;
        opacity: 0.9;
    }
    
    .summary-cancellation {
        display: block;
        font-size: 0.75em;
        opacity: 0.8;
        font-style: italic;
    }
    
    .book-btn {
        margin-top: 0;
        padding: 16px;
        font-size: 17px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .day {
        width: 28px;
        padding: 1px;
    }
    
    .day-name {
        font-size: 5px;
    }
    
    .day-number {
        font-size: 9px;
    }
    
    /* Today indicator extra small */
    .day.today::after {
        width: 14px;
        height: 1px;
        bottom: 1px;
    }
}

/* ========================================
   SCHEDULE NAVIGATION ARROWS - MOBILE ONLY
   (dodane dla lepszego UX na mobile)
======================================== */

@media (max-width: 768px) {
    .schedule_schedule-section {
        position: relative;
    }
    
    .schedule-nav-arrow {
        position: absolute;
        top: 1.8%;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        z-index: 20;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .schedule-nav-arrow:hover {
        background: var(--action-blue-hover);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .schedule-nav-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .schedule-nav-arrow--left {
        left: -4px;
    }
    
    .schedule-nav-arrow--right {
        right: -1px;
    }
}

/* Desktop - ukryj strzałki */
@media (min-width: 769px) {
    .schedule-nav-arrow {
        display: none !important;
    }
} 

.schedule-skeleton {
  width: 100%;
  min-height: 400px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 16px 0;
  position: relative;
  overflow: hidden;
}
.schedule-skeleton-row {
  display: flex;
  margin-bottom: 6px;
}
.schedule-skeleton-cell {
  height: 28px;
  flex: 1;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: 6px;
  margin: 0 2px;
}
.schedule-skeleton-cell.time {
  flex: 0 0 48px;
  background: #e0e0e0;
}
.schedule-skeleton-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #b0b0b0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Style dla modala przenoszenia w calendar */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 10px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
} 