html {
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

}

h1 {
    margin: unset;
}

.tlacitkoOdhlasit {
    background: darkslateblue;
    padding: 30px;
    width: 130px;
    border-radius: 20px;
    align-items: baseline;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.logout {
    color: white;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

.page-header {
    border-bottom: none;
}

-inline-select {
    width: 100%;
}

.no-decorations {
    color: black;
}

.margin-right {
    margin-right: 10px;
}

.qr-center img {
    margin-left: auto;
    margin-right: auto;
}

.navbar-logo {
    height: 46px;
    margin-right: 10px;
}

.margin-auto-vertical {
    margin: auto 0 auto 0;
}


.inline-select .select2-container--bootstrap4 {
    width: 100% !important;
}

.margin-top {
    margin-top: 7px;
}

.table td {
    vertical-align: middle !important;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}


html {
    position: relative;
    min-height: 100%;
}

.footer {
    position: absolute;
    padding-top: 30px;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 0px; /* Vertically center the text there */
}

.login-form {
    margin-top: 10%;
}

pre {
    max-height: 50em;
}

.text-wrap {
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.close {
    padding-top: .60rem !important;
}

.align-items-flex-end {
    align-items: flex-end !important;
}

.mt-2rem {
    margin-top: 2rem !important;
}

.fullscreen-container:fullscreen {
    background-color: white;
    padding: 0 3rem 0 3rem;
}

.fullscreen-container:-webkit-full-screen {
    background-color: white;
}

.fullscreen-container:-moz-full-screen {
    background-color: white;
}

.fullscreen-container {
    background-color: white;
}

.h-em-3 {
    height: 3em;
}

.flex-gap-sm {
    gap: 6px;
}

.select2-selection {
    display: flex !important;
    padding: 0 20px 0 8px !important;
    align-items: center;
    overflow: visible;
    margin: 0 !important;
}


.select2-selection__rendered {
    flex-grow: 1;
    align-self: center;
    margin: 0 !important;
    padding: 3px !important;
}


.select2-selection__clear {
    margin-left: 12px;
    margin-top: 0 !important;
    margin-right: 0 !important;
}

.select2-selection__choice {
    margin-top: 1px !important;
    padding: 0 3px 3px 3px !important;
}

#content {
    transition: all 0.3s;
}

    #content header {
        background: linear-gradient(90deg, #2b375d 0%, #48598e 100%);
        z-index: 100;
    }

#sidebar {
    min-width: 250px;
    transition: all 0.3s;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    background: #2b375d;
}


#sidebar .sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    justify-content: center;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: white !important;
    margin-bottom: 5px;
    text-decoration: none;
}


#sidebar ul li a:hover {
    color: white;
    text-decoration: none !important;
}

#sidebar ul li ul li a {
    border-left: 2px solid white;
    margin-left: 12px;
    font-size: 15px !important;
    padding-left: 30px !important;
      
}

#sidebar ul li ul {
    padding-left: 10px;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #fff;
}

a[data-bs-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

#sidebar ul ul a:hover {
    text-decoration: none;
    background: #273254;
}

#sidebar ul a:hover {
    text-decoration: none;
    background: #273254;
}


.menu-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    top: 10px;
    left: 5px;
}


.menu-btn {
    background: #0092D1;
    margin-top: 10px;
    color: white;
}

.menu-header {
    width: 100%;
    height: 64px;
    background: #0092D1;
}

@media (max-width: 990px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1055;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        margin-left: 0 !important;
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #content {
        width: 100% !important;
    }

    #content.active {
        width: 100% !important;
    }
}

#sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    cursor: pointer;
}

#sidebar-backdrop.active {
    display: block;
}

/* Stats - desktop sidebar: vždy viditelné */

@media (max-width: 990px) {
    /* Sidebar stats zůstávají stejné i na mobilu */
}


.select2-selection__rendered {
    line-height: 31px !important;
}

.select2-container .select2-selection--single {
    height: 37px !important;
}

.select2-selection__arrow {
    height: 34px !important;
}


.btn-warning {
    background-color: rgb(255, 140, 0) !important;
    border-color: rgb(255, 140, 0) !important;
    color: white !important;
}

    .btn-warning:hover {
        background-color: rgb(196, 109, 2) !important; /* Tmavší oranžová */
        border-color: rgb(196, 109, 2) !important;
        color: white !important;
    }

.bg-warning-custom {
    --bs-bg-opacity: 1;
    background-color: rgba(255, 140, 0, var(--bs-bg-opacity)) !important;
}
.custom-link {
    transition: color 0.3s ease; /* Plynulý přechod při změně barvy */
}

.custom-link:hover {
    color: #f8f9fa; /* Například bílá barva pro text při hoveru */
    opacity: 0.8; /* Pokud chcete, aby celý odkaz byl o něco světlejší */
}

/* Skrytí uživatelského profilu a rezervací na desktopových obrazovkách */
#userProfileWrapper {
    display: block;
}

#sidebar.active ~ #userProfileWrapper {
    display: none; /* Hide the user profile wrapper when sidebar is active */
}