/* Set default font size to 14px */
html {
    font-size: 14px;
}

/* Sticky footer layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: 2rem !important;
    flex-shrink: 0;
}

/* Container responsiveness */
@media (min-width: 1400px) {
    .container {
        /* Match xl size */
        max-width: 1140px !important;
    }
}

.navbar {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .navbar .navbar-collapse {
        margin-top: -5px;
        position: relative;
        top: var(--branding-navbar-y-offset, 0);
    }
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    max-width: 170px;
}

.navbar-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 170px;
    max-height: 40px;
    object-fit: contain;
}

.auth-brand-logo {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: min(300px, 100%);
    max-height: 90px;
    object-fit: contain;
}

/* Center navbar links vertically */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

/* End of navbar customization */

/* General styles */

/* Toolbar component */
.toolbar {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toolbar-back-btn {
    border-radius: 50rem !important;
}

.toolbar h1 {
    margin-bottom: 0;
    font-size: 2rem;
}

.toolbar-spacer {
    flex-grow: 1;
    display: none;
}

@media (min-width: 768px) {
    .toolbar {
        flex-direction: row;
        align-items: center;
    }
    
    .toolbar-spacer {
        display: block;
    }
}

.selectize-dropdown-content {
    max-height: 300px !important;
}
