/*
 * Polisfera tenant theme
 * Palette ricavata da https://www.polisfera.it/
 */

:root,
[data-bs-theme="light"] {
    --bs-primary: #00a9cb;
    --bs-primary-rgb: 0, 169, 203;
    --bs-secondary: #00294b;
    --bs-secondary-rgb: 0, 41, 75;

    --osen-primary: #00a9cb;
    --osen-primary-rgb: 0, 169, 203;
    --osen-primary-dark: #00378c;
    --osen-primary-text-emphasis: #00378c;
    --osen-primary-bg-subtle: #beebfc;
    --osen-primary-border-subtle: #c7d3da;

    --osen-secondary: #00294b;
    --osen-secondary-rgb: 0, 41, 75;
    --osen-secondary-dark: #001d35;
    --osen-secondary-text-emphasis: #00294b;
    --osen-secondary-bg-subtle: #eaeff2;
    --osen-secondary-border-subtle: #c7d3da;

    --osen-body-color: #00294b;
    --osen-body-color-rgb: 0, 41, 75;
    --osen-heading-color: #00294b;
    --osen-link-color: #00a9cb;
    --osen-link-color-rgb: 0, 169, 203;
    --osen-link-hover-color: #00294b;
    --osen-link-hover-color-rgb: 0, 41, 75;
    --osen-border-color: #c7d3da;
    --osen-border-color-translucent: #c7d3da;
    --osen-focus-ring-color: rgba(0, 169, 203, 0.28);
}

[data-bs-theme="dark"] {
    --bs-primary: #00a9cb;
    --bs-primary-rgb: 0, 169, 203;
    --bs-secondary: #00294b;
    --bs-secondary-rgb: 0, 41, 75;
    --osen-primary: #00a9cb;
    --osen-primary-rgb: 0, 169, 203;
    --osen-primary-dark: #00378c;
    --osen-primary-bg-subtle: rgba(0, 169, 203, 0.2);
    --osen-secondary: #00294b;
    --osen-secondary-rgb: 0, 41, 75;
}

[data-bs-theme="light"] body {
    color: #00294b;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h1 a,
[data-bs-theme="light"] .hero-content h1,
[data-bs-theme="light"] h1.text-primary {
    color: #00378c !important;
}

[data-bs-theme="light"] h2,
[data-bs-theme="light"] h2 a,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h3 a,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h4 a {
    color: #00294b;
}

[data-bs-theme="light"] h5,
[data-bs-theme="light"] h5 a {
    color: #00a9cb;
}

a:not(.btn) {
    color: #00a9cb;
}

a:not(.btn):hover,
a:not(.btn):focus {
    color: #00294b;
}

.navbar-frontend .nav-link,
.navbar-frontend .topbar-link {
    color: #00294b;
}

.navbar-frontend .nav-link:hover,
.navbar-frontend .nav-link:focus,
.navbar-frontend .nav-link.active,
.navbar-frontend .topbar-link:hover,
.navbar-frontend .topbar-link:focus {
    color: #00a9cb;
}

.btn-primary,
.btn-login {
    --osen-btn-color: #ffffff;
    --osen-btn-bg: #00a9cb;
    --osen-btn-border-color: #00a9cb;
    --osen-btn-hover-color: #ffffff;
    --osen-btn-hover-bg: #00378c;
    --osen-btn-hover-border-color: #00378c;
    --osen-btn-active-color: #ffffff;
    --osen-btn-active-bg: #00378c;
    --osen-btn-active-border-color: #00378c;
    --osen-btn-disabled-color: #ffffff;
    --osen-btn-disabled-bg: #00a9cb;
    --osen-btn-disabled-border-color: #00a9cb;
    background-color: #00a9cb !important;
    border-color: #00a9cb !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-login:hover,
.btn-login:focus,
.btn-login:active {
    background-color: #00378c !important;
    border-color: #00378c !important;
    color: #ffffff !important;
}

.btn-secondary {
    --osen-btn-color: #ffffff;
    --osen-btn-bg: #00294b;
    --osen-btn-border-color: #00294b;
    --osen-btn-hover-color: #ffffff;
    --osen-btn-hover-bg: #00a9cb;
    --osen-btn-hover-border-color: #00a9cb;
    --osen-btn-active-bg: #00a9cb;
    --osen-btn-active-border-color: #00a9cb;
    background-color: #00294b !important;
    border-color: #00294b !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #00a9cb !important;
    border-color: #00a9cb !important;
}

.btn-outline-primary {
    color: #00a9cb !important;
    border-color: #00a9cb !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #ffffff !important;
    background-color: #00378c !important;
    border-color: #00378c !important;
}

.btn-outline-secondary {
    color: #00294b !important;
    border-color: #00294b !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #ffffff !important;
    background-color: #00a9cb !important;
    border-color: #00a9cb !important;
}

.text-primary {
    color: #00a9cb !important;
}

.text-secondary {
    color: #00294b !important;
}

.bg-primary {
    background-color: #00a9cb !important;
}

.bg-secondary {
    background-color: #00294b !important;
}

.border-primary {
    border-color: #00a9cb !important;
}

.border-secondary {
    border-color: #00294b !important;
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate,
.progress-bar,
.page-item.active .page-link,
.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.custom-indicators .active {
    background-color: #00a9cb !important;
    border-color: #00a9cb !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #00a9cb;
    box-shadow: 0 0 0 0.25rem rgba(0, 169, 203, 0.2);
}

.card,
.course-card,
.category-card {
    border-color: #c7d3da;
}

.bg-primary-subtle,
.courses-header-icon,
.categories-header-icon {
    background-color: #beebfc !important;
}

.bg-secondary-subtle {
    background-color: #eaeff2 !important;
}

*::selection {
    color: #ffffff;
    background-color: #00a9cb;
}

*::-moz-selection {
    color: #ffffff;
    background-color: #00a9cb;
}
