:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
}

h1 {
    color: var(--bs-green);
}

.mx-row {
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.mb-0dot3 {
    margin-bottom: 0.3rem!important;
}

.main-logo {
    font-size: 32px;
}

.nav-top .nav-br {
    font-weight: 500;
}

.nav-top a.nav-link
{
    color: var(--bs-body-color);
}

.nav-top a.nav-link.active,
.nav-top a.nav-link:hover
{
    color: var(--bs-green);
}

.nav-footer a.nav-link {
    line-height: 1.2;
}

.nav-footer a i {
    font-size: 20px;
    color: var(--bs-body-bg);
}

.nav-footer a span {
    font-size: 12px;
    color: var(--bs-body-bg);
}

.nav-footer a.active i,
.nav-footer a.active span {
    color: var(--bs-yellow);
}

a.nav-menu i {
    font-size: 20px;
}

a.nav-menu span {
    font-size: 13px;
}

footer a:hover {
    color: var(--bs-green) !important;
}

.form-control:focus {
    box-shadow: none;
}

.accordion-button {
    padding: 8px;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-body-color);
}

.btn-do {
    margin-left: 80px;
}

.form-switch-sm .form-check-input {
    width: 1.7rem;
    height: 1rem;
}
.form-switch-sm .form-check-label {
    font-size: .875em;
}

.form-label,
.form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
    opacity: 0.9;
    /*font-weight: bold;*/
}

.form-floating>label
{
    padding: 1rem 1.25rem;
}

.input-group-lg>.btn {
    font-size: 1rem;
}

input:read-only, textarea:read-only, select:read-only {
    background-color: var(--bs-body-bg);
}

.select2-container .select2-selection--single {
    height: 48px;
}
.select2-selection, .select2-results__option {
    width: 100%;
    padding: 8px 6px;
    height: 48px !important;
}

.select2-icon + .select2.select2-container .select2-selection, .select2-icon + .select2.select2-container .select2-selection {
    color: var(--bs-body-color);
    background-color: var(--bs-form-control-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.select2-icon + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
}
.icon-of-select2 {
    max-height: 28px;
    max-width: 28px;
}
body.bg-dark .select2-container--default .select2-selection--single,
body[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #343a40;
    color: #fff;
    border: 1px solid #6c757d;
}

body.bg-dark .select2-container--default .select2-results > .select2-results__options,
body[data-bs-theme="dark"] .select2-container--default .select2-results > .select2-results__options {
    background-color: #343a40;
    color: #fff;
}

body.bg-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #495057;
    color: #fff;
}

body.bg-dark .select2-container--default .select2-search--dropdown .select2-search__field,
body[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #343a40;
    color: #fff;
    border: 1px solid #6c757d;
}

body.bg-dark .select2-container--default .select2-search--dropdown,
body[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown {
    background-color: #343a40;
}

.container-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 0;
    background-color: var(--bs-body-bg);
}
.container-grid .grid-column {
    aspect-ratio: 1;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--bs-body-bg);
}

.grid-column-title {
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(255,255,255,0) 100%);
}

.rotate-icon {
    transition: transform 0.3s ease;
}
.collapsed .rotate-icon {
    transform: rotate(0deg);
}
.rotate-icon {
    transform: rotate(180deg);
}

#chat-button {
    position: fixed;
    bottom: 70px;
    right: 21px;
    z-index: 1030;
}

#chat-button button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#chat-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    z-index: 1031;
}

#chat-box .card {
    width: 100%;
}

#chat-messages {
    max-height: 160px;
    overflow-y: auto;
}

.message {
    padding: 4px 6px;
    border-radius: 10px;
    margin-bottom: 4px;
    display: block;
    max-width: 80%;
    width: fit-content;
}

.message.user {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
}

.message.bot {
    background-color: #e9ecef;
    color: black;
    align-self: flex-start;
}

#mic-progress {
    position: absolute;
    opacity: 20%;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(rgb(25, 135, 84) 360deg, transparent 0deg);
    transition: background 0.1s linear;
}

.recording {
    color: #198754;
    animation: pulse 1s infinite;
}
#voice-btn {
    border: none !important;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px #198754; }
    25% { text-shadow: 0 0 30px #198754; }
    50% { text-shadow: 0 0 10px #198754; }
    75% { text-shadow: 0 0 30px #198754; }
    100% { text-shadow: 0 0 10px #198754; }
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .container-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .container-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    #chat-messages {
        max-height: 250px;
    }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .container-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    #chat-button {
        bottom: 40px;
        right: 41px;
    }
    #chat-box {
        bottom: 40px;
        right: 40px;
    }
}

/* X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

}

/* XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {

}

/* trick applies to less than 375px (very small)*/
@media (max-width: 374.98px) {
    .card-body {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    .nav-footer a span {
        letter-spacing: -1px;
    }
    .hide-under-375 {
        display: none !important;
    }
}

/* trick applies to less than 320px (very small)*/
@media (max-width: 319.98px) {
    a.nav-menu .card-body {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    .nav-footer a.nav-link {
        line-height: .8;
    }
    .nav-footer a span {
        font-size: 8px;
        letter-spacing: -1px;
    }
    .container-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
