/* Sets Custom css classes for the DDRapp */

/* CSS Reset */
/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
    margin: 0;
}

/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: #f5f6fa;
    font-family: Roboto, sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue'
}

/*
  5. Improve media defaults
*/
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/*
  6. Remove built-in form typography styles
*/
input, button, textarea, select {
    font: inherit;
}

/*
  7. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    letter-spacing: 0.1pt;
}

/* End of resets */

/* Bootstrap overrides */
button.btn.btn-outline-secondary:hover {
    background-color: rgb(239, 223, 255);
    border-color: transparent;
}

/* Custom CSS classes */

/* General */
.no-shadow {
    background-color: white; /* Sjednoceni */
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.51);
    border-radius: 4px;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
    font-size: large;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.775) !important;
}

.nav-link:hover, .nav-link:focus {
    text-decoration: none;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.menu-item-active {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    color: inherit; /* use color from nav-link*/
}

#dropdownLanguageMenu {
    min-width: auto;
    max-width: fit-content;
    padding: 0;
}

#dropdownLanguageMenu .small-dropdown-item {
    padding: 4px 8px;
    text-align: center;
}

.navbar-right .nav-link .fa-bell,
.navbar-right .nav-link .fa-user,
.navbar-right .nav-link .lang-text {
    font-size: 1.25rem; /* Icons size */
}

/* Alerts */
.alert-badge {
    position: absolute;
    font-size: 8px !important;
    height: 10px;
    color: white;
    padding: 0 !important;
    border-radius: 50%;
    margin-top: 1px;
    display: flex;
    align-content: center;
    text-align: center;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Index */

/* Console */
.card-img-small {
    height: 100px;
    object-fit: cover;
}

.card-title-icon {
    display: flex;
    align-items: center;
}

/* Sign in */
.form-signin {
    width: 100%;
    margin: auto;
}

.form-signin .link-redirect {
    text-decoration: none !important;
    cursor: pointer;
    color: inherit;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: 5px;
    height: auto;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    height: auto;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Instruments */
.card-img-top {
    height: 20rem;
    object-fit: cover;
    background-repeat: no-repeat;
}

/* Forms */
.btn .fa-save .fa-xmark {
    margin-right: .3rem;
}

.custom-hide {
    display: none;
}

.input-group .form-check-label {
    cursor: pointer;
}

.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
    top: .8rem;
    width: 1.55rem;
    height: 1.55rem;
}

.checkbox-lg .custom-control-label {
    padding-top: 13px;
    padding-left: 6px;
}

.checkbox-xl .custom-control-label::before,
.checkbox-xl .custom-control-label::after {
    top: 1.2rem;
    width: 1.85rem;
    height: 1.85rem;
}

.checkbox-xl .custom-control-label {
    padding-top: 23px;
    padding-left: 10px;
}

/* Valid input styles */
.was-validated .form-control:valid {
    background-color: #d4edda;
    border-color: #28a745;
    font-weight: normal;
}

.was-validated .form-check-input:valid {
    border-color: #28a745;
    color: #28a745;
}

/* Invalid input styles */
.was-validated .form-control:invalid {
    background-color: #f8d7da;
    border-color: #dc3545;
    font-weight: bold;
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
    color: #dc3545;
}

.was-validated .form-check-input:invalid ~ .form-check-label {
    font-weight: bold;
    color: #dc3545;
}

/* Invalid feedback */
.was-validated .form-group .invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    color: #dc3545;
}

.was-validated .form-group.is-invalid .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.was-validated .form-group.is-invalid .invalid-feedback {
    display: block;
    color: #dc3545;
}

/* Hidden invalid feedback */
.was-validated .form-group .invalid-feedback.d-none {
    display: none;
}

.metadata-feedback {
    display: none;
    font-size: 80%;
    width: 100%;
    margin-top: 0.25rem;
}

/* Experiments */
/* Users */
#search-input {
    height: calc(1.5em + 1rem + 2px);
    border-radius: 4px;
    background: none;
}

#filter1Btn {
    height: calc(1.5em + 1rem + 2px);
}

/* PqGrid */
.pq-grid {
    border-radius: 4px;
}

.pq-grid-header-table th {
    letter-spacing: 0.25pt;
    padding: 12px;
    font-size: 1.1rem;
}

.pq-grid-table td {
    letter-spacing: 0.25pt;
    padding: 12px;
}

table.pq-grid-header-table div.pq-td-div {
    font-weight: bold;
    text-decoration: none;
}

#slider-filter {
    margin-bottom: -0.25rem;
}

@media (max-width: 1103.98px) {
    .navbar-expand-custom .navbar-collapse.show {
        display: block;
    }

    .navbar-expand-custom .navbar-toggler {
        display: block;
    }
}

@media (min-width: 1104px) and (max-width: 1200px) {
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }

    .navbar-expand-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .navbar-nav .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }

}