:root {
    --bs-primary: #0063b5;
    --bs-secondary: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    background-color: var(--bs-primary);
    padding-top: 60px;
    transition: transform 0.3s ease;
    z-index: 1040;
}

.sidebar .nav-link {
    color: var(--bs-secondary);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.content {
    margin-left: 250px;
    padding: 2rem;
    width: 100%;
}

.toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    background-color: var(--bs-primary);
    color: var(--bs-secondary);
    border: none;
}

.btn-custom {
    background-color: #0063b5;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    /* igual ao .btn padrão */
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-custom:hover,
.btn-custom:focus {
    background-color: #00509a;
    /* tom mais escuro no hover */
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 99, 181, 0.25);
    text-decoration: none;
}

.btn-custom:active {
    background-color: #003f7d;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.p-5 {
    padding: 1.2rem !important;
}

.modal-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-loading .dots span {
    position: absolute;
    height: 10px;
    width: 10px;
    background: #FFF;
    border-radius: 50%;
    transform: rotate(calc(var(--i) * 24deg)) translateY(35px);
    animation: modalLoading 1.5s linear infinite;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

.btn-modal-delete {
    width: 50%;
    padding: 8px 0;
    text-align: center;
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-left: none;
    border-bottom: none;
    text-decoration: none;
    background-color: #fff;
}

.nowrap {
    display: flex;
    flex-wrap: nowrap;
}

.bar-pontuation {
    width: 100%;
    position: relative;
    background-color: #ccc;
    height: 20px;
    text-align: center;
}

.bar-pontuation span {
    position: absolute;
    z-index: 10;
    display: block;
    text-align: center;
    width: 100%;
    height: 20px;
}

.bar-pontuation .acertos {
    position: absolute;
    height: 20px;
}

.form-check-input {
    border-color: #999 !important;
}

.block-question {
    position: relative;
    width: 100%;
    margin: 25px 0;
    padding: 20px;
    background-color: #e9e9ee;
    border-radius: 6px;
}

.block-question h3 {
    font-size: 16px;
}

.item {
    display: none;
}

.item.active {
    display: block;
}

.flag-response {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: #90EE90;
    border: 1px solid #3CB371;
    border-radius: 4px;
    padding: 2px 10px;
}

.panel-photo {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}


.form-floating .select2-container--bootstrap-5 .select2-selection {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating .select2-container--bootstrap-5 .select2-selection>.select2-selection__rendered {
    margin-top: 0.6rem;
    margin-left: 0.25rem;
}

.profile-image img {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.img-user-table {
    width: 60px;
    height: 60px;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 50%;
    object-fit: cover;
    background-size: 100%;
}

.flag {
    padding: 5px;
    width: 80px;
    text-align: center;
    font-size: 10px;
    border: 1px solid #3CB371;
    background-color: #90EE90;
    border-radius: 8px;
}


@keyframes modalLoading {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    table thead {
        display: none;
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        padding: 0.5rem;
    }

    table td {
        text-align: center;
        position: relative;
        padding-left: 50%;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 2rem 0;
    }
}