/*===== GENERAL STYLES =====*/
@font-face {
    font-family: 'Montserrat';
    font-display: block;
    src: url('../assets/fonts/Montserrat-Regular.woff') format('woff');
}
:root {
    --main-color: #950404;
    --main-color-light: #D00000;
    --main-blue: #212d45;

    --text-black: #212529;
    --text-gray : #888b9f;
    --input-label-color: #8590AD;

    --main-font: "Montserrat";
    --cursive-font: "Montserrat" , cursive;

    --big-font-size: 2rem;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.875rem;

    --gold-color : #fbb900;
    --success: #198754;
    --danger: #dc3545;
    --color-white: #fff;
    --primary: #007bff;
    --info:#17A2B4;
    --royal-blue:#318CE7;

    --blue-gray-color: #4a76a8;

    --border-color: #ccc;
    --main-background: #f1f5f9;
  
    --sidebar-width: 14rem;
    --sidebar-width-check: 5rem;
  
    --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

    /* Dashboard */
    --page-header-bgColor: #212d45;
    --page-header-bgColor-hover: #1d2636;
    --page-header-txtColor: #dde9f8;
    --page-header-headingColor: #7889a4;
    --page-header-width: 240px;
    --page-content-bgColor: #f0f1f6;
    --page-content-txtColor: #171616;
    --page-content-blockColor: #fff;
    --white: #fff;
    --black: #2B3B3A;

    --border-radius: 4px;
    --box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.075);
    --switch-bgLightModeColor: #87cefa;
    --switch-sunColor: gold;
    --switch-moonColor: #f4f4f4;
    --switch-bgDarkModeColor: #1f1f27;
}

@media screen and (min-width: 768px){
    :root{
        --big-font-size: 2.5rem;
        --normal-font-size: 1rem;
    }  
}

*,
*::after,
*::before{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: var(--main-font);
    line-height: 1.5;
    color: var(--text-black);
    font-size: 1rem;
    box-sizing: border-box;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}
a{
    text-decoration: none;
}
ul {
    list-style: none;
}
a,
  button {
    color: inherit;
}

button {
    background: none;
    cursor: pointer;
}
.bg-btn-add{
    color: var(--white);
    background-color: var(--royal-blue);
}
.bg-btn-update{
    color: var(--white);
    background-color: var(--info);
}
.bg-btn-delete{
    color: var(--white);
    background-color: var(--danger);
}
.bg-btn-add, .bg-btn-update, .bg-btn-delete{
    color: white;
    font-size: 1rem;
    transition: all .3s ease-in-out;
}
.bg-blue-gray-50{
    background-color: rgba(74, 118, 168, .2);
}
.bg-red-100{
    background-color: rgba(220, 53, 69, .2);
}
.bg-green-100{
    background-color:rgba(25, 135, 84, .2);
}
.bg-info-100{
    background-color:rgba(23, 162, 180, .2);
}
.update-btn:hover{
    background-color: var(--info);
}
.bg-light-green-100{
    background-color:rgba(32, 178, 170, .2);
}
.text-green{
    color: var(--success);
}
.text-info{
    color: var(--info);
}
.text-red{
    color: var(--danger);
}
.text-royal-blue{
    color: var(--royal-blue);
}
.text-light-green{
    color: lightseagreen;
}
.text-main-color{
    color: var(--main-color);
}
.text-danger{
    color: var(--danger);
}
.btn-submit:hover{
    transform: translateY(4px)
}
.btn-submit-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.delete-icon{
    font-size: 4rem;
}
.btn-cancel:hover{
    border: 1px solid gray;
}
#delete-training{
    border: 1px solid var(--danger);
}
.head-blue-gray{
    background-color: rgb(248,250,252);
}
.text-blue-gray{
    color: var(--blue-gray-color);
}
.text-main-blue{
    color: var(--main-blue);
}
.bg-main-blue{
    background-color: var(--main-blue);
}
a:hover{
    text-decoration: none;
}
.d-none{
    display: none;
}
.inline-block{
    display: block;
}
.text-center{
    text-align: center;
}
.no-records{
    text-align: center;
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
}
.border-main-color{
    border-color: var(--main-color);
}
.pt-2{
    padding-top: 2rem;
}
.mt-2{
    margin-top: 2rem;
}

.footer{
    width: 100%;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #212529;
}
.footer p{
    color: #fff;
    font-size: 1rem;
}

/* ===== Common btn =====*/
.submit-btn{
    padding: .5rem 1rem;
    font-size: 16px;
    color: white;
    border-radius: .2rem;
    background-color: var(--main-blue) !important;
    transition: all .4s ease-in-out;
}
.submit-btn:hover{
    transform: translateY(-5px)
}
/* ===== Pop up styles ===== */
.banners-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.banner {
    background-color: white;
    font-weight: 500;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.banner .banner-message {
    flex: 1;
    padding: 0 2rem;
    font-size: 1.2rem;
    color: #212529;
}
.banner .banner-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.banner.error .banner-icon iconify-icon{
    color: var(--danger);
    font-size: 1.5rem;
}
.banner.success .banner-icon iconify-icon{
    color: var(--success);
    font-size: 1.5rem;
}
.banner .banner-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
  
.banner.success {
    border-bottom: 4px solid var(--success);
}

.banner.error {
    border-bottom: 4px solid var(--danger);
}

.banner::after {
    content: "";
    position: absolute;
    height: 10rem;
    width: 100%;
    bottom: 100%;
    left: 0;
}
.banner:not(.visible) {
    display: none;
    transform: translateY(-100%);
}
.banner.visible {
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.12);
    animation-name: banner-in;
    animation-direction: forwards;
    animation-duration: 0.6s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}
  
@keyframes banner-in {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(10%);
    }
    100% {
        transform: translateY(0);
    }
}
.show-banner {
    appearance: none;
    background: #ededed;
    border: 0;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ===== Loading content spinner styles ===== */
.loading-content {
    width: 7em;
    margin: 3em auto;
    position: relative;
}
.loading-content:before {
    content: "";
    display: block;
    width: 7em;
    height: 1em;
    margin: 3em auto;
    padding: 3em 0;
    border-radius: 50%;
    border: 2px solid #2f416f;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    -webkit-animation: rotate 1s ease infinite;
            animation: rotate 1s ease infinite;
}
.loading-content:after {
    content: "Chargement";
    position: absolute;
    top: 0;
    color: #2f416f;
    font: 0.9em sans-serif;
    width: 8em;
    line-height: 8em;
    text-align: center;
    -webkit-animation: wink 1.4s ease infinite;
            animation: wink 1.4s ease infinite;
}
@-webkit-keyframes rotate {
    0% {
      transform: rotate(360deg);
    }
}
@keyframes rotate {
    0% {
      transform: rotate(360deg);
    }
}
@-webkit-keyframes wink {
    50% {
      opacity: 0;
    }
}
@keyframes wink {
    50% {
      opacity: 0;
    }
}
@media print {
    .hide-to-print {
        display: none;
    }
}

/*===== Spinner =====*/
.admin-spinner-box {
    display: none;
    width: 100%;
    height: 100px;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}
.admin-circle-border {
    width: 40px;
    height: 40px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(0deg, rgba(0,0,0, 0.3) 33%, rgba(0,0,0,.9) 100%);
    animation: spin .8s linear 0s infinite;
}

.admin-circle-core {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 50%;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to{
        transform: rotate(359deg);
    }
}

@media screen and (max-width: 500px) {
    .banner .banner-message {
        padding: 0 1rem;
        font-size: 1rem;
    }
    .banner .banner-icon i{
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 415px) {
    .banner .banner-message {
        padding: 0 .8rem;
        font-size: 14px;
    }
}

/* ======== Page headinng title ===== */
.page-heading{
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
}
.page-heading .page-title{
    font-size: 18px;
    letter-spacing: .5px;
    font-weight: 300;
}
/* ======== Subsection title ===== */
.subsection-title{
    margin: 2rem 0;
}
.subsection-title h1 {
    position:relative; 
    font-size:16px; 
    font-weight:400;  
    letter-spacing:0px; 
    text-transform:uppercase; 
    width:fit-content; 
    text-align:center; 
    margin:auto; 
    white-space:nowrap; 
    border:1px solid #212529;
    padding:.5rem 1rem;
}
.subsection-title h1:before, .subsection-title h1:after {
    background-color: var(--main-color);
    position:absolute; 
    content: '';
    height: 7px;
    width: 7px; 
    border-radius:50%;
    bottom: 12px;
}
.subsection-title h1:before {
    left:-20px;
}
.subsection-title h1:after {
    right:-20px;
}
.required-input{
    color: var(--danger);
    font-size: 16px;
}
.input-error{
    font-size: 13px;
    color: var(--danger);
    font-weight: bold
}


/* ===== Webkits Scrollbar styles =====*/
::-webkit-scrollbar{
    width: 4px;
    background-color: var(--color-white);
}
::-webkit-scrollbar-thumb{
    /* border-radius: 4px; */
    background-color: var(--color-black);
}

::-webkit-scrollbar-track{
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    /* border-radius: 4px; */
    background-color: var(--color-white);
}
/* Scrollbar horizontal */
::-webkit-scrollbar:horizontal {
    height: 4px;
    background-color: var(--color-white);
}

::-webkit-scrollbar-thumb:horizontal {
    background-color: var(--color-black);
}

::-webkit-scrollbar-track:horizontal {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--color-white);
}

header.page-header::-webkit-scrollbar-thumb{
    background-color: var(--royal-blue);

}

/* Breadcrumbs style */
ol.breadcrumb {
    padding: .5rem 1rem;
    list-style: none;
    background-color: #fff;
    border-radius: var(--border-radius);
}

ol.breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

ol.breadcrumb li+li:before {
    padding: 0 8px;
    color: var(--main-color);
    content: "\2022";
    font-size: 1.4rem;
}

ol.breadcrumb li.breadcrumb-item a {
    color: var(--main-blue);
    text-decoration: none;
}

ol.breadcrumb li.breadcrumb-item > span {
    color: var(--text-gray)
}
ol.breadcrumb li.breadcrumb-item iconify-icon{
    color: var(--text-gray);
    font-size: 1.2em;
    padding-right: .5rem;
}
ol.breadcrumb li.breadcrumb-item a:hover {
    color: var(--main-color);
    text-decoration: underline;
}
  
.text-muted {
    color: #8898aa;
}

.text-uppercase {
    text-transform: uppercase;
}

.empty-records{
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
}
/* Single stats card component styles */

.rounded-circle {
    border-radius: 50%;
}
.single-card {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    min-width: 300px;
    padding: 1rem 1.5rem;
    background-color: #fff;
    background-clip: border-box;
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
    border-radius: 6px;
    border: 0;
}

.card-data {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-right: 2rem;
}
.card-data .card-value {
  font-size: 1.5rem;
  color: var(--main-blue);
}

.card-data .card-title{
    color: #8898aa;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
}

.card-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 12px;
  text-align: center;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.stat-icon {
  font-size: 2rem;
  color: white;
}

.bg-gradient-3 {
    background: linear-gradient(87deg, #fbb900, #fdd64b) !important;
}

.bg-gradient-1 {
    background: linear-gradient(87deg, #212d45, #4c5d75) !important;
}

.bg-gradient-2 {
    background: linear-gradient(87deg, #318CE7, #6ca6ed) !important;
}
.bg-gradient-4 {
    background: linear-gradient(87deg, #17A2B4, #4ec9d1) !important;
}
.bg-gradient-5 {
    background: linear-gradient(87deg, #950404 0, #e57d7d 100%) !important;
}
.bg-gradient-6 {
    background: linear-gradient(87deg, #198754 0, #57f7ac 100%) !important;
}
