/*
 * Copyright (c) 2024 CAEmate S.r.l.
 * All rights reserved.
 * ------------------------------------
 *
 * NOTICE:  All information contained herein is, and remains the property of CAEmate S.r.l.
 * The intellectual and technical concepts contained herein are proprietary to CAEmate S.r.l.
 * and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material is strictly forbidden
 * unless prior written permission is obtained from CAEmate S.r.l.
 */


/* Root variables */
:root {
    --bs-primary: #7fbb36;
    --bs-primary-rgb: 127, 189, 54;
    --bs-link-color-rgb: 127, 189, 54;
    --bs-link-hover-color-rgb: 127, 189, 54;
}

/* Bootstrap theme overrides */
[data-bs-theme='light'] {
    --bs-body-bg-rgb: 249, 250, 251;
    --bs-tertiary-bg-rgb: 255, 255, 255;
}
.form-control:focus,
.form-select:focus {
    border-color: rgb(127, 187, 54);
    box-shadow: 0 0 0 0.25rem rgba(127, 187, 54, 0.25);
}
.btn-primary {
    --bs-btn-bg: #7fbb36;
    --bs-btn-border-color: #7fbb36;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #457a05;
    --bs-btn-hover-border-color: #457a05;
    --bs-btn-focus-shadow-rgb: 127, 189, 54;
    --bs-btn-active-bg: #457a05;
    --bs-btn-active-border-color: #457a05;
    --bs-btn-disabled-bg: #7fbb36;
    --bs-btn-disabled-border-color: #7fbb36;
}
.form-check-input:checked {
    border-color: #7fbb36;
    background-color: #7fbb36;
}
.form-check-input:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(127, 187, 54, 0.25);
}

/* Keycloak default theme with override classes */
html, body {
    height: 100%;
    font-family: 'Exo', sans-serif;
}

.btn,
.btn-primary {
    background-color: #7fbb36;
    border: none;
}

.btn:hover,
.btn-primary:hover,
.btn:active,
.btn-primary:active,
.btn:focus,
.btn-primary:focus,
.btn-primary:visited,
.btn:disabled,
.btn-primary:disabled {
    background-color: #457a05;
}

hr {
    margin-top: 5px;
    height: 1px;
    border-color: rgba(0, 0, 0, 0.3);
}

a {
    color: #7fbb36;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #457a05;
}

.form-control:focus {
    border-color: #7fbb36;
    border-style: solid 1px;
    box-shadow: none;
}

input[type="checkbox"]:checked {
    border-color: #7fbb36;
}

input[type="checkbox"]:checked {
    background-color: #7fbb36;
}

label {
    font-size: 18px;
}

.theme-selector-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}
