/* ========================================
   Style dla index.php - Plan Meetów
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: visible;
}

/* ========== STOPKA STRONY ========== */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9em;
}

.site-footer p {
    margin: 0;
    opacity: 0.9;
}

/* ========== STYLE DLA ODWOŁANEGO MEETU ========== */
.cancelled-banner {
    background: repeating-linear-gradient(
        45deg,
        rgba(220, 53, 69, 0.95),
        rgba(220, 53, 69, 0.95) 25px,
        rgba(0, 0, 0, 0.1) 25px,
        rgba(0, 0, 0, 0.1) 50px
    );
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    animation: cancelled-pulse 2s ease-in-out infinite;
}

@keyframes cancelled-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.container.meet-cancelled {
    position: relative;
}

.container.meet-cancelled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(220, 53, 69, 0.08) 30px,
        rgba(220, 53, 69, 0.08) 60px
    );
    pointer-events: none;
    z-index: 1;
}

.container.meet-cancelled header {
    position: relative;
    z-index: 2;
}

.container.meet-cancelled .schedule-container,
.container.meet-cancelled .mobile-schedule {
    position: relative;
    z-index: 0;
    opacity: 0.7;
}

/* ========== STYLE DLA ODWOŁANYCH WYDARZEŃ ========== */
.event-cancelled {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(220, 53, 69, 0.25) 8px,
        rgba(220, 53, 69, 0.25) 16px
    ) !important;
    position: relative;
}

.event-cancelled::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border: 2px dashed #dc3545;
    border-radius: inherit;
    pointer-events: none;
}

.event-cell.event-cancelled,
.mobile-event.event-cancelled,
.stacked-event-item.event-cancelled {
    opacity: 0.8;
}

.event-cancelled .mobile-event-title,
.event-cell.event-cancelled > :not(.cancelled-event-badge) {
    text-decoration: line-through;
    text-decoration-color: #dc3545;
}

.cancelled-event-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: cancelled-pulse 2s ease-in-out infinite;
}

.cancelled-event-badge.small {
    font-size: 0.65em;
    padding: 2px 5px;
}

.mobile-event.event-cancelled {
    border-left-color: #dc3545 !important;
}

/* ========== STYLE DLA CZASU PRZYGOTOWANIA/ZAKOŃCZENIA ========== */
.event-cell {
    position: relative;
}

.setup-stripe, .cleanup-stripe {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.7),
        rgba(255, 193, 7, 0.7) 5px,
        rgba(255, 235, 59, 0.7) 5px,
        rgba(255, 235, 59, 0.7) 10px
    );
    z-index: 10;
}

.setup-stripe {
    top: 0;
    border-radius: 4px 4px 0 0;
}

.cleanup-stripe {
    bottom: 0;
    border-radius: 0 0 4px 4px;
}

/* Dla mobile view */
.mobile-event .setup-stripe,
.mobile-event .cleanup-stripe {
    height: 8px;
}

/* Dla stacked events */
.stacked-event-item {
    position: relative;
}

.stacked-event-item .setup-stripe,
.stacked-event-item .cleanup-stripe {
    height: 6px;
}

header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.current-time {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.2em;
}

.current-events {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    border-left: 5px solid #f5576c;
}

.current-events h2 {
    color: #f5576c;
    margin-bottom: 15px;
}

.event-item {
    background: #f8f9fa;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.event-item.clickable {
    cursor: pointer;
}

.event-item.clickable:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-item strong {
    color: #667eea;
}

/* Style dla motywów - event-item */
body.theme-noir .event-item {
    background: #f9f6f0;
    border: 1px solid #28241D;
}

body.theme-noir .event-item.clickable:hover {
    background: #E8DDCE;
}

body.theme-noir .event-item strong {
    color: #28241D;
}

body.theme-dark .event-item {
    background: #2d2d4d;
    border-left-color: #667eea;
}

body.theme-dark .event-item.clickable:hover {
    background: #3d3d5d;
}

body.theme-dark .event-item strong {
    color: #a0a0ff;
}

body.theme-neon .event-item {
    background: #1a0a2e;
    border-left-color: #ff00ff;
}

body.theme-neon .event-item.clickable:hover {
    background: #2d1b4e;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

body.theme-neon .event-item strong {
    color: #ff00ff;
}

.schedule {
    padding: 20px;
    overflow: visible;
}

/* Flexbox Grid Layout */
.flex-schedule {
    display: flex;
    flex-direction: column;
    min-width: 800px;
    border: 2px solid #ddd;
}

.flex-header-group {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 10;
}

.flex-header-row {
    display: flex;
}

.flex-header-cell {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flex-header-cell.sub-header {
    font-size: 0.8em;
}

.flex-row {
    display: flex;
    min-height: 60px;
}

.flex-cell {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-time-col {
    flex: 0 0 80px;
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.flex-room-group {
    display: flex;
    flex: 1;
}

.flex-room-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.flex-events-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Backward compatibility */
.time-col {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    min-width: 80px;
    height: 50px;
    vertical-align: middle;
}

/* Style tabeli harmonogramu */
#scheduleTable table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

#scheduleTable table tr {
    min-height: 60px;
}

/* Naprzemienne kolory wierszy - lekkie cienie co pół godziny */
#scheduleTable table tbody tr:nth-child(odd) {
    background: rgba(102, 126, 234, 0.05);
}

#scheduleTable table tbody tr:nth-child(even) {
    background: rgba(118, 75, 162, 0.05);
}

#scheduleTable table tbody tr:nth-child(odd) .time-col {
    background: rgba(102, 126, 234, 0.12);
}

#scheduleTable table tbody tr:nth-child(even) .time-col {
    background: rgba(118, 75, 162, 0.12);
}

/* Cienie na atrakcjach - delikatne gradienty nakładane na wydarzenia */
#scheduleTable table tbody tr:nth-child(odd) .event-cell {
    box-shadow: 
        inset 0 0 0 1000px rgba(102, 126, 234, 0.08),
        inset 0 0 12px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

#scheduleTable table tbody tr:nth-child(even) .event-cell {
    box-shadow: 
        inset 0 0 0 1000px rgba(118, 75, 162, 0.08),
        inset 0 0 12px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

#scheduleTable table tbody tr:nth-child(odd) .stacked-event-item {
    box-shadow: 
        inset 0 0 0 1000px rgba(102, 126, 234, 0.08),
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.12);
}

#scheduleTable table tbody tr:nth-child(even) .stacked-event-item {
    box-shadow: 
        inset 0 0 0 1000px rgba(118, 75, 162, 0.08),
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.12);
}

#scheduleTable table td,
#scheduleTable table th {
    vertical-align: top;
    padding: 4px;
    border: 1px solid #ddd;
    font-size: 0.85em;
}

#scheduleTable table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.8em;
    white-space: nowrap;
}

#scheduleTable table .time-col {
    background: #f0f0f0;
    font-weight: bold;
    text-align: center;
    min-width: 50px;
    width: 50px;
    font-size: 0.85em;
    color: #333;
}

.event-cell {
    font-weight: bold;
    padding: 6px 4px;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    vertical-align: top;
    border-radius: 4px;
    font-size: 0.8em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-cell .event-desc {
    font-weight: normal;
    font-size: 0.85em;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}

.event-cell .event-desc-short {
    font-weight: normal;
    font-size: 0.8em;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
    max-height: 2.4em;
    overflow: hidden;
    line-height: 1.2;
}

.event-cell .read-more-btn {
    font-weight: normal;
    font-size: 0.75em;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 2px;
    display: inline-block;
}

.event-cell .read-more-btn:hover {
    color: #004499;
}

.event-cell .event-desc-full {
    display: none;
    font-weight: normal;
    font-size: 0.8em;
    opacity: 0.85;
    margin-top: 4px;
    line-height: 1.3;
}

.event-cell .event-desc-full.show {
    display: block;
}

.event-cell:hover {
    transform: scale(1.02);
}

/* Kontener dla nakładających się wydarzeń */
.events-container {
    position: relative;
    min-height: 50px;
}

.stacked-event {
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    line-height: 1.3;
}

.stacked-events-wrapper {
    display: flex;
    gap: 2px;
    height: 100%;
    width: 100%;
    min-height: 100%;
}

.stacked-event-item {
    flex: 1;
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    min-width: 0;
    margin: 2px;
}

.stacked-event-item > div {
    font-weight: bold;
    word-break: break-word;
}

.stacked-event-item small {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Style dla wydarzeń w kącikach - taka sama szerokość jak sale */
.corner-column {
    /* Taka sama szerokość jak normalne sale */
}

.corner-column-header {
    /* Taki sam styl jak normalne nagłówki */
}

.corner-event {
    /* Taki sam styl jak normalne wydarzenia */
}

.corner-event .event-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.corner-event .event-time {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Kącik w widoku mobilnym */
.mobile-event.corner-event-mobile {
    border-left-width: 8px;
    padding: 8px 10px;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
    position: relative;
}

.mobile-event.corner-event-mobile::before {
    content: '🪑';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.9em;
}

.mobile-event.corner-event-mobile .mobile-event-title {
    font-size: 0.95em;
}

.corner-badge {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75em;
    margin-left: 5px;
}

.current-time-indicator {
    position: relative;
}

.current-time-indicator::after {
    content: '◀ TERAZ';
    position: absolute;
    right: -80px;
    background: #f5576c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #667eea;
}

/* Widok mobilny - karty */
.mobile-schedule {
    display: none;
    padding: 10px;
    background: #f5f7fa;
}

/* Nagłówek dnia w widoku mobilnym */
.mobile-day-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f5f5dc;
    padding: 15px 18px;
    margin: 20px 0 10px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.mobile-day-header:first-child {
    margin-top: 0;
}

.mobile-day-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.mobile-day-venue {
    font-size: 0.9em;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Stylizacja dla różnych motywów */
body.theme-noir .mobile-day-header {
    background: linear-gradient(135deg, #3d3d3d 0%, #1a1a1a 100%);
    border: 2px solid #8b7355;
}

body.theme-dark .mobile-day-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #4a4a4a;
}

body.theme-pastel .mobile-day-header {
    background: linear-gradient(135deg, #b5838d 0%, #e5989b 100%);
    color: white;
}

body.theme-neon .mobile-day-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.time-block {
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.time-block-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-block-header.current {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 2s infinite;
}

.time-block-header .now-badge {
    background: white;
    color: #f5576c;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
}

.time-block-events {
    padding: 8px;
}

.mobile-event {
    background: white;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mobile-event-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.95em;
    line-height: 1.3;
}

.mobile-event-desc {
    color: #555;
    font-size: 0.85em;
    margin-bottom: 6px;
    line-height: 1.4;
}

.mobile-event-desc-short {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 4px;
    line-height: 1.4;
    max-height: 3.5em;
    overflow: hidden;
}

.mobile-event .read-more-btn {
    font-size: 0.8em;
    color: #667eea;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 6px;
    display: inline-block;
    font-weight: 500;
}

.mobile-event .read-more-btn:hover {
    color: #764ba2;
    text-decoration: underline;
}

.mobile-event-desc-full {
    display: none;
    color: #555;
    font-size: 0.85em;
    margin-bottom: 6px;
    line-height: 1.4;
}

.mobile-event-desc-full.show {
    display: block;
}

.mobile-event-room {
    color: #777;
    font-size: 0.8em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.mobile-event-room .room-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-event-room .venue-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: #333;
    text-shadow: none;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.1);
}

.mobile-event.full-width {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF6B6B 100%);
    color: white;
    border-left: none;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.mobile-event.full-width .mobile-event-title {
    color: white;
    font-weight: 700;
}

.mobile-event.full-width .mobile-event-room {
    color: rgba(255,255,255,0.95);
}

.view-toggle {
    display: block;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    text-align: center;
}

.view-toggle button {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 0 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle button.active {
    background: #667eea;
    color: white;
}

/* Toolbar sekcji tabeli */
.schedule-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.schedule-toolbar .scroll-hint {
    color: #666;
    font-size: 0.85em;
    text-align: center;
    padding: 5px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
}

.schedule-toolbar .toolbar-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.schedule-toolbar .print-btn,
.schedule-toolbar .pdf-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.schedule-toolbar .pdf-btn {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.schedule-toolbar .print-btn:hover,
.schedule-toolbar .pdf-btn:hover {
    transform: translateY(-2px);
}

.schedule-toolbar .print-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.schedule-toolbar .pdf-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #e8590c 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Kontrolki widoku tabeli */
.view-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 0.85em;
    color: #555;
    white-space: nowrap;
}

.control-group input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.control-group span {
    font-size: 0.8em;
    color: #667eea;
    font-weight: 600;
    min-width: 45px;
}

.reset-view-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-view-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-1px);
}

/* Widok mobilny - domyślnie ukryty */
.mobile-schedule {
    display: none;
    padding: 15px;
}

.mobile-schedule.show {
    display: block;
}

/* Widok tabeli - domyślnie widoczny */
.schedule {
    display: block;
}

.schedule.hidden {
    display: none;
}

/* Przewijanie tabeli */
.schedule-wrapper {
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    scroll-behavior: smooth;
    /* Pokazuj scrollbar zawsze */
    scrollbar-width: auto;
}

.schedule-wrapper::-webkit-scrollbar {
    height: 8px;
}

.schedule-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.schedule-wrapper::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.schedule-wrapper::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* ========== STYLE DLA PODZIELONYCH TABEL (GRUPY SAL) ========== */
.schedule-table-container {
    margin-bottom: 25px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* Scroll widoczny */
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.schedule-table-container::-webkit-scrollbar {
    height: 10px;
}

.schedule-table-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.schedule-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.schedule-table-container:last-child {
    margin-bottom: 0;
}

.room-group-header {
    background: linear-gradient(135deg, #485edb 0%, #6642a3 100%);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1em;
    margin-top: 20px;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-group-header:first-child {
    margin-top: 0;
}

/* ========== CSS GRID SCHEDULE TABLE ========== */
.schedule-grid {
    display: grid;
    width: max-content;
    min-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* Kolumna godziny */
.grid-time-header,
.grid-time-cell {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 0.8em;
    color: #333;
    min-width: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ddd;
    padding: 4px;
}

.grid-time-header {
    background: #e0e0e0;
    font-weight: 700;
    border-bottom: 2px solid #999;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* Nagłówki sal */
.grid-room-header {
    font-weight: 600;
    font-size: 0.75em;
    min-width: 90px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #ccc;
    border-bottom: 2px solid #999;
    position: sticky;
    top: 0;
    z-index: 25;
    word-wrap: break-word;
    line-height: 1.2;
}

.grid-room-header:last-child {
    border-right: none;
}

/* Puste komórki */
.grid-empty-cell {
    background: #fff;
    min-width: 90px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-height: 32px;
}

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

/* Komórki z wydarzeniami */
.grid-event-cell {
    min-width: 90px;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

.grid-event-cell:hover {
    filter: brightness(1.05);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.grid-event-cell .event-title {
    font-weight: 700;
    font-size: 0.75em;
    margin-bottom: 2px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.grid-event-cell .event-time {
    font-size: 0.65em;
    opacity: 0.85;
    margin-top: auto;
}

.grid-event-cell .event-host {
    font-size: 0.6em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Wydarzenia pełnoszerokie (fullWidth) */
.grid-fullwidth-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.grid-fullwidth-cell .event-title {
    font-size: 0.85em;
}

/* Wydarzenie odwołane */
.grid-event-cell.event-cancelled {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(220, 53, 69, 0.2) 5px,
        rgba(220, 53, 69, 0.2) 10px
    ) !important;
    opacity: 0.7;
}

.grid-event-cell.event-cancelled .event-title {
    text-decoration: line-through;
}

/* Badge odwołane */
.cancelled-badge {
    font-size: 0.6em;
    background: #dc3545;
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
}

/* Zachowaj kompatybilność ze starymi stylami table */
.schedule-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: top;
}

.schedule-table .time-header {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    color: white;
    font-weight: 600;
    min-width: 50px;
    width: 50px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.schedule-table .room-header {
    font-weight: 600;
    min-width: 120px;
    width: 120px;
    padding: 10px 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    white-space: normal;
    word-wrap: break-word;
}

.schedule-table .time-cell {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    position: sticky;
    left: 0;
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Stała minimalna wysokość wierszy z godzinami */
.schedule-table tbody tr {
    height: 50px;
}

.schedule-table .empty-cell {
    background: rgba(245, 245, 245, 0.5);
    min-width: 120px;
    width: 120px;
}

.schedule-table .event-cell {
    min-width: 120px;
    width: 120px;
    padding: 6px 4px;
    vertical-align: top;
    cursor: pointer;
    transition: transform 0.2s;
}

.schedule-table .event-cell:hover {
    transform: scale(1.02);
    z-index: 5;
}

.schedule-table .event-title {
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 4px;
    line-height: 1.2;
    word-wrap: break-word;
}

.schedule-table .event-time {
    font-size: 0.75em;
    opacity: 0.9;
}

.schedule-table .event-host {
    font-size: 0.7em;
    opacity: 0.85;
    margin-top: 4px;
}

/* Full-width events */
.schedule-table .full-width-cell {
    min-width: auto;
    width: auto;
}

.scroll-hint {
    display: none;
    text-align: center;
    color: #666;
    font-size: 0.85em;
    padding: 5px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Media queries */
@media (max-width: 900px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 10px;
        overflow: visible;
    }
    
    header {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .current-time {
        font-size: 1em;
        padding: 10px;
    }
    
    .current-events {
        margin: 10px;
        padding: 15px;
    }
    
    .current-events h2 {
        font-size: 1.1em;
    }
    
    .schedule {
        padding: 10px;
    }
    
    /* Tabela responsywna na tablet */
    .schedule-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px;
    }
    
    /* Style dla podzielonych tabel na tablecie */
    .schedule-table-container {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .room-group-header {
        padding: 10px 15px;
        font-size: 0.9em;
        margin-top: 15px;
    }
    
    /* Flexbox tablet styles */
    .schedule-flex {
        font-size: 0.85em;
    }
    
    .flex-room-header {
        min-width: 80px;
        padding: 8px 5px;
    }
    
    .flex-event-cell,
    .flex-empty-cell {
        min-width: 80px;
    }
    
    .schedule-table {
        font-size: 0.85em;
    }
    
    .schedule-table .room-header {
        min-width: 80px;
        padding: 8px 5px;
    }
    
    #scheduleTable table {
        min-width: 800px;
        font-size: 0.8em;
    }
    
    #scheduleTable table th {
        padding: 6px 3px;
        font-size: 0.75em;
        min-width: 70px;
    }
    
    #scheduleTable table td {
        padding: 4px 2px;
    }
    
    .event-cell {
        padding: 5px 3px;
        font-size: 0.75em;
        line-height: 1.2;
    }
    
    .event-cell .event-title {
        font-size: 0.85em;
    }
    
    .event-cell .event-desc-short {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
        background: #f5f5f5;
        overflow-x: hidden;
    }
    
    .container {
        border-radius: 0;
        box-shadow: none;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Schedule section na telefon */
    .schedule {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Wrapper z przewijaniem - kluczowe! */
    .schedule-wrapper {
        display: block;
        width: 100%;
        overflow-x: scroll !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        padding: 5px;
        margin: 0;
        scrollbar-width: auto;
        scrollbar-color: #667eea #f0f0f0;
    }
    
    .schedule-wrapper::-webkit-scrollbar {
        height: 10px;
        display: block !important;
    }
    
    .schedule-wrapper::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 5px;
    }
    
    .schedule-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 5px;
    }
    
    #scheduleTable,
    #scheduleTableMobileZoom {
        display: block;
        width: max-content;
        overflow: visible;
    }
    
    #scheduleTable table,
    #scheduleTableMobileZoom table {
        table-layout: fixed;
    }
    
    header {
        padding: 15px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    h1 {
        font-size: 1.2em;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .current-time {
        font-size: 0.9em;
        padding: 8px 12px;
        margin: 8px 0;
        border-radius: 8px;
    }
    
    .current-events {
        margin: 10px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .current-events h2 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    /* Selektor meetów na telefon */
    .meet-selector-bar {
        padding: 8px 10px;
        flex-direction: column;
        gap: 6px;
    }
    
    .meet-selector-bar label {
        font-size: 0.85em;
    }
    
    .meet-selector-bar select {
        padding: 8px 12px;
        font-size: 0.9em;
        min-width: unset;
        width: 100%;
        border-radius: 8px;
    }
    
    /* Selektory dni i placówek na telefon */
    .multiday-selectors {
        padding: 10px 12px;
    }
    
    .day-venue-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .selector-group {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .selector-group label {
        font-size: 0.85em;
        white-space: nowrap;
        min-width: 70px;
    }
    
    .selector-group select {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.9em;
        border-radius: 8px;
    }
    
    /* Przełącznik widoków na telefon */
    .view-toggle {
        padding: 8px;
        display: flex;
        justify-content: center;
        gap: 5px;
    }
    
    .view-toggle button {
        padding: 8px 12px;
        font-size: 0.8em;
        border-radius: 15px;
        flex: 1;
        max-width: 110px;
    }
    
    /* Wyszukiwarka na telefon */
    .search-section {
        padding: 10px;
        margin: 0;
    }
    
    .search-section h3 {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input-wrapper input {
        width: 100%;
        padding: 10px;
        font-size: 0.95em;
    }
    
    .search-input-wrapper button {
        width: 100%;
        padding: 10px;
    }
    
    .scroll-hint {
        display: block;
        font-size: 0.8em;
        padding: 8px;
        margin: 5px 10px;
    }
    
    .schedule-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .schedule-toolbar .toolbar-buttons {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }
    
    .schedule-toolbar .print-btn,
    .schedule-toolbar .pdf-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.85em;
    }
    
    /* Ukryj kontrolki widoku na telefonie - za małe ekrany */
    .view-controls {
        display: none;
    }
    
    .current-time-indicator::after {
        content: '◀';
        right: -20px;
        padding: 2px 5px;
        font-size: 0.65em;
    }
    
    /* Stopka na telefon */
    .site-footer {
        padding: 10px;
        font-size: 0.8em;
    }
    
    /* Sekcje dni na telefon */
    .day-schedule-section {
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .day-schedule-title {
        padding: 12px 15px;
        font-size: 1.1em;
    }
    
    .day-schedule-title::before {
        width: 6px;
        height: 6px;
    }
    
    /* Widok kart - karty wydarzeń na telefon */
    .mobile-schedule {
        padding: 8px;
    }
    
    .time-block {
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .time-block-header {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .time-block-events {
        padding: 6px;
    }
    
    .mobile-event {
        padding: 10px;
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .mobile-event-title {
        font-size: 0.9em;
    }
    
    .mobile-event-room {
        font-size: 0.75em;
        gap: 4px;
    }
    
    .mobile-event-room .room-badge {
        padding: 2px 6px;
        font-size: 0.8em;
    }
    
    /* Kącik event badge na telefon */
    .corner-badge {
        font-size: 0.7em !important;
        padding: 2px 5px !important;
    }
    
    /* Style tabeli są już wyżej - tu tylko dodatkowe */
    #scheduleTable table th {
        padding: 8px 5px;
        font-size: 0.8em;
        min-width: 90px;
        white-space: nowrap;
    }
    
    #scheduleTable table .time-col {
        min-width: 55px;
        width: 55px;
        font-size: 0.85em;
        padding: 6px 4px;
        position: sticky;
        left: 0;
        z-index: 5;
        background: #f0f0f0 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    #scheduleTable table td {
        padding: 4px 3px;
    }
    
    .event-cell {
        padding: 8px 5px;
        font-size: 0.8em;
        line-height: 1.25;
        border-radius: 4px;
    }
    
    .event-cell .event-title {
        font-size: 0.9em;
        margin-bottom: 3px;
        font-weight: bold;
    }
    
    .event-cell .event-desc-short {
        display: block;
        font-size: 0.75em;
        max-height: 2.5em;
        overflow: hidden;
    }
    
    .event-cell .read-more-btn {
        display: inline-block;
        font-size: 0.7em;
    }
    
    /* Sekcje dni w tabeli na telefon */
    .day-schedule-section {
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .day-schedule-title {
        padding: 10px 12px;
        font-size: 1em;
    }
    
    /* Scroll hint widoczny na telefon */
    .scroll-hint {
        display: block;
        background: linear-gradient(135deg, #fff3cd 0%, #ffc107 100%);
        color: #856404;
        padding: 8px 12px;
        margin: 5px;
        border-radius: 8px;
        font-size: 0.85em;
        text-align: center;
        font-weight: 500;
    }
    
    /* Stacked events na telefon */
    .stacked-events-wrapper {
        flex-direction: column;
        gap: 1px;
    }
    
    .stacked-event-item {
        padding: 3px 2px;
        font-size: 0.6em;
        margin: 1px;
    }
    
    .stacked-event-item > div {
        font-size: 0.75em;
    }
    
    .stacked-event-item small {
        font-size: 0.7em;
    }
    
    /* ========== STYLE DLA PODZIELONYCH TABEL NA TELEFONIE ========== */
    .schedule-table-container {
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Przewijanie poziome z widocznym scrollbarem */
        scrollbar-width: thin;
        scrollbar-color: #667eea #f0f0f0;
    }
    
    .schedule-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .schedule-table-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .schedule-table-container::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 4px;
    }
    
    .room-group-header {
        padding: 10px 12px;
        font-size: 0.9em;
        margin-top: 15px;
        border-radius: 8px 8px 0 0;
        position: sticky;
        left: 0;
        z-index: 5;
    }
    
    .room-group-header:first-child {
        margin-top: 0;
    }
    
    /* Tabela z odpowiednimi szerokościami kolumn */
    .schedule-table {
        font-size: 0.7em;
        border-collapse: collapse;
        /* Minimalna szerokość tabeli zależna od ilości sal */
        min-width: 600px;
        table-layout: fixed;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 4px 3px;
        vertical-align: top;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Kolumna godzin - sticky */
    .schedule-table .time-header,
    .schedule-table .time-cell {
        min-width: 40px;
        width: 40px;
        max-width: 40px;
        font-size: 0.85em;
        padding: 4px 2px;
        position: sticky;
        left: 0;
        z-index: 3;
        background: #f0f0f0 !important;
        box-shadow: 2px 0 4px rgba(0,0,0,0.15);
    }
    
    .schedule-table .time-header {
        background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
        color: white;
        z-index: 4;
    }
    
    /* Nagłówki sal */
    .schedule-table .room-header {
        min-width: 90px;
        width: 90px;
        padding: 6px 4px;
        font-size: 0.75em;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Komórki wydarzeń */
    .schedule-table .event-cell {
        min-width: 90px;
        width: 90px;
        padding: 4px 3px;
    }
    
    .schedule-table .event-title {
        font-size: 0.8em;
        line-height: 1.15;
        font-weight: 600;
        margin-bottom: 2px;
        word-wrap: break-word;
    }
    
    .schedule-table .event-time {
        font-size: 0.7em;
        opacity: 0.9;
    }
    
    .schedule-table .event-host {
        font-size: 0.65em;
        opacity: 0.85;
    }
    
    /* Puste komórki */
    .schedule-table .empty-cell {
        min-width: 90px;
        width: 90px;
    }
    
    /* Full-width events */
    .schedule-table .full-width-cell {
        min-width: auto;
        width: auto;
    }
}

/* Selector meetów */
.meet-selector-bar {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meet-selector-bar label {
    color: white;
    font-weight: bold;
}

.meet-selector-bar select {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    font-size: 1em;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

/* ========== SELEKTORY DNI I PLACÓWEK ========== */
.multiday-selectors {
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.multiday-selectors.hidden {
    display: none;
}

.day-venue-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-group.hidden {
    display: none;
}

.selector-group label {
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.selector-group select {
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 0.95em;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    color: #333;
    cursor: pointer;
    min-width: 180px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selector-group select:hover {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.selector-group select:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
/* ===== Day/Venue Tab Buttons ===== */
.day-tabs,
.venue-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.venue-tabs {
    margin-top: 4px;
}

.day-tab,
.venue-tab {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.day-tab:hover,
.venue-tab:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.day-tab.active,
.venue-tab.active {
    background: white;
    color: #667eea;
    border-color: white;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .day-tabs,
    .venue-tabs {
        gap: 4px;
        padding: 6px 0;
    }
    
    .day-tab,
    .venue-tab {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}


@media (max-width: 600px) {
    .meet-selector-bar {
        flex-direction: column;
    }
    
    .meet-selector-bar select {
        width: 100%;
    }
    
    .multiday-selectors {
        padding: 10px 15px;
    }
    
    .day-venue-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .selector-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .selector-group select {
        min-width: 0;
        flex: 1;
    }
}

/* ========== AI Chat Widget ========== */
.ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    z-index: 9999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.7);
}

.ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.ai-chat-window.open {
    display: flex;
}

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

.ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    gap: 10px;
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.1em;
    flex: 1;
    text-align: center;
}

.ai-chat-header .header-buttons-left,
.ai-chat-header .header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-chat-header .clear-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ai-chat-header .clear-btn:hover {
    background: rgba(255,100,100,0.5);
}

.ai-chat-header .sound-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.ai-chat-header .sound-btn:hover {
    background: rgba(255,255,255,0.4);
}

.ai-chat-header .sound-btn:not(.active) {
    opacity: 0.6;
}

.ai-chat-header .close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.ai-chat-header .close-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* TTS Audio Widget */
.tts-audio-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 8px 12px;
    margin-top: 8px;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tts-audio-widget button {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tts-audio-widget button:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.tts-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    min-width: 60px;
    overflow: hidden;
}

.tts-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.tts-time {
    font-size: 11px;
    opacity: 0.9;
    min-width: 70px;
    text-align: right;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.ai-chat-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.ai-chat-message.user { align-items: flex-end; }
.ai-chat-message.assistant { align-items: flex-start; }

.ai-chat-message .bubble {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 16px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-chat-message.user .bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-message.assistant .bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ai-chat-message .time {
    font-size: 0.75em;
    color: #999;
}

.ai-chat-message .message-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.msg-audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 12px;
    transition: all 0.2s;
    opacity: 0.7;
}

.msg-audio-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    opacity: 1;
    transform: scale(1.1);
}

.ai-chat-typing {
    display: none;
    padding: 10px 15px;
}

.ai-chat-typing.show { 
    display: block;
}

.ai-chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e4e6eb;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.ai-chat-typing-bubble .dot {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: messengerTyping 1.4s infinite ease-in-out;
}

.ai-chat-typing-bubble .dot:nth-child(1) {
    animation-delay: 0s;
}

.ai-chat-typing-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-typing-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes messengerTyping {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.typing-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8em;
    color: #667eea;
    font-style: italic;
    animation: fadeInText 0.5s ease-in-out;
}

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

.ai-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ai-chat-input-area textarea {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.95em;
    resize: none;
    max-height: 100px;
    font-family: inherit;
}

.ai-chat-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
}

.ai-chat-input-area .btn-group {
    display: flex;
    gap: 5px;
}

.ai-chat-input-area button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.ai-chat-input-area .send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-chat-input-area .send-btn:hover { transform: scale(1.05); }
.ai-chat-input-area .send-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.ai-chat-input-area .voice-btn {
    background: #f0f0f0;
    color: #666;
}

.ai-chat-input-area .voice-btn:hover { background: #e0e0e0; }

.ai-chat-input-area .voice-btn.recording {
    background: #ff4444;
    color: white;
    animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-chat-welcome {
    text-align: center;
    padding: 10px 10px;
    color: #666;
}

.glacier-avatar {
    width: 100%;
    max-height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.glacier-avatar img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(1.1) saturate(1.1);
}

.ai-chat-welcome h4 {
    color: #4fc3f7;
    margin-bottom: 5px;
    font-size: 1em;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.ai-chat-welcome p {
    font-size: 0.85em;
    margin-bottom: 10px;
}

.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.ai-chat-suggestions button {
    background: #f0f0f0;
    border: none;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chat-suggestions button:hover {
    background: #667eea;
    color: white;
}

/* ========== Wyszukiwarka atrakcji ========== */
.search-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.search-section h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(255,255,255,0.3);
}

.search-input-wrapper button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-input-wrapper button:hover {
    transform: scale(1.05);
}

.search-results {
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
    background: transparent;
}

.search-results.hidden {
    display: none;
}

.search-results-count {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
    padding: 4px 0;
}

.search-result-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-result-header {
    padding: 15px 20px;
    position: relative;
}

.search-result-title {
    color: #333;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.search-result-body {
    padding: 15px 20px;
    flex: 1;
}

.search-result-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-time-icon {
    font-size: 1.1em;
}

.search-result-room {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 8px;
}

.search-result-presenter {
    font-size: 0.9em;
    color: #555;
    margin: 6px 0;
}

.search-result-lang {
    font-size: 0.9em;
    margin: 4px 0;
}

.search-result-desc {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 8px 0 0;
}

.search-result-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.search-more-link {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

.search-result-item:hover .search-more-link {
    color: #764ba2;
}

.search-result-cancelled {
    opacity: 0.7;
}

.search-result-cancelled .search-result-title {
    text-decoration: line-through;
    text-decoration-color: #dc3545;
}

.search-cancelled-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-weight: bold;
}

.search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 30px 20px;
    font-style: italic;
    font-size: 1.1em;
}

.search-result-highlight {
    background: #fff3cd;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .search-results {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 70vh;
    }
    .search-result-header {
        padding: 12px 15px;
    }
    .search-result-title {
        font-size: 1em;
    }
    .search-result-body {
        padding: 12px 15px;
    }
}

/* ========== Style dla strony pojedynczego wydarzenia ========== */
.event-page-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.event-header {
    color: #333;
    padding: 30px;
    text-align: center;
}

.event-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.event-meta-item {
    background: rgba(255,255,255,0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.event-content {
    padding: 30px;
}

.event-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1em;
}

.event-description h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.meet-title {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* ========== SEKCJA ATRAKCJI ========== */
.attractions-section {
    padding: 20px;
    background: #f8f9fa;
}

.attractions-section.hidden {
    display: none;
}

/* Nagłówek dnia w widoku atrakcji */
.attractions-day-header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f5f5dc;
    padding: 18px 22px;
    margin: 25px 0 15px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.attractions-day-header:first-child {
    margin-top: 0;
}

.attractions-day-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 4px;
}

.attractions-day-venue {
    font-size: 0.95em;
    opacity: 0.9;
    color: #e0e0e0;
}

body.theme-noir .attractions-day-header {
    background: linear-gradient(135deg, #3d3d3d 0%, #1a1a1a 100%);
    border: 2px solid #8b7355;
}

body.theme-dark .attractions-day-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #4a4a4a;
}

body.theme-pastel .attractions-day-header {
    background: linear-gradient(135deg, #b5838d 0%, #e5989b 100%);
    color: white;
}

body.theme-neon .attractions-day-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.attraction-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.attraction-card-header {
    padding: 20px;
    position: relative;
}

.attraction-card-title {
    color: #333;
    font-size: 1.25em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.attraction-card-body {
    padding: 20px;
    flex: 1;
}

.attraction-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.attraction-card-time .time-icon {
    font-size: 1.2em;
}

.attraction-card-room {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 12px;
}

.attraction-card-room .room-icon {
    font-size: 1em;
}

.attraction-card-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #333;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

.attraction-corner-badge {
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.8;
}

.attraction-card-desc {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.attraction-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.read-more-link {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

.attraction-card:hover .read-more-link {
    color: #764ba2;
}

/* Atrakcja odwołana */
.attraction-card.attraction-cancelled {
    opacity: 0.7;
}

.attraction-card.attraction-cancelled .attraction-card-header {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(220, 53, 69, 0.25) 8px,
        rgba(220, 53, 69, 0.25) 16px
    );
}

.attraction-card.attraction-cancelled .attraction-card-title {
    text-decoration: line-through;
    text-decoration-color: #dc3545;
}

.attraction-cancelled-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
}

.no-attractions {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsywność dla atrakcji */
@media (max-width: 600px) {
    .attractions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .attraction-card-header {
        padding: 15px;
    }
    
    .attraction-card-title {
        font-size: 1.1em;
    }
    
    .attraction-card-body {
        padding: 15px;
    }
}

/* ========================================= */
/* Sekcje dni - osobne tabele dla każdego dnia */
/* ========================================= */

.day-schedule-section {
    margin-bottom: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(245,248,255,0.9));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.day-schedule-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 28px;
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-bottom: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-schedule-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Lepsza czytelność tabel na PC */
@media (min-width: 1024px) {
    /* Rozszerzenie kontenera na pełną szerokość ekranu dla dużych tabel */
    .container {
        max-width: calc(100vw - 40px);
    }
    
    /* Style dla podzielonych tabel na PC */
    .schedule-table-container {
        margin-bottom: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .room-group-header {
        padding: 15px 25px;
        font-size: 1.1em;
        margin-top: 25px;
    }
    
    .schedule-table {
        font-size: 0.95em;
        border-collapse: separate;
        border-spacing: 2px;
    }
    
    .schedule-table .room-header {
        min-width: 120px;
        padding: 12px 10px;
        border-radius: 8px 8px 0 0;
    }
    
    .schedule-table .time-cell {
        font-size: 1em;
        font-weight: 700;
    }
    
    .schedule-table .event-title {
        font-size: 1em;
    }
    
    .schedule-wrapper {
        overflow-x: auto;
        max-width: 100%;
    }
    
    #scheduleTable {
        min-width: 100%;
    }
    
    #scheduleTable table {
        font-size: 0.95em;
        border-spacing: 2px;
        border-collapse: separate;
        width: max-content;
        min-width: 100%;
    }
    
    #scheduleTable table th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        font-weight: 600;
        padding: 10px 6px;
        border-radius: 8px 8px 0 0;
        min-width: 100px;
        font-size: 0.85em;
    }
    
    #scheduleTable table th:first-child {
        background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
        min-width: 60px;
    }
    
    .time-col {
        font-weight: 700 !important;
        font-size: 1.1em !important;
        color: #444 !important;
        background: rgba(102, 126, 234, 0.08) !important;
        border-right: 3px solid rgba(102, 126, 234, 0.2) !important;
        text-align: center;
        padding: 8px 12px !important;
        white-space: nowrap;
    }
    
    .event-cell {
        border-radius: 8px;
        margin: 4px;
        padding: 12px 14px;
        font-size: 0.95em;
        border-left: 4px solid rgba(0,0,0,0.15);
        transition: all 0.25s ease;
    }
    
    .event-cell:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.2),
            inset 0 0 0 1000px rgba(255,255,255,0.1);
        z-index: 5;
    }
    
    .event-cell .event-title {
        font-size: 1.05em;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .event-cell .event-desc-short {
        font-size: 0.85em;
        line-height: 1.4;
        opacity: 0.9;
    }
    
    /* Wyraźniejsze separatory wierszy */
    #scheduleTable table tbody tr {
        border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    }
    
    #scheduleTable table tbody tr:nth-child(odd) {
        background: rgba(102, 126, 234, 0.03);
    }
    
    #scheduleTable table tbody tr:nth-child(even) {
        background: rgba(118, 75, 162, 0.03);
    }
    
    /* Linie godzinowe - co pełną godzinę mocniejsza linia */
    #scheduleTable table tbody tr:nth-child(2n+1) {
        border-top: 2px solid rgba(102, 126, 234, 0.2);
    }
    
    /* Nagłówek sali - lepsze formatowanie */
    #scheduleTable table th .room-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    #scheduleTable table th .room-name {
        font-size: 1.05em;
    }
    
    #scheduleTable table th .room-info {
        font-size: 0.75em;
        opacity: 0.8;
    }
}

/* ========================================= */
/* Style druku - osobne strony dla dni */
/* ========================================= */

@media print {
    .day-schedule-section {
        page-break-before: always;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .day-schedule-section:first-child {
        page-break-before: auto;
    }
    
    .day-schedule-title {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 12px 20px;
        font-size: 1.3em;
    }
    
    #scheduleTable table th {
        background: #667eea !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .event-cell {
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ========================================= */
/* Style zoomu tabeli na mobilnych */
/* ========================================= */

.zoom-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin: 10px;
}

.zoom-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.zoom-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.zoom-level {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    min-width: 50px;
    text-align: center;
}

.pinch-hint {
    display: none;
    text-align: center;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.85em;
    margin: 5px 10px;
    border-radius: 5px;
}

.table-zoom-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
    box-sizing: border-box;
}

.table-zoom-wrapper {
    transform-origin: top left;
    transition: transform 0.2s ease-out;
    display: block;
    width: max-content;
}

@media (max-width: 900px) {
    .zoom-controls {
        display: flex;
    }
    
    .pinch-hint {
        display: block;
    }
    
    /* Ukryj standardowy wrapper na mobile, używamy zoomu */
    .schedule-wrapper {
        display: none;
    }
    
    .table-zoom-container {
        display: block;
        padding: 5px;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    /* Tabela w trybie zoom - dopasowane style */
    .table-zoom-wrapper {
        overflow: visible;
    }
    
    .table-zoom-wrapper #scheduleTable,
    .table-zoom-wrapper #scheduleTableMobileZoom {
        overflow: visible;
    }
    
    /* Style dla .schedule-table wewnątrz zoom wrappera */
    .table-zoom-wrapper .schedule-table-container {
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-zoom-wrapper .schedule-table {
        min-width: 550px;
        font-size: 11px;
        table-layout: fixed;
        border-collapse: collapse;
    }
    
    .table-zoom-wrapper .schedule-table .time-header,
    .table-zoom-wrapper .schedule-table .time-cell {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        font-size: 10px;
        padding: 3px 2px;
        position: sticky;
        left: 0;
        z-index: 3;
        background: #f0f0f0;
    }
    
    .table-zoom-wrapper .schedule-table .time-header {
        background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
        color: white;
        z-index: 4;
    }
    
    .table-zoom-wrapper .schedule-table .room-header {
        min-width: 85px;
        width: 85px;
        padding: 5px 3px;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
    }
    
    .table-zoom-wrapper .schedule-table .event-cell,
    .table-zoom-wrapper .schedule-table .empty-cell {
        min-width: 85px;
        width: 85px;
        padding: 3px 2px;
    }
    
    .table-zoom-wrapper .schedule-table .event-title {
        font-size: 10px;
        font-weight: 600;
        line-height: 1.15;
        margin-bottom: 1px;
    }
    
    .table-zoom-wrapper .schedule-table .event-time {
        font-size: 8px;
    }
    
    .table-zoom-wrapper .schedule-table .event-host {
        font-size: 7px;
    }
    
    .table-zoom-wrapper .room-group-header {
        padding: 8px 10px;
        font-size: 12px;
        position: sticky;
        left: 0;
    }
    
    /* Kontrolki widoku ukryte na telefonie */
    .view-controls {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .zoom-controls,
    .pinch-hint,
    .table-zoom-container {
        display: none !important;
    }
    
    .schedule-wrapper {
        display: block !important;
    }
}

@media print {
    .zoom-controls,
    .pinch-hint {
        display: none !important;
    }
}

/* ========================================
   SELEKTOR MOTYWÓW
   ======================================== */

/* Stary selektor (nieużywany) */
.theme-selector {
    display: none;
}

/* Selektor motywu w footerze */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
}

.footer-theme-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-theme-selector label {
    font-weight: 600;
    color: inherit;
}

.footer-theme-selector select {
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    font-size: 0.9em;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.footer-theme-selector select:focus {
    outline: none;
    border-color: white;
}

/* Hint przy nagłówku "Co się dzieje teraz" */
.click-hint {
    font-size: 0.6em;
    font-weight: normal;
    opacity: 0.7;
}

.current-events:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.current-events {
    transition: all 0.2s ease;
}

/* Style dla różnych motywów - footer */
body.theme-dark .footer-theme-selector select {
    background: #2d2d4d;
    color: #e0e0e0;
    border-color: #4a4a6a;
}

body.theme-noir .footer-theme-selector select {
    background: #E8DDCE;
    color: #28241D;
    border: 2px solid #8b7355;
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

body.theme-noir .footer-theme-selector label {
    color: #E8DDCE;
}

body.theme-pastel .footer-theme-selector select {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e5989b;
}

body.theme-neon .footer-theme-selector select {
    background: #1a0a2e;
    color: #ff00ff;
    border: 2px solid #ff00ff;
}

body.theme-neon .footer-theme-selector label {
    color: #ff00ff;
}

/* Stary pływający selektor - wyłączony */
.theme-selector-fixed {
    display: none;
}
    color: #ff00ff;
    border-color: #ff00ff;
}

.theme-selector label {
    font-weight: 600;
    color: white;
}

.theme-selector select {
    padding: 8px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    font-size: 0.95em;
    cursor: pointer;
    font-weight: 500;
}

.theme-selector select:focus {
    outline: none;
    border-color: white;
}

/* ========================================
   MOTYW: CIEMNY (DARK)
   ======================================== */

body.theme-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.theme-dark .container {
    background: #0f0f23;
    color: #e0e0e0;
}

body.theme-dark header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

body.theme-dark header h1,
body.theme-dark header label,
body.theme-dark .current-time {
    color: #e0e0e0;
}

body.theme-dark .view-toggle button {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #3d3d5c;
}

body.theme-dark .view-toggle button.active {
    background: #e94560;
    color: white;
}

body.theme-dark .mobile-event {
    background: #1a1a2e;
    border-color: #3d3d5c;
    color: #e0e0e0;
}

body.theme-dark .mobile-event-title {
    color: #fff;
}

body.theme-dark .time-block-header {
    background: #16213e;
    color: #e0e0e0;
}

body.theme-dark .current-events {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

body.theme-dark .search-section {
    background: rgba(255,255,255,0.05);
}

body.theme-dark .search-section input {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #3d3d5c;
}

body.theme-dark .search-results-count {
    color: #9e9e9e;
}

body.theme-dark .search-result-item {
    background: #1a1a2e;
    border: 1px solid #3d3d5c;
}

body.theme-dark .search-result-title {
    color: #e0e0e0;
    text-shadow: none;
}

body.theme-dark .search-result-body {
    color: #c0c0c0;
}

body.theme-dark .search-result-time {
    color: #8a9eff;
}

body.theme-dark .search-result-presenter,
body.theme-dark .search-result-desc {
    color: #a0a0a0;
}

body.theme-dark .search-result-footer {
    background: #151528;
    border-top-color: #3d3d5c;
}

body.theme-dark .search-more-link {
    color: #8a9eff;
}

body.theme-dark .search-result-highlight {
    background: #5c4d00;
    color: #ffe066;
}

body.theme-dark .search-no-results {
    color: #888;
}

body.theme-dark .attraction-card {
    background: #1a1a2e;
    border-color: #3d3d5c;
}

body.theme-dark .attraction-card-body {
    color: #e0e0e0;
}

body.theme-dark .schedule-table th {
    background: #16213e;
    color: #e0e0e0;
}

body.theme-dark .schedule-table td {
    background: #0f0f23;
    color: #e0e0e0;
    border-color: #3d3d5c;
}

/* ========================================
   MOTYW: NOIR (GAZETA)
   ======================================== */

@font-face {
    font-family: 'IMFePIrm29P';
    src: url('https://kucykon.pl/resources/font/IMFePIrm29P.ttf') format('truetype');
}

@font-face {
    font-family: 'UnifrakturMaguntia';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/unifrakturmaguntia/v22/WWXPlieVYwiGNomYU-ciRLRvEmK7oaVemGZM.woff2) format('woff2');
}

body.theme-noir {
    background: #E8DDCE;
    font-family: 'IMFePIrm29P', 'IM Fell English', Georgia, serif;
    padding: 10px;
}

body.theme-noir .container {
    background-color: #E8DDCE;
    background-image:
        radial-gradient(ellipse at 15% 85%, rgba(130, 110, 80, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(181, 163, 131, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
    border: 2px solid #28241D;
    border-radius: 0;
    box-shadow:
        5px 8px 15px rgba(0, 0, 0, 0.15),
        -2px -2px 8px rgba(0, 0, 0, 0.08);
    filter: sepia(0.1) contrast(1.02) brightness(0.98);
}

body.theme-noir header {
    background: #E8DDCE;
    border-bottom: 3px double #28241D;
    padding: 20px;
}

body.theme-noir header h1 {
    font-family: 'UnifrakturMaguntia', 'IM Fell English SC', cursive;
    color: #28241D;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-size: 2.5em;
    font-weight: normal;
    letter-spacing: 0.02em;
}

body.theme-noir header label,
body.theme-noir .current-time,
body.theme-noir .current-time div {
    color: #28241D;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

body.theme-noir .theme-selector label {
    color: #28241D;
}

body.theme-noir .theme-selector {
    background: rgba(40, 36, 29, 0.1);
    border: 1px solid #28241D;
}

body.theme-noir .view-toggle {
    background: rgba(40, 36, 29, 0.05);
}

body.theme-noir .view-toggle button {
    background: #E8DDCE;
    color: #28241D;
    border: 2px solid #28241D;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-noir .view-toggle button:hover {
    background: #28241D;
    color: #E8DDCE;
}

body.theme-noir .view-toggle button.active {
    background: #28241D;
    color: #E8DDCE;
}

body.theme-noir .mobile-event {
    background: #f9f6f0;
    border: 1px solid #28241D;
    border-left: 4px solid #28241D;
    border-radius: 0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

body.theme-noir .mobile-event.full-width {
    background: linear-gradient(135deg, #8b7355 0%, #5a4530 100%);
    border: 2px solid #28241D;
    border-left: 4px solid #28241D;
    color: #f9f6f0;
}

body.theme-noir .mobile-event.full-width .mobile-event-title {
    color: #f9f6f0;
}

body.theme-noir .mobile-event.full-width .mobile-event-room {
    color: #E8DDCE;
}

body.theme-noir .mobile-event-title {
    color: #28241D;
    font-family: 'IMFePIrm29P', Georgia, serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-noir .mobile-event-room {
    color: #5a5a5a;
    font-family: 'Courier New', monospace;
}

body.theme-noir .time-block-header {
    background: #28241D;
    color: #E8DDCE;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 0;
}

body.theme-noir .time-block-header.current {
    background: #8b7355;
}

body.theme-noir .current-events {
    background: #f9f6f0;
    border: 3px double #28241D;
    border-radius: 0;
}

body.theme-noir .current-events h2 {
    color: #28241D;
    font-family: 'IMFePIrm29P', Georgia, serif;
    border-bottom: 2px solid #28241D;
    padding-bottom: 10px;
}

body.theme-noir .search-section {
    background: rgba(40, 36, 29, 0.05);
    border: 1px solid #28241D;
    border-radius: 0;
}

body.theme-noir .search-section h3 {
    color: #28241D;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

body.theme-noir .search-section input {
    background: #f9f6f0;
    color: #28241D;
    border: 2px solid #28241D;
    border-radius: 0;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

body.theme-noir .search-section button {
    background: #28241D;
    color: #E8DDCE;
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

body.theme-noir .search-results-count {
    color: #28241D;
}

body.theme-noir .search-result-item {
    background: #f9f6f0;
    border: 2px solid #28241D;
    border-radius: 0;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}

body.theme-noir .search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

body.theme-noir .search-result-header {
    background: #28241D !important;
}

body.theme-noir .search-result-title {
    color: #E8DDCE;
    font-family: 'IMFePIrm29P', Georgia, serif;
    text-shadow: none;
}

body.theme-noir .search-result-body {
    color: #28241D;
}

body.theme-noir .search-result-time {
    color: #6d5a3a;
}

body.theme-noir .search-result-room {
    border: 1px solid #28241D;
}

body.theme-noir .search-result-desc {
    color: #4a3f30;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

body.theme-noir .search-result-footer {
    background: #f0ebe0;
    border-top: 1px solid #d4c8b0;
}

body.theme-noir .search-more-link {
    color: #6d5a3a;
    font-family: 'Courier New', monospace;
}

body.theme-noir .search-result-highlight {
    background: #e8d5a0;
}

body.theme-noir .search-no-results {
    color: #28241D;
}

body.theme-noir .attraction-card {
    background: #f9f6f0;
    border: 2px solid #28241D;
    border-radius: 0;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}

body.theme-noir .attraction-card-header {
    background: #28241D !important;
    border-radius: 0;
}

body.theme-noir .attraction-card-title {
    font-family: 'IMFePIrm29P', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E8DDCE; /* jasny tekst na ciemnym tle */
}

body.theme-noir .attraction-card-body {
    color: #28241D;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

/* Jasny tekst na ciemnym tle - badge'e i nagłówki */
body.theme-noir .venue-badge,
body.theme-noir .room-badge {
    color: #28241D; /* ciemny tekst na jasnym badge */
}

body.theme-noir .mobile-day-name,
body.theme-noir .mobile-day-venue,
body.theme-noir .attractions-day-name,
body.theme-noir .attractions-day-venue {
    color: #E8DDCE; /* jasny tekst na ciemnym tle */
}

body.theme-noir .now-badge {
    background: #E8DDCE;
    color: #28241D;
}

body.theme-noir .schedule-table {
    border: 2px solid #28241D;
}

body.theme-noir .schedule-table th {
    background: #28241D;
    color: #E8DDCE;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-noir .schedule-table td {
    background: #f9f6f0;
    color: #28241D;
    border: 1px solid #8b7355;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

body.theme-noir .schedule-table td:first-child {
    background: #E8DDCE;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

body.theme-noir .site-footer {
    background: #28241D;
    border-top: 3px double #8b7355;
    color: #E8DDCE; /* jasny tekst na ciemnym tle */
}

body.theme-noir .site-footer p {
    color: #E8DDCE;
}

body.theme-noir .grid-day-btn {
    background: #28241D;
    color: #E8DDCE;
    border: 2px solid #28241D;
    border-radius: 0;
    font-family: 'Courier New', monospace;
}

body.theme-noir .grid-day-btn.active {
    background: #8b7355;
    border-color: #8b7355;
}

body.theme-noir .multiday-selectors {
    background: rgba(40, 36, 29, 0.05);
    border: 1px solid #28241D;
}

body.theme-noir select {
    background: #f9f6f0;
    color: #28241D;
    border: 2px solid #28241D;
    border-radius: 0;
    font-family: 'IMFePIrm29P', Georgia, serif;
}

/* ========================================
   MOTYW: PASTELOWY
   ======================================== */

body.theme-pastel {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffecd2 100%);
}

body.theme-pastel .container {
    background: #fff5f5;
    border-radius: 25px;
}

body.theme-pastel header {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body.theme-pastel header h1 {
    color: #5c6bc0;
}

body.theme-pastel .view-toggle button {
    background: white;
    color: #7986cb;
    border: 2px solid #b39ddb;
    border-radius: 25px;
}

body.theme-pastel .view-toggle button.active {
    background: linear-gradient(135deg, #b39ddb 0%, #7986cb 100%);
    color: white;
}

body.theme-pastel .mobile-event {
    background: white;
    border-radius: 15px;
    border: 2px solid #e1bee7;
}

body.theme-pastel .time-block-header {
    background: linear-gradient(135deg, #b39ddb 0%, #ce93d8 100%);
    color: white;
    border-radius: 15px;
}

body.theme-pastel .current-events {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 20px;
}


/* Pastel theme search results */
body.theme-pastel .search-result-item {
    background: #fff5f5;
    border: 1px solid #ffd6d6;
}
body.theme-pastel .search-result-title {
    color: #4a4a4a;
}
body.theme-pastel .search-result-footer {
    background: #fff0f0;
    border-top-color: #ffd6d6;
}
body.theme-pastel .search-result-highlight {
    background: #ffe0b2;
}
body.theme-pastel .search-results-count {
    color: #888;
}

body.theme-pastel .attraction-card {
    border-radius: 20px;
    border: 2px solid #e1bee7;
}

body.theme-pastel .schedule-table th {
    background: linear-gradient(135deg, #b39ddb 0%, #7986cb 100%);
}

body.theme-pastel .schedule-table td {
    border-color: #e1bee7;
}

/* ========================================
   MOTYW: NEON
   ======================================== */

body.theme-neon {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #0c0c0c 100%);
}

body.theme-neon .container {
    background: #0c0c0c;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.2);
}

body.theme-neon header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    border-bottom: 2px solid #00ffff;
}

body.theme-neon header h1 {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

body.theme-neon header label,
body.theme-neon .current-time {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

body.theme-neon .theme-selector label {
    color: #ff00ff;
}

body.theme-neon .view-toggle button {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

body.theme-neon .view-toggle button:hover {
    box-shadow: 0 0 15px #00ffff;
}

body.theme-neon .view-toggle button.active {
    background: #00ffff;
    color: #0c0c0c;
    box-shadow: 0 0 20px #00ffff;
}

body.theme-neon .mobile-event {
    background: #1a1a2e;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

body.theme-neon .mobile-event-title {
    color: #fff;
    text-shadow: 0 0 5px #ff00ff;
}

body.theme-neon .time-block-header {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
    color: #00ffff;
    border: 1px solid #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

body.theme-neon .time-block-header.current {
    background: #ff00ff;
    color: #0c0c0c;
    box-shadow: 0 0 20px #ff00ff;
}

body.theme-neon .current-events {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

body.theme-neon .current-events h2 {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}


/* Neon theme search results */
body.theme-neon .search-result-item {
    background: #0a0a2e;
    border: 1px solid #39ff14;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}
body.theme-neon .search-result-item:hover {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}
body.theme-neon .search-result-title {
    color: #39ff14;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}
body.theme-neon .search-result-body {
    color: #c0c0c0;
}
body.theme-neon .search-result-time {
    color: #ff6ec7;
}
body.theme-neon .search-result-desc {
    color: #999;
}
body.theme-neon .search-result-footer {
    background: #050520;
    border-top-color: #39ff14;
}
body.theme-neon .search-more-link {
    color: #39ff14;
}
body.theme-neon .search-result-highlight {
    background: #ff6ec7;
    color: #000;
}
body.theme-neon .search-results-count {
    color: #39ff14;
}

body.theme-neon .attraction-card {
    background: #1a1a2e;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body.theme-neon .attraction-card-body {
    color: #e0e0e0;
}

body.theme-neon .schedule-table th {
    background: #2d1b4e;
    color: #00ffff;
    border: 1px solid #ff00ff;
    text-shadow: 0 0 5px #00ffff;
}

body.theme-neon .schedule-table td {
    background: #0c0c0c;
    color: #e0e0e0;
    border: 1px solid #3d3d5c;
}

body.theme-neon .site-footer {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
    border-top: 2px solid #ff00ff;
}

body.theme-neon select {
    background: #1a1a2e;
    color: #00ffff;
    border: 2px solid #00ffff;
}

body.theme-neon .grid-day-btn {
    background: transparent;
    color: #ff00ff;
    border: 2px solid #ff00ff;
}

body.theme-neon .grid-day-btn.active {
    background: #ff00ff;
    color: #0c0c0c;
    box-shadow: 0 0 15px #ff00ff;
}


/* ========== WIDOK "TERAZ" ========== */
.now-section {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.now-section.hidden {
    display: none;
}

.venues-view-section.hidden {
    display: none;
}

.now-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 65, 108, 0.3);
}

.now-header h2 {
    font-size: 1.8em;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.now-time {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.now-current, .now-upcoming {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.now-upcoming-header {
    margin: 30px 0 15px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.now-upcoming-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.now-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.now-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.now-card-cancelled {
    opacity: 0.6;
    border: 3px dashed #dc3545;
}

.now-cancelled-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    z-index: 5;
}

.now-card-top {
    padding: 16px 18px;
    position: relative;
}

.now-card-top-upcoming {
    padding: 12px 18px;
}

.now-card-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.now-live-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: now-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,0,0,0.6);
}

@keyframes now-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.now-card-starts-in {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.9;
}

.now-card-title {
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.3;
}

.now-card-body {
    padding: 14px 18px;
}

.now-card-room {
    padding: 6px 0 6px 12px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: #444;
}

.now-card-time {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 6px;
}

.now-card-presenter {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 6px;
    font-style: italic;
}

.now-card-desc {
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.now-card-progress {
    margin-top: 12px;
}

.now-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.now-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.now-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.78em;
    color: #888;
    margin-top: 4px;
}

.now-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.now-empty-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.now-empty p {
    font-size: 1.1em;
    color: #666;
    margin: 5px 0;
}

.now-empty-hint {
    color: #999 !important;
    font-size: 0.9em !important;
}

/* Now view - button style */
.view-toggle button#btnNow {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-weight: 600;
}

.view-toggle button#btnNow.active {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

/* Dark theme */
body.theme-dark .now-header {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

body.theme-dark .now-card {
    background: #2c2c2c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.theme-dark .now-card-body {
    color: #ddd;
}

body.theme-dark .now-card-room { color: #bbb; }
body.theme-dark .now-card-time { color: #999; }
body.theme-dark .now-card-desc { color: #aaa; border-top-color: #444; }
body.theme-dark .now-empty { background: #333; }
body.theme-dark .now-empty p { color: #bbb; }
body.theme-dark .now-progress-bar { background: #444; }

/* Noir theme */
body.theme-noir .now-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #e94560;
}

body.theme-noir .now-card {
    background: #1a1a2e;
    border: 1px solid #333;
}

body.theme-noir .now-card-body { color: #ccc; }
body.theme-noir .now-card-room { color: #aaa; }
body.theme-noir .now-card-time { color: #888; }
body.theme-noir .now-card-desc { color: #999; border-top-color: #333; }
body.theme-noir .now-empty { background: #1a1a2e; border: 1px solid #333; }

/* Neon theme */
body.theme-neon .now-header {
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    box-shadow: 0 0 30px rgba(255,0,255,0.4);
}

body.theme-neon .now-card {
    background: #0a0a2e;
    border: 1px solid rgba(0,255,255,0.3);
}

body.theme-neon .now-live-dot {
    background: #ff00ff;
    box-shadow: 0 0 15px rgba(255,0,255,0.8);
}

/* Mobile */
@media (max-width: 768px) {
    .now-section {
        padding: 10px;
    }
    
    .now-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .now-header h2 {
        font-size: 1.3em;
    }
    
    .now-time {
        font-size: 2em;
    }
    
    .now-current, .now-upcoming {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .now-card-title {
        font-size: 1em;
    }
    
    .now-card-body {
        padding: 10px 14px;
    }
}
