:root {
    --primary-blue: #4B87FF;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --list-color: rgba(0, 0, 0, 0.2);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body {
    font-family: 'Nunito Sans', 'Roboto', 'Noto Sans', sans-serif;
    margin: 0;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #071028;
}



.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.85)
    ),
    url('kcz-bg2.png') no-repeat;
    background-size: auto 100vh; */
}


.floor-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding-left: 30px;
    padding-right: 30px;
    position: relative;
    min-height: 80px;
    transition: all 0.5s ease-in-out;
    transform-origin: top;
}

/* Zmieniona reguła dla ukrytego headera */
.floor-header[style*="visibility: hidden"] {
    opacity: 0;
    transform: translateY(-100%);
    margin: 0;
    min-height: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
}

.logo-container {
    position: relative;
    flex: 0 0 auto;
    margin-right: 30px;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}

body.preview-mode .logo-container {
    top: 40px;
    left: 40px;
}

body.preview-mode .logo {
    height: 120px;
}

.floor-title {
    flex: 1;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: left;
    padding-left: 50px;
    margin-left: 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 100px;
    height: 100px;
    overflow: hidden;
}

.pixo-logo {
    height: 40px;
    margin-left: auto;
}

.rooms-panel {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1rem;
    padding-top: 10px;
    margin-bottom: 0.5em;
    z-index: 999;
    margin-top: 0;
}

.rooms-list {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-header {
    padding: 1rem;
    color: white;
}

.list-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.room-card {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 10px 10px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.room-number {
    padding: 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 3rem;
    width: 120px;
    letter-spacing: 0.1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.room-content {
    position: relative;
    padding-right: 100px;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: opacity 0.3s ease;
    padding-left: 12px;
    margin-top: 0;
    top: 0;
}

.room-content:last-child {
    margin-bottom: 0;
}

.active-room {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.room-status-container {
    text-align: right;
}

.room-hours {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.room-status {
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.additional-panel {
    height: 600px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: none !important;
}

.clock-panel {
    height: 500px !important;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.clock-widget {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    height: 100%;
    width: 100%;
}

.clock-time {
    font-size: 22rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: -20px;
    margin-top: -20px;
}

.clock-date {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 10px;
}

.clock-url {
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 10px;
}

.info-widget {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(52, 120, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

.room-content-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 0;
    padding-top: 0;
}

.room-name {
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 2.3rem;
    margin-bottom: 5px;
    margin-top: 3px;
    letter-spacing: 0.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.status-badge {
    float: right;
    padding: 5px 10px;
    margin-left: 10px;
    margin-top: 5px;
    background-color: #00ff08;
    color: rgb(0, 0, 0);
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 1;
    text-shadow: none;
    font-weight: 900;
}

.status-badge-circle {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    margin-left: 10px;
    margin-top: 5px;
}

.badge-open {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.badge-closed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.inactive-room {
    opacity: 0.6;
}

.inactive-room .room-name {
    color: rgba(255, 255, 255, 0.7);
}

.room-hours {
    font-weight: 300;
    font-size: 1.23rem;
    color: rgba(255, 255, 255, 0.7);
}

.inactive-room .room-hours {
    color: rgba(255, 255, 255, 0.5);
}

.room-hours i {
    margin-right: 5px;
    font-size: 1rem;
}

.info-panel {
    height: calc(100vw * 9/16);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 3fr;
    padding: 20px 40px;
    gap: 40px;
}

.info-badge {
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 2rem;
    text-align: center;
    grid-column: 1;
    height: fit-content;
    width: 100%;
    display: block;
    box-sizing: border-box;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.info-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Jeszcze węższy pasek dla szybkości */
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2)); /* Bardziej subtelny gradient */
    animation: superQuickShine 5s linear infinite; /* Jeszcze szybsza animacja */
    z-index: 1;
    transform: skewX(-20deg); /* Mniejszy kąt nachylenia */
}

@keyframes superQuickShine {
    0% {
        transform: translateX(-300%) skewX(-20deg); /* Bliżej start */
        opacity: 0.3;
    }
    100% {
        transform: translateX(300%) skewX(-20deg); /* Bliżej koniec */
        opacity: 0.4;
    }
}

.info-icon-container {
    grid-column: 1;
    align-self: top;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.info-content {
    color: white;
    /* font-size: 2.8rem; */
    font-weight: 300;
    /* line-height: 1em;  */
    grid-column: 2;
    align-self: top;
    
}

.info-content h2 {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 4px;
    letter-spacing: 0.05rem;
    line-height: 1;
    padding-bottom: 30px;
    text-transform: uppercase;
    margin-top: 8px;
}

.info-email {
    font-weight: 600;
    color: white;
    display: block;
    margin-top: 10px;
}

.info-badge-icon {
    font-size: 8rem;
    margin-top: 200px !important;
    color: white;
    position: absolute;
    animation: slideIcon 10s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes slideIcon {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    8% {
        opacity: 1;
        transform: translateX(5px);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    72% {
        opacity: 1;
        transform: translateY(0px);
    }
    75% {
        opacity: 1;
        transform: translateY(-10px);
    }
    80% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 0;
        transform: translateY(100px);
    }
}

.room-person {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.room-person i {
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.panels-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vw * 9/16);
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 10%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.panels-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.panel-slide {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.panel-slide.current {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0);
    z-index: 2;
}

.panel-slide.previous {
    transform: translateX(-100%);
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.panel-slide.next {
    transform: translateX(100%);
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.panels-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.panel-slide.clock-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: none !important;
}

.info-badge-container {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-message {
    color: #ff5252;
    padding: 20px;
    text-align: center;
}

.facebook-panel .info-content {
    display: flex;
    justify-content: center;
    align-items: top;
    padding: 0px;
}

.fb-post-content {
    width: 100%;
    padding: 0;
    position: relative;
}

.fb-message {
    font-size: 1.3rem;
    line-height: 1.3;
    color: white;
    margin: 0;
    align-self: top;
    max-height: 488px;
    height: 488px;
}

.fb-image {
    float: right;
    width: 45%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-left: 20px;
    margin-bottom: 20px;
}

.fb-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    clear: both;
    padding: 20px;
    padding-left: 0px;
    padding-bottom: 110px;
    z-index: 10;
    width: 100%;
}

.fb-link strong {
    color: white;
}

.fb-link:hover {
    color: white;
}

.fb-page-name {
    color: rgba(255,255,255,0.7);
    font-size: 1.6rem;
    margin-top: -10px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 4320px; /* 4 x 1080px (szerokość ekranu) */
    height: 1920px; /* wysokość ekranu */
    z-index: -1;
    background-image: url('');
    background-repeat: no-repeat;
    transition: transform 0.5s ease-in-out;
}


.image-panel {
    display: block !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    position: relative;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-title {
    position: absolute;
    top: 40px;
    left: 0;
    padding: 15px 30px;
    padding-left: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2.2rem;
    font-weight: 500;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 2;
}

/* Dodaj nowe style dla miniclock */
.miniclock-panel {
    height: 200px !important; /* Połowa standardowej wysokości */
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.85),
        transparent
    );
}

.miniclock-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.miniclock-time {
    font-size: 10rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.miniclock-date {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-light);
    text-align: right;
}

#sidebar {
    background: #343a40;
    color: #fff;
    width: 250px;
    transition: width 0.3s;
}

#sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

#content {
    transition: margin-left 0.3s;
}

.fb-message-content {
    max-height: 490px;
    height: auto !important;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.fb-title {
    font-weight: 700;
}

/* Style dla input group z color pickerem */
.input-group.has-color-picker {
    display: grid !important;
    grid-template-columns: 4fr 38px !important;
    gap: 5px !important;
}

.input-group.has-color-picker .form-control {
    width: 100% !important;
}

.input-group.has-color-picker .form-control-color {
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 4px !important;
}

/* Style dla panelu pogody */
.weather-content {
    display: flex;
    flex-direction: column;
}

.weather-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-top: -40px;
}

.weather-temperature {
    font-size: 13rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    flex-shrink: 0;
    align-self: top;
    margin-top: 60px;
}

.weather-details {
    margin-top: 50px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}
.weather-temperature-unit {
    font-size: 5rem;
    top: -100px;
    position: relative;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.weather-icon-container {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9) !important;
    width: 60px !important;
    text-align: center;
}

.weather-detail {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    height: 30px !important;
    line-height: 1.2em;
}


.weather-forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-right: 50px;
}

.forecast-time {
    font-size: 2rem;
}

.weather-forecast-item .weather-icon {
    font-size: 3rem;
    color: #f1c40f;
    line-height: 1;
    height: 2rem;
}

.forecast-temp {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
}

/* Aktualizacja styli dla ikon pogody */
.weather-forecast-item img {
    width: 50px;
    height: 50px;
}

.weather-detail img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.edit-view {
    cursor: pointer; 
}
.edit-view:hover small {
    background-color: #003eb0 !important;
    transition: background-color 0.3s;
    color: white;
    text-decoration: underline;
}


.qr-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    height: 100%;
}

.qr-title-active {
    color: #ffc400 !important;
}

.qr-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-weight: 300;
}

#player {
    margin: auto;
    margin-top: 40px;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    position: relative;
}

#player {
    margin: 0 auto;
    margin-bottom: 40px;  /* Dodane odstęp pod playerem */
    background-color: #00000065;
}

.qr-header {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    width: 100%;
}

.qr-header h1 {
    font-size: 2rem;
    font-weight: 500;
    width: 100%;
    margin: 0;
    padding: 20px 0;
    text-transform: uppercase;
}

.qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 20px;
    width: 100%;
    margin: auto;
}

.sound-message {
    position: absolute;
    top: 250px;  /* Zmienione z 50% */
    left: 50%;
    transform: translateX(-50%);  /* Zmienione, usunięte translateY */
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    z-index: 1000;
    font-family: 'Nunito Sans', 'Roboto', sans-serif;
}

.sound-message-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    white-space: nowrap;
}

.sound-message-content i {
    font-size: 24px;
    color: #ffc400;
} 

.sortable-ghost {
    opacity: 0.5;
    background: #f8f9fa;
}

.sortable-chosen {
    background: #e9ecef;
}

.sortable-drag {
    opacity: 0.9;
}

.handle {
    cursor: grab;
}

.handle:active {
    cursor: grabbing;
}

/* Style dla zakładek */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: 1px solid transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: rgba(13, 110, 253, 0.1);
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link.active.bg-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd;
}

.card-header-tabs {
    margin-right: -1rem;
    margin-bottom: -0.5rem;
    margin-left: -1rem;
    border-bottom: 0;
}

.nav-link.text-dark:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

/* Usuń poprzednie style .navs */
.navs, .navs-tabs, .navs-item, .navs-link {
    display: none;
}

/* Style dla zakładek i ich zawartości */
.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

/* Style dla przycisków przesuwania */
.move-up, .move-down {
    padding: 2px 6px;
    font-size: 0.8rem;
    line-height: 1;
    border-radius: 3px;
}

.move-up:hover, .move-down:hover {
    background-color: #e9ecef;
}

/* Ukryj handle na mobile, pokaż przyciski */
@media (max-width: 768px) {
    .handle {
        display: none;
    }
}

/* Ukryj przyciski na desktop, pokaż handle */
@media (min-width: 769px) {
    .move-buttons {
        display: none;
    }
}

/* Style dla układu slideshow */
.slideshow-mode .slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slideshow-mode.has-panels .slideshow-container {
    height: calc(100vh - 40px - (100vw * 9/16));
}

.slideshow-wrapper,
.floor-header.slideshow,
.rooms-container {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.floor-header.slideshow {
    opacity: 1;
    visibility: visible;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.slideshow-container.has-panels {
    height: calc(100vh - 120px - (100vw * 9/16));
}

.rooms-container, .slides-container {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Animacje fade dla slideshow */
.slideshow-slide.fade-in {
    opacity: 1;
    visibility: visible;
    animation: fadeInSlide 0.4s ease-in-out;
}

.slideshow-slide.fade-out {
    opacity: 0;
    visibility: hidden;
    animation: fadeOutSlide 0.4s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.slideshow-content,
.rooms-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    overflow: hidden;
}

.slideshow-content {
    display: flex;
    flex-direction: column;
}

.slides-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
}

.slideshow-image {
    max-width: 95%;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
}

.rooms-content {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    top: 0;
    margin-top: 0;
    padding-top: 0;
}

.slideshow-slide[data-type="lists"] {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    top: 0;
}

.slideshow-slide[data-type="lists"] .rooms-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    margin-top: 0;
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-content,
.rooms-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slideshow-content {
    display: flex;
    flex-direction: column;
}

.slides-container {
    position: relative;
    flex: 1;
    width: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
    visibility: visible;
}

.image-container {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}



.slides-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.rooms-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background: transparent;
    display: block !important;
    overflow: hidden;
}

.floor-header {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.image-slides-container,
.list-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    overflow: hidden;
}

.image-slides-container {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out !important;

}

.list-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* Style dla sub-items */
.sub-items-list {
    margin-top: 10px; /* Zwiększony odstęp od góry */
    padding-left: 0; /* Usunięte wcięcie, siatka sama zarządza odstępami */
    border-left: none; /* Usunięta lewa krawędź, niepotrzebna przy siatce */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Automatyczne dopasowanie kolumn, min. 280px szerokości */
    gap: 5px 15px; /* Odstęp między wierszami i kolumnami */
}

.sub-item-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px; /* Lekko zwiększony padding dla lepszego wyglądu w siatce */
    font-size: 1.4rem; /* Nieco dostosowana czcionka */
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.07); /* Lekkie tło dla każdego elementu */
    border-radius: 4px; /* Zaokrąglone rogi dla każdego elementu */
    min-height: 38px; /* Minimalna wysokość dla spójności */
}

.sub-item-name {
    flex-grow: 1;
    padding-right: 8px;
    line-height: 1;
}

.sub-item-number-tag {
    font-weight: 700; /* Mocniejsze pogrubienie */
    padding: 3px 8px;
    border-radius: 3px;
    background-color: var(--list-color); /* Użycie zmiennej CSS dla koloru tła */
    color: #fff; /* Biały tekst na ciemniejszym tle */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 1.8rem;
    white-space: nowrap;
    font-weight: 800;
}

/* Dodanie nowej klasy .wide dla .room-number */
.room-number.wide {
    width: 230px;
}

/* Nowa klasa dla room-card, gdy room-number jest wide */
.room-card.room-card-wide-layout {
    grid-template-columns: 230px 1fr; /* Dostosuj pierwszą kolumnę do szerokości .wide */
}

/* Style dla paneli obrazkowych */
.image-panel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #000; */
}

.panel-image-fullwidth {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-title-overlay {
    position: absolute;
    bottom: 20px;
    left: -10px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    padding: 12px 20px;
    padding-left: 30px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 40px);
    word-wrap: break-word;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.no-image-placeholder i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-image-placeholder .mt-2 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.no-image-placeholder .mt-1 {
    margin-top: 0.25rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Style dla modułu tekstowego w slideshow */
.text-slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.text-slide-container.text-slide-full {
    flex-direction: column;
    gap: 40px;
}

.text-slide-container.text-slide-split {
    flex-direction: column;
    gap: 10px;
}

.text-slide-element {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative; /* Potrzebne dla pozycjonowania strzałek */
}

.text-slide-main {
    font-size: 8rem;
    font-weight: 700;
    color: white;
    line-height: 1.0;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: inline-block; /* Potrzebne dla inline strzałek */
}

.text-slide-additional {
    font-size: 3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    width: 100%;
}

/* Style dla strzałek - teraz inline z tekstem */
.text-slide-arrow {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: #0066cc; /* Niebieskie tło */
    border-radius: 12px;
    margin-left: 20px;
    vertical-align: baseline; /* Wyrównanie do linii tekstu */
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ikony strzałek w niebieskim kwadracie - skorelowane z 8rem tekstu */
.text-slide-arrow .arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem; /* Skorelowane z 8rem tekstu (full) */
    color: white; /* Biała ikona na niebieskim tle */
    font-weight: 700;
    line-height: 1;
}

/* Animacja dla strzałek inline */
.text-slide-arrow {
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* Style dla daty i godziny */
.text-slide-datetime {
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Dostosowanie dla trybu split (2 elementy) */
.text-slide-container.text-slide-split .text-slide-element {
    min-height: 40vh;
    height: 50%;
}


/* Gdy są panele - dostosuj wysokość elementów split */
.slideshow-mode.has-panels .text-slide-container.text-slide-split .text-slide-element {
    height: calc((100vh - 40px - (100vw * 9/16)) / 2); /* Połowa dostępnej wysokości bez paneli */
    min-height: auto;
}

.text-slide-container.text-slide-split .text-slide-main {
    font-size: 6rem;
}

.text-slide-container.text-slide-split .text-slide-additional {
    font-size: 2.5rem;
}

/* Ikony dla split (skorelowane z 6rem tekstu) */
.text-slide-container.text-slide-split .text-slide-arrow {
    width: 75px;
    height: 75px;
    background: #0066cc; /* Niebieskie tło dla split */
}

.text-slide-container.text-slide-split .text-slide-arrow .arrow-icon {
    font-size: 3.5rem; /* Skorelowane z 6rem tekstu (split) */
    color: white; /* Biała ikona na niebieskim tle */
}

/* Horizontal mode - split mniejszy o 1rem (5rem zamiast 6rem) */
body.landscape-mode .text-slide-container.text-slide-split .text-slide-main {
    font-size: 5rem;
}

body.landscape-mode .text-slide-container.text-slide-split .text-slide-arrow {
    width: 65px;
    height: 65px;
    background: #0066cc; /* Niebieskie tło dla horizontal split */
}

body.landscape-mode .text-slide-container.text-slide-split .text-slide-arrow .arrow-icon {
    font-size: 3rem; /* Skorelowane z 5rem tekstu (split horizontal) */
    color: white; /* Biała ikona na niebieskim tle */
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 1280px) {
    /* Full text-slide (jeden element) - 8rem */
    .text-slide-main {
        font-size: 8rem;
    }
    
    .text-slide-additional {
        font-size: 2.5rem;
    }
    
    /* Split text-slide (dwa elementy) - 6rem */
    .text-slide-container.text-slide-split .text-slide-main {
        font-size: 6rem;
    }
    
    .text-slide-container.text-slide-split .text-slide-additional {
        font-size: 2rem;
    }
    
    /* Ikony dla split w media query */
    .text-slide-container.text-slide-split .text-slide-arrow {
        width: 75px;
        height: 75px;
        background: #0066cc; /* Niebieskie tło dla split w media query */
    }
    
    .text-slide-container.text-slide-split .text-slide-arrow .arrow-icon {
        font-size: 3.5rem;
        color: white; /* Biała ikona na niebieskim tle */
    }
}


