/*!
 * HotPocket by BTHLabs (https://hotpocket.app/)
 * Copyright 2025-present BTHLabs <contact@bthlabs.pl> (https://bthlabs.pl/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
html {
    background-color: var(--bs-tertiary-body-bg);
}

body, html {
    height: 100vh;
}

body > .ui-viewport {
    padding-top: 3.5rem;
}

body.ui-js-enabled .ui-noscript-show {
    display: none;
}

body:not(.ui-js-enabled) .ui-noscript-hide {
    display: none;
}

#navbar .ui-navbar-brand > img {
    border-radius: 20%;
    height: 1.5rem;
    vertical-align: top;
}

.ui-save-card {
    height: 100%;
}

.spinner-border.ui-htmx-indicator {
    display: none;
}

.spinner-border.ui-htmx-indicator.htmx-request {
    display: block;
}

.ui-actions-menu-trigger {
    background-color: transparent;
    border-color: transparent;
    outline-color: transparent;
}

.ui-actions-menu-trigger::after {
    display: none !important;
}

#button-bar .nav-link {
    font-size: 2rem;
    line-height: 1;
}

@media screen and (max-width: 767px) {
    #button-bar .navbar-nav {
        flex-direction: row;
    }
}

@supports (-webkit-touch-callout: none) {
    body, html {
        height: -webkit-fill-available;
    }

    body {
        overscroll-behavior: none;
    }
}

body.ui-mode-standalone #button-bar {
    padding-bottom: 1rem;
}

body.ui-mode-standalone #offcanvas-controls .offcanvas-body {
    padding-bottom: 1.5rem;
}

.ui-messages:empty {
    display: none;
}

.ui-uname {
    font-size: 0.625rem;
}

#BrowseSavesView-Search .form-select {
    min-width: 10rem;
}

#navbar .ui-inline-create-save-form {
    bottom: 0px;
    right: 0px;
    top: 0px;
    width: 500px;
}

@media screen and (max-width: 767px) {
    #navbar .ui-inline-create-save-form {
        right: 0.5rem;
        width: calc(100vw - 0.5rem - 0.5rem);
    }
}

@media screen and (min-width: 768px) {
    #InlineCreateSaveForm {
        position: relative;
    }
}

.ui-login-logo {
    width: 128px;
}

.ui-login-with-oidc-button {
    width: 100%;
}
