/* Custom CSS */

:root {
  --color-primary: #1E8BCC;
  --color-primary-dark: #145f85;
  --color-dark: #212529;
  --color-bg: #fbfbfb;
  --color-danger: #dc3545;
  --color-success: #198754;
  --color-text: #212121;
  --color-heading: #111111;
}

body {
    min-width: 300px;
    min-height: 100vh;
    /* background-image: linear-gradient(180deg,#ebe9e3 0%,#e2ecee 100%) !important; */
    background-color: var(--color-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: right center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    color: var(--color-heading);
    font-weight: 500;
}

h5 {
    font-size: 1.4em;
    padding: 0.5em 0 0em 0;
    position: relative;
    top: 10px;
    width: auto !important;
}

/* Normalize bold/semibold to Rubik 500 (medium) — avoids the harsh 400→700 jump */
b, strong, .fw-bold, .fw-semibold {
    font-weight: 500 !important;
}

.noserif {
    font-family: 'Rubik', sans-serif;
}

table, p, .row {
    font-family: 'Rubik', sans-serif;
    font-size: 1em;
}

.profile {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: rgba(0, 0, 0, 0.22) 0px 2px 5px, rgba(0, 0, 0, 0.34) 0px 1px 2px;
}


.headsite {
    /* background-color: #333; */
    background-color: var(--color-primary-dark) !important;
    height: 68px;
}

.title {
    display: inline-block;
    color: var(--color-primary);
    padding: 1rem 0;
}

.title a {
    position: relative;
    left: -0.5rem;
    width: 0;
    cursor: pointer;
    text-decoration: none !important;
    color: white;
}

.title a i {
    font-size: 1.5rem;
}

.title a svg {
    color: #fff;
    width: 26px;
    padding: 0;
    margin: 0;
    height: auto;
    position: relative;
    bottom: 2px;
}

.title a svg path {
    fill: #fff;
    transition: all 0.2s;
}

.title a:hover svg path {
    fill: var(--color-primary);
    transition: all 0.2s;
}


.btn {
    font-family: 'Rubik', sans-serif;
}

.btn:focus, .btn:active, .btn-:hover {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    color: #fff;
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus {
    color: #fff;
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.text-primary {
    color: var(--color-primary) !important;
}

.btn-sm {
    padding: .20rem .5rem;
    font-size: .775rem;
}

.form-label {
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 400;
    color: #7a7a7a;
    font-family: 'Rubik', sans-serif;
}

.col-form-label {
    font-size: 1rem;
    font-weight: 400;
    color: #7a7a7a;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 0;
}

.type2 .form-label {
    padding-left: 1rem;
}

.form-control {
    background-color: #fff;
}

.form-control:focus, .form-control:active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .25rem rgba(30, 139, 204, .25);
}

.modal-backdrop {
    background-color: var(--color-primary);
}

/* Generic modal style: no dividers, centered, balanced spacing */
.modal-content {
    border: 0;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.modal-body {
    padding: 1rem 1.5rem 0.5rem;
    text-align: center;
}

.modal-body h5 {
    margin-bottom: 1.25rem;
}

.modal-body dt {
    color: #9e9e9e;
    font-weight: 400;
}

.modal-footer {
    border-top: 0;
    justify-content: center;
    padding: 0.5rem 1.5rem 1.5rem;
    gap: 1rem;
}

#re-meeting {
    background-color: rgba(28, 61, 75, 0.5) !important;
    transition: 1s;
    text-align: center;
}

#re-meeting .modal-title {
    margin: 0 auto;
}

#re-meeting .input-group {
    max-width: 200px;
    margin: 0 auto;
}

#re-meeting .btn {
    width: 90px;
}


.blur {
    filter: blur(4px);
    transition: all 0.2s;
}

.tableheader {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    padding: 6px 0;
    background-color: var(--color-primary);
    text-align: center;
    margin: 0 -12px 0 -12px;
    color: #fff;
}

.table>tbody>tr>td {
    vertical-align: middle;
}

.td-date {
    color: rgba(33, 37, 4, 0.8);
}

.table .row {
    margin: 0;
    border-bottom: solid 1px rgb(222, 226, 230);
}

.table-hover>tbody>tr:hover {
    --bs-table-accent-bg: #fff;
}

.bgcolordiv {
    background-color: rgba(0, 0, 0, 0.06) !important;
}

.forminnercolordiv {
    margin: 1rem auto !important;
    padding: 1.7rem;
}

.circle {
    border-radius: 50%;
    background-color: #6295dd;
    color: #fff;
    height: 1.5rem;
    display: block;
    width: 1.5rem;
    text-align: center;
    line-height: 1.5rem;
    font-size: 1rem;
    margin: 0.1rem auto;
    position: relative;
    left: 0.5rem;
}

.cir-orange {
    background-color: #e4a155;
}

.cir-check {
    background-color: rgba(0, 0, 0, 0);
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px var(--color-success);
}

.cir-blue {
    background-color: rgba(0, 0, 0, 0);
    color: #6295dd;
    font-size: 1.4rem;
}

.cir-eye svg {
    width: 1.8rem;
    position: relative;
    margin: 0.1rem auto;
    left: 0.5rem;
    display: block;
    overflow: visible;
}

.clkrow {
    cursor: pointer;
}


.infodetails {
    padding: .5rem;
    min-height: 46vh;
}

.infodetailsplus {
    min-height: 66vh;
}

.notdetailssplus {
    min-height: 40vh;
}


.infodetails .row {
    border-bottom: 1px solid rgb(222, 226, 230);
    margin-bottom: .5rem;
    padding-bottom: .5rem;
}

.infodetails .rbig {
    border-bottom: 0px solid rgb(222, 226, 230);
}

.infodetails .btn-sm {
    padding: 0 .5rem;
}

.btn-status a {
    padding-left: 2rem;
    padding-right: 2rem;
    color: #fff;
}

.btn-status .btn-danger,
.btn-status .btn-success {
    transition: all 0.2s;
    padding-left: 2rem;
    padding-right: 2rem;
}

#buttons {
    position: relative;
    bottom: -50px;
    opacity: 0;
    transition: all 0.2s;
}

.sunrise {
    bottom: 0 !important;
    opacity: 1 !important;
    transition-delay: 1s !important;
    transition-duration: 0.8s !important;
    transition-property: all !important;
}

.errorintable {
    margin: auto -0.75rem
}

.div-question {
    text-align: right;
    height: 0;
}

.btn-question {
    width: 2rem;
    position: relative;
    top: -0.1rem;
    left: -0.4rem;
    color: #ccc;
}

.profiledata .btn-question {
    width: auto;
    top: 0;
    left: -10px;
}

.popover {
    max-width: 800px !important;
}

.popover-body {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    color: var(--color-primary);
    padding: 1.5rem 1.7rem !important;
    font-size: 1rem;
}

.status-server {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
}

.alert-danger {
    margin-left: -1rem;
    margin-right: -1rem;
}

.notfound h2, .notfound h4 {
    color: #fff;
    filter: drop-shadow(5px 6px 4px var(--color-primary-dark));
}

.notfound img {
    filter: drop-shadow(5px 15px 50px var(--color-primary-dark));
}

.table {
    border-collapse: collapse;
    border-radius: 1em;
    overflow: hidden;
}

.table .col-12 {
    background-color: #b3b3b3 !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.table .allowed {
    background-color: var(--color-success) !important;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.table .allowed:hover {
    cursor: pointer;
    background-color: #1fa855 !important;
    transition: all 0.2s;
}

.table .notallow {
    background-color: #b3b3b3 !important;
    text-align: center;
    /*cursor: not-allowed;*/
    cursor: pointer;
    transition: all 0.2s;
}

.table .notallow:hover {
    /*cursor: not-allowed;*/
    cursor: pointer;
    background-color: #dadada !important;
    transition: all 0.2s;
}

.table .notallowred {
    background-color: var(--color-danger) !important;
    color: #fff;
    text-align: center;
    /*cursor: not-allowed;*/
    cursor: pointer;
    transition: all 0.2s;
}

.table .notallowred:hover {
    cursor: pointer;
    color: #fff;
    background-color: #e02d3c !important;
    transition: all 0.2s;
}

.disable .allowed {
    background-color: #b3b3b3 !important;
    color: rgb(33, 37, 41) !important;
}

.showbuttonsend {
    animation: fadeIn 1s;
    position: relative;
}

.gpdrfield {
    border-color: #666666;
    min-height: 150px;
    max-height: 300px;
    font-size: 0.9rem;
}

#ConditionConsent {
    width: 1.5em;
    height: 1.5em;
}

#ConditionConsentlabel {
    line-height: 2rem;
    padding-left: 0.5rem;
}

#ConditionConsenterror {
    line-height: 2rem;
    padding-left: 0.5rem;
}

.navigationfooter {
    padding: 6px 12px;
    background-color: var(--color-primary);
    text-align: right;
    margin: 0 -12px 0 -12px;
    margin-top: 0px;
    color: #fff;
    min-height: 35px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
}

.navigationfooter .btn {
    font-size: 1.4rem;
    margin: 0.2rem 1rem;
    /*border: 1px solid rgba(255,255,255,0.4);*/
    padding: 0.4rem 1.2rem;
}

.navigationfooter .b_right {
    margin-left: auto;
}

/* INVITE */
fieldset {
    margin: 0;
    padding: 2rem;
    /* display: block;*/
    border: none;
    min-width: 0;
}

fieldset legend {
    margin: 0 0 1.5rem;
    padding: 0;
    width: 100%;
    float: left;
    display: table;
    font-size: 1.5rem;
    line-height: 140%;
    font-weight: 600;
    color: #333;
}

fieldset legend+* {
    clear: both;
}

/* TOGGLE STYLING */
.toggle {
    margin: 2rem 0 0 0;
    box-sizing: border-box;
    font-size: 0;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
}

.toggle input {
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}

.toggle input+label {
    margin: 1rem 2rem;
    padding: 0.75rem 4rem;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    border: solid 2px #ddd;
    background-color: #fff;
    font-size: 1rem;
    line-height: 140%;
    font-weight: 400;
    text-align: left;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
    transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
    cursor: pointer;
}

.toggle input+label {
    border-radius: 6px;
}

.toggle input:hover+label {
    border-color: var(--color-primary);
    outline: solid 2px var(--color-primary);
}

.toggle input:checked+label {
    /* box-shadow: 0 0 10px rgba(102, 179, 251, .5);*/
    border-color: var(--color-primary);
    outline: solid 2px var(--color-primary);
    /*z-index: 1;*/
    transition: all 2s;
}

.toggle input+label:before {
    content: "";
    position: relative;
    text-align: left;
    left: 1rem;
    bottom: 0.6rem;
    font-size: 1.8rem;
    line-height: 100%;
    color: #fff;
    transition: all 0.5s;
}

.toggle input:checked+label:before {
    content: "\2713";
    position: relative;
    text-align: left;
    width: 0 !important;
    left: 1rem;
    bottom: 0.6rem;
    font-size: 1.8rem;
    line-height: 100%;
    color: var(--color-success);
    transition: all 0.5s;
}

.toggle input:last-of-type:checked+label:last-of-type {
    border-color: #f71303;
    outline: solid 2px #f71303;
}

.toggle input:last-of-type:checked+label:last-of-type:before {
    content: "\1F5D9";
    color: #f71303;
}

.toggle label {
    position: relative !important;
}

.toggle label:before {
    position: absolute !important;
}

.fblue {
    margin: 0;
    background-color: rgba(30, 139, 204, 0.15);
    margin: 0 -0.75rem -0.75rem -0.75rem;
    padding: 2rem;
}

.fblue textarea {
    width: 100%;
}

.fblue textarea:focus {
    border-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(30, 139, 204, 0.5);
    outline: 0px !important;
}

.fblue .col-md-3 {
    flex-direction: column;
}

.form-select-sm {
    margin-bottom: 1.5rem;
}

.type2 .form-select-sm {
    width: auto !important;
}

.conditionstext {
    max-height: 200px;
}

.is-invalid {
    border-color: #DC3545 !important;
    background-color: #F8D7DA !important;
    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") !important;
}

.invalid-feedback {
    color: #dc3545;
}

.type1 p {
    padding-bottom: 1.8rem;
}

.type2 p {
    /*padding-top: 1.8rem;*/
    padding-top: 0.5rem;
}


/* Temporal */
.form-check-inline.is-valid {
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.form-check-input.is-valid {
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.form-check-input.is-valid~.form-check-label {
    color: #212529 !important;
}

/* Fin Ñapa temporal */

.inputtext {
    background-color: #fff;
    height: 32px;
    font-size: .875rem;
}

.questions {
    animation: fadeIn 1.6s;
    transition: opacity 0.5s ease-in-out;
}

.subquestions {
    margin: 1rem 0;
    transition: all 0.5s ease;
}


#errorModal .modal-content {
    border: 2px solid rgb(249, 83, 2);
    border-radius: .3rem;
    outline: 0;
}

#errorModal h5 {
    font-size: 1.4em;
    font-weight: 700;
    padding: 0;
    top: 0;
    color: #dc3545;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        top: 30px;
    }

    50% {
        opacity: 0;
        top: 30px;
    }

    100% {
        opacity: 1;
        top: 0;
    }
}

@media (max-width: 575px) {

    .navigationfooter {
        padding-bottom: 6px + 3rem;
        margin-bottom: 0;
    }

}


@media (min-width: 575px) {

    .tableheader {
        margin-top: 12px;
    }

    .table {
        margin: 0 -12px;
        width: calc(100% + 24px);
    }

    .logo {
        max-width: 500px;
    }

    .table tr:last-child td {
        border-bottom-width: 0;
    }
}


@media (max-width: 700px) {


    .btn-transparent i {
        font-size: 1.4rem;
    }

    .toggle input+label {
        margin: 0.5rem 0.5rem;
    }

    .btn-question {
        left: -1rem;
        /*top: -4.5rem;*/
    }

    .profiledata .btn-question {
        left: -10px;
    }

    .toggle label {
        min-height: 70px;
    }

    .toggle input:checked+label::before {
        bottom: 1.4rem;
    }

}

@media (min-width: 1020px) {

    .btn-transparent i {
        font-size: 2rem;
    }

}

@media (max-width: 1199px) {

    .col-sm-6 .row .col-sm-4 {
        width: 100%;
    }

    .col-sm-6 .row .col-sm-8 {
        width: 100%;
    }

    .col-sm-6 .row .col-sm-6 {
        width: 100%;
    }

    .col-sm-6 .row .col-sm-6 {
        width: 100%;
    }

    .stitle {
        position: relative;
        top: 10px;
    }
}

@media (max-width: 990px) {

    fieldset {
        padding: 0;
    }
}

.min-vh-75 {
    min-height: 75vh !important;
}

/* ============================================================ */
/* Styles for full screen image functionality                   */
/* ============================================================ */

.image-container {
    display: inline-block;
    position: relative;
}

.full-screen {
    transition: 150ms;
    position: absolute;
    top: 10px;
    left: 10px;
    height: fit-content;
    width: fit-content;
    background-color: rgba(255, 255, 255, 0.5);
    border-color: transparent;
    border-radius: 50%;
    padding: 16px;
    /* button size*/
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 1);
}

.full-screen::before {
    content: "";
    position: absolute;
    width: 40%;
    height: 40%;
    background-image: url("data:image/svg+xml, %3Csvg height='14px' version='1.1' viewBox='0 0 14 14' width='14px' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg fill='none' fill-rule='evenodd' id='Page-1' stroke='none' stroke-width='1'%3E%3Cg fill='%23000000' id='Core' transform='translate(-215.000000, -257.000000)'%3E%3Cg id='fullscreen' transform='translate(215.000000, 257.000000)'%3E%3Cpath d='M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z' id='Shape' /%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.full-screen:hover {
    background-color: rgba(255, 255, 255, 1);
}

@media (hover: hover) {
    .full-screen {
        opacity: 0;
    }

    .image-container:hover .full-screen {
        opacity: 1;
    }
}

/* ============================================================ */
/* End of styles for full screen image functionality            */
/* ============================================================ */

/* ============================================================ */
/* Fullscreen Modal Navigation                                  */
/* ============================================================ */

/* Modal content: fullscreen dark overlay */
#modalNavigation .modal-content {
    background: rgba(33, 37, 41, 0.97);
    border: none;
    box-shadow: none;
    min-height: 100vh;
}

#modalNavigation .modal-dialog {
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
}

/* Hide the Bootstrap backdrop for this modal (overlay is on .modal-content) */
#modalNavigation ~ .modal-backdrop {
    opacity: 0;
}

/* Modal header: right-aligned close button */
.modal-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 32px;
}

.modal-nav-header .close-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-nav-header .close-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Modal body: centered menu items */
.modal-nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    overflow-y: auto;
}

.modal-nav-menu {
    max-width: 500px;
    width: 100%;
}

/* Menu items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Rubik', sans-serif;
}

.menu-item:hover {
    color: #fff;
    transform: translateX(6px);
}

.menu-item .menu-icon {
    color: var(--color-primary);
    width: 28px;
    text-align: center;
    font-size: 18px;
}

.menu-item .menu-arrow {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.35s ease;
}

.menu-item.open .menu-arrow {
    transform: rotate(90deg);
    color: var(--color-primary);
}

/* Submenu container */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    margin-left: 44px;
}

.submenu.open {
    opacity: 1;
}

/* Submenu items */
.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.submenu-item:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.submenu-item .sub-icon {
    font-size: 6px;
    color: rgba(30, 139, 204, 0.5);
}

/* Separator line above logout */
.menu-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

/* Footer hint */
.modal-nav-footer {
    padding: 16px 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.modal-nav-footer kbd {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    color: inherit;
}

/* Logout item styling */
.menu-item-logout {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

.menu-item-logout .menu-icon {
    color: rgba(255, 255, 255, 0.2);
}

.menu-item-logout:hover {
    color: rgba(255, 255, 255, 0.7);
}

.menu-item-logout:hover .menu-icon {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================ */
/* Public pages: compact form controls (sm+ only)               */
/* iOS Safari auto-zooms inputs with font-size < 16px,          */
/* so compact sizing only applies above mobile breakpoint.      */
/* ============================================================ */

@media (min-width: 576px) {
    .menu-public .form-control,
    .menu-public .form-select {
        padding: .3rem .6rem;
        font-size: .875rem;
    }

    .menu-public .col-form-label,
    .menu-public .form-label {
        font-size: .875rem;
    }

    .menu-public .form-check-label {
        font-size: .875rem;
    }

    .menu-public .invalid-feedback {
        font-size: .8rem;
    }
}

@media (max-width: 575.98px) {
    .menu-public .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ============================================================ */
/* Amplexa Navbar (white header)                                */
/* ============================================================ */

.navbar-amplexa {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 18px 0;
}

.amplexa-header {
    padding-right: calc(var(--bs-gutter-x) * .8);
    padding-left: calc(var(--bs-gutter-x) * .8);
}

.navbar-amplexa .navbar-brand {
    padding: 0;
}

.navbar-amplexa .navbar-brand img {
    height: 42px;
    width: auto;
}

.navbar-amplexa .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--color-text);
}

.navbar-amplexa .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 33, 33, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================ */
/* Global: login/logout button never wraps                      */
/* ============================================================ */
.navbar .btn,
.sidebar-footer .btn {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .navbar .btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ============================================================ */
/* Topbar Navigation                                            */
/* ============================================================ */

/* Topbar dropdown menus */
.menu-topbar .navbar-nav .nav-link {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 14px;
    color: var(--color-text);
    transition: color 0.2s;
}

.menu-topbar .navbar-nav .nav-link:hover,
.menu-topbar .navbar-nav .nav-link:focus {
    color: var(--color-primary);
}

.menu-topbar .navbar-nav .nav-link i {
    color: var(--color-primary);
    font-size: 13px;
}

.menu-topbar .navbar-nav .dropdown-menu {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.menu-topbar .navbar-nav .dropdown-item {
    color: var(--color-text);
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.menu-topbar .navbar-nav .dropdown-item:hover,
.menu-topbar .navbar-nav .dropdown-item:focus {
    background: rgba(30, 139, 204, 0.06);
    color: var(--color-primary);
}

.menu-topbar .navbar-nav .dropdown-item i {
    color: rgba(30, 139, 204, 0.5);
    font-size: 6px;
    vertical-align: middle;
}

/* Topbar auth button: full width on desktop only */
@media (min-width: 992px) {
    .topbar-auth-btn {
        width: 100%;
    }
}

/* Topbar mobile: center menu items */
@media (max-width: 991.98px) {
    .menu-topbar .navbar-collapse {
        text-align: center;
        border-top: 1px solid #e5e5e5;
        margin-top: 10px;
        padding-top: 10px;
    }

    .menu-topbar .navbar-nav {
        align-items: center;
    }

    .menu-topbar .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
}

/* ============================================================ */
/* Sidebar Navigation                                           */
/* ============================================================ */

/* Body as flex container in sidebar mode */
body.menu-sidebar {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar container */
.menu-sidebar .sidebar-nav {
    width: 250px;
    background-color: var(--color-dark) !important;
}

/* Sidebar brand area */
.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar footer */
.sidebar-footer {
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-footer .navbar-nav {
    flex-direction: row;
    gap: 4px;
}

.sidebar-footer .btn {
    white-space: nowrap;
}

/* Sidebar menu list */
.sidebar-menu {
    list-style: none;
    padding: 16px 0;
    margin: 0;
}

/* Sidebar items */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-icon {
    width: 22px;
    text-align: center;
    color: var(--color-primary);
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
}

.sidebar-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

button.sidebar-item.open .sidebar-arrow {
    transform: rotate(90deg);
    color: var(--color-primary);
}

/* Sidebar submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-submenu.open {
    opacity: 1;
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 54px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-submenu-item:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-submenu-item i {
    font-size: 5px;
    color: rgba(30, 139, 204, 0.4);
}

/* Sidebar separator */
.sidebar-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 8px 0;
    list-style: none;
}

/* Sidebar logout item */
.sidebar-item-logout {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.sidebar-item-logout .sidebar-icon {
    color: rgba(255, 255, 255, 0.2);
}

.sidebar-item-logout:hover {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-item-logout:hover .sidebar-icon {
    color: rgba(255, 255, 255, 0.4);
}

/* Offcanvas overrides for mobile sidebar */
.menu-sidebar .offcanvas-start.sidebar-nav {
    border-right: none;
}

.menu-sidebar .offcanvas-header {
    background: var(--color-dark);
}

/* ============================================================ */
/* Test Result page                                             */
/* ============================================================ */

.result-data {
    max-width: 460px;
    margin: 0 auto;
}

.result-row {
    display: flex;
    align-items: baseline;
    padding: 0.4rem 0;
    font-family: 'Rubik', sans-serif;
}

.result-label {
    width: 100px;
    flex-shrink: 0;
    color: #7a7a7a;
    font-size: 0.95rem;
    text-align: right;
    padding-right: 1rem;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-heading);
}

