#login_page {
    background: url(../img/bg_portal.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
#login_page::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color:rgba(255,255,255,0.1);
    filter: blur(8px);
    transform: scale(1.1); /* prevent blur edge clipping */
    z-index: 0;
}
/* Card base */
#login_page .auth-full-page .auth-form .card,#login_page #registration-card{
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Blurred background image layer */
#login_page .auth-full-page .auth-form .card::before,#login_page #registration-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/bg_portal.png) center/cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1); /* prevent blur edge clipping */
    z-index: 0;
}

/* Keep form content sharp */
#login_page .auth-full-page .auth-form .card > *,#login_page #registration-card >*{
    position: relative;
    z-index: 1;
}

/* Header styling */
#login_page .auth-full-page .auth-form .card .card-header, #login_page #registration-card .card-header{
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

/*#sidebar .sidebar-content{*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    background-color: rgba(255,255,255,0.55);*/
/*    backdrop-filter: blur(6px);*/
/*    -webkit-backdrop-filter: blur(6px);*/
/*    box-shadow: 0 25px 50px rgba(0,0,0,0.15);*/
/*}*/
#sidebar .sidebar-content .sidebar-brand{
    background: rgba(255,255,255);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
#sidebar .sidebar-content{
    background: #0e3762cc;
}


#sidebar .sidebar-content .sidebar-nav .sidebar-item a,
#sidebar .sidebar-content .sidebar-nav .sidebar-item a svg{
    color: #fff;
    /*fill: #fff;*/
}
.sidebar-dropdown.show{
    background: #0e3762cc;
}

.sidebar-dropdown.show a,
.sidebar-dropdown.show a svg{
    color: #fff;
    /*fill: #fff;*/
}
#sidebar .sidebar-content .sidebar-nav .sidebar-item.active{
    background: #fff !important;
    border: 1px solid #0e3762cc !important;
}

/* active link text */
#sidebar .sidebar-content .sidebar-nav .sidebar-item.active > a{
    color: #0e3762cc !important;
    font-weight: bold;
}

/* active icon */
#sidebar .sidebar-content .sidebar-nav .sidebar-item.active > a svg{
    color: #0e3762cc !important;
    /*fill: #0e3762cc !important;*/
}

#sidebar .sidebar-content .sidebar-nav .sidebar-item:hover{
    background: rgba(255,255,255,0.15);
}

/* ---------- Section Card ---------- */
.section-card {
    background: #f9fafb;          /* softer than #f8f9fa */
    border: 1px solid #e9ecef;    /* subtle separation */
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
}

#loader-box{
    position: fixed;
    width:100%;
    height:100%;
    z-index: 1;
    top:0;
    left:0;
    background-color:rgba(255,255,255,0.5);
}
.text-indigo{
    color: #6610f2 !important;
}
.text-bg-indigo{
    color: #fff !important;
    background-color:#6610f2;
}
.bg-blue{
    background-color:#0d6efd;
}
.bg-indigo{
    background-color:#6610f2;
}
.bg-teal{
    background-color:#20c997;
}
.bg-cyan{
    background-color:#0dcaf0;
}

/* Center the loader */
#loader {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -76px 0 0 -76px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}
.max-vh-50{
    max-height:50vh !important;
}
.max-vh-60{
    max-height:60vh !important;
}
.max-vh-75{
    max-height:75vh !important;
}
.h-200px{
    height:200px;
}

.form-control.is-valid, .was-validated .form-control:valid {
    border-color: var(--bs-form-valid-border-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}

.score-chip input{display:none}
.score-chip label{
 border:1px solid #d5dceb;
 padding:.45rem .9rem;
 border-radius:999px;
 cursor:pointer;
 margin-right:8px;
}
.score-chip input:checked + label{
 background:#0d6efd;
 color:#fff;
 border-color:#0d6efd;
}
.top-5{
    top:5%!important;
}
.end-2{
    right:2%!important;
}
.border-top-info{
    border-top:4px solid black;
}

.border-danger{
border-left:5px solid #dc3545 !important;
animation:pulse .8s 2;
}

@keyframes pulse{
50%{transform:scale(1.01);}
}
.custom-tooltip {
  --bs-tooltip-bg: var(--bd-violet-bg);
  --bs-tooltip-color: var(--bs-white);
}

.paid-card {
    opacity: 0.6;
    pointer-events: none;
    background: #f8f9fa;
}

.category-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card.selected {
    border: 2px solid #0d6efd;
    background: #0d6efd;
}
.category-card.selected .card-body .fw-bold,.category-card.selected .card-body .price-tag{
    color:#ffffff;
}
.category-checkbox {
    transform: scale(1.5);   /* size increase */
    cursor: pointer;
}
.category-checkbox.form-check-input:checked {
    background-color: #ea3f3f;
    border-color: #ea3f3f;
}
.price-tag {
    font-size: 22px;
    font-weight: bold;
    color: #0d6efd;
}

.category-select-card{
    cursor:pointer;
}

.category-select-card .category-card,.disciplines-select-card .disciplines-card{
    transition:all .25s ease;
    border:4px solid #e5e7eb;
    border-radius:24px;
    overflow:hidden;
    cursor:pointer;
}

.category-select-card .category-card:hover,.disciplines-select-card .disciplines-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.disciplines-select-card .disciplines-card:hover{
    background:#6610f2b5;
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}
.disciplines-checkbox:checked + .disciplines-card{
    background:#6610f2;
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}
.disciplines-checkbox:checked + .disciplines-card h4 ,.disciplines-select-card .disciplines-card:hover h4{
    color:#ffffff!important;
}

.selected-badge{
    position:absolute;
    top:15px;
    right:15px;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6610f2;
    font-size:18px;
    opacity:0;
    transform:scale(.5);
    transition:all .2s ease;
}

/*.selected-discipline{*/
/*    position:absolute;*/
/*    top:15px;*/
/*    left:15px;*/
/*    border-radius:10%;*/
/*    padding:.1rem;*/
/*    background:#fff;*/
/*}*/

.category-checkbox:checked + .category-card{
    border-color:#0d6efd;
    box-shadow:0 10px 30px rgba(13,110,253,.15);
    transform:translateY(-4px);
}

.category-checkbox:checked + .category-card .selected-badge,.disciplines-checkbox:checked + .disciplines-card .selected-badge{
    opacity:1;
    transform:scale(1);
}


.blink-card{
    animation: blinkAnimation 1.2s infinite;
}

@keyframes blinkAnimation{

    0%{
        box-shadow: 0 0 5px rgba(220,53,69,0.3);
        transform: scale(1);
    }

    50%{
        box-shadow: 0 0 25px rgba(220,53,69,0.9);
        transform: scale(1.02);
    }

    100%{
        box-shadow: 0 0 5px rgba(220,53,69,0.3);
        transform: scale(1);
    }
}

.blink-warning{
    animation: warningBlink 1.5s infinite;
}

@keyframes warningBlink{
    0%,100%{
        box-shadow: 0 0 5px rgba(255,193,7,.4);
    }
    50%{
        box-shadow: 0 0 25px rgba(255,193,7,1);
    }
}

.blink-info{
    animation: infoBlink 1.5s infinite;
}

@keyframes infoBlink{
    0%,100%{
        box-shadow: 0 0 5px rgba(31, 155, 207,.4);
    }
    50%{
        box-shadow: 0 0 25px rgba(31, 155, 207,1); 
    }
}
.text-blink{
    animation: textBlink 2s infinite;
}
@keyframes textBlink{
    0%,100%{
        font-size: 1rem;
    }
    50%{
        font-size:1.1rem;
    }
}
.radio-error{
    border:1px solid #dc3545;
    border-radius:8px;
    padding:10px;
}