:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    overflow-x: hidden;
    background-color: #f8f9fa;
    font-family: 'Montserrat';
}

.main-content {
    /*min-height: 90vh;*/
    min-height: calc(100vh - 145px - 80px); /* altura total menos navbar e footer */
    padding: 20px;
    transition: all 0.3s ease;
}

/* Navbar com gradiente */
.navbar-custom {
    /*background: linear-gradient(to right, #3d3d90, #58c3f9);*/
    background: linear-gradient(to right, #a248c4, #02c2cf);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    height: 145px;
    padding-top: 30px;
    padding-bottom: 30px;
    z-index: 1030;
    overflow: visible;
    position: relative;
}

.logo-custom {
    height: 120px;
    width: auto;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    /*border-radius: 12px;*/
    border-bottom-left-radius: 45px;
    border-bottom-right-radius: 45px;
    background-color: white;
    padding: 10px;
}

.logo-container {
    position: absolute;
    top: 0; /* Encaixa a logo no topo da navbar */
    left: 20px; /* Alinha com margem esquerda */
}

/* Nome do sistema ao lado da logo */
.navbar .system-name {
    font-weight: bold;
    font-size: 24px;
    margin-left: 10px;
    padding: 5px 15px;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 100px;
}

.system-name-wrapper {
    background: linear-gradient(to right, #00c6ff, #7f00ff);
}

.titulo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.titulo-gradiente {
    font-size: 2rem;
    font-weight: 800;
    padding: 10px 30px;
    border: 3px solid white;
    border-radius: 50px;
    color: white;
    /*background: linear-gradient(to right, #00c6ff, #7f00ff);*/
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.manutencao {
    background-color: #f8f9fa;
    text-align: center;
    padding-top: 100px;
}

.emoji {
    font-size: 5rem;
}

.message {
    font-size: 1.5rem;
    margin-top: 20px;
}

.btn-custom {
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    color: white;
    transition: 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

.form-narrow {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}


.btn-relatorio {
    background: linear-gradient(to right, #00c6ff, #7f00ff);
}

.btn-responder {
    background: linear-gradient(to right, #7f00ff, #00c6ff);
}

.btn-custom:hover {
    opacity: 0.9;
    transform: scale(1.05);
    color: black;
}

/* Texto de erro sem marcadores */
.text-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-danger li {
    display: inline;
    padding: 0;
    margin: 0;
}

.modal-dialog-bottom {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0;
    max-width: 100%;
}

.escala-regua {
    padding: 10px 0;
    margin-bottom: 10px;
}

    .escala-regua .row {
        margin: 0;
    }

    .escala-regua .col {
        padding: 5px;
        font-size: 0.85rem;
        border-right: 1px solid #ddd;
    }

        .escala-regua .col:last-child {
            border-right: none;
        }

    .escala-regua .circulo {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 auto 4px auto;
    }

.categoria-bloco {
    background-color: #f8f9fa; /* fundo claro */
    border-left: 5px solid #0d6efd; /* azul bootstrap */
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.categoria-titulo {
    margin-bottom: 0.25rem;
    color: #0d6efd;
    font-weight: 600;
}

.categoria-descricao {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}


.circulo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto 5px auto;
}

.resposta-row {
    margin-top: 10px;
    margin-bottom: 5px;
}

.resposta-col input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #999;
    outline: none;
    margin-bottom: 5px;
    transition: 0.2s;
}

    .resposta-col input[type="radio"]:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

.resposta-col label {
    display: block;
    font-weight: bold;
}

.descricao-pergunta {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 5px;
    color: #666;
}

/* Estado normal */
input[type="radio"].nota {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #aaa;
    margin-bottom: 5px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"].nota-1 {
    border: 2px solid #d62828;
}

input[type="radio"].nota-2 {
    border: 2px solid #f77f00;
}

input[type="radio"].nota-3 {
    border: 2px solid #fcbf49;
}

input[type="radio"].nota-4 {
    border: 2px solid #80b918;
}

input[type="radio"].nota-5 {
    border: 2px solid #2a9d8f;
}

input[type="radio"].nota-1:checked {
    background-color: #d62828;
    border-color: #d62828;
}

input[type="radio"].nota-2:checked {
    background-color: #f77f00;
    border-color: #f77f00;
}

input[type="radio"].nota-3:checked {
    background-color: #fcbf49;
    border-color: #fcbf49;
}

input[type="radio"].nota-4:checked {
    background-color: #80b918;
    border-color: #80b918;
}

input[type="radio"].nota-5:checked {
    background-color: #2a9d8f;
    border-color: #2a9d8f;
}

.circulo-escala-1 {
    background-color: #d62828;
}

.circulo-escala-2 {
    background-color: #f77f00;
}

.circulo-escala-3 {
    background-color: #fcbf49;
}

.circulo-escala-4 {
    background-color: #80b918;
}

.circulo-escala-5 {
    background-color: #2a9d8f;
}

.error1 {
    display: none;
    font-weight: bold;
}

.render-canvas {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: flex;
    justify-content: center;
}

#myChart {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
}

footer {
    bottom: 0;
    width: 100%;
}

/* Responsividade (opcional: esconde nome do sistema em telas pequenas) */
@media (max-width: 840px) {
    body,
    h1, h2, h3, h4, h5, h6,
    p, span, label, a,
    li, dt, dd,
    th, td,
    input, select, textarea, button {
        font-size: 95%;
    }

    .titulo-container {
        display: none;
    }
}

/* Layout padrão (desktop) permanece como está */
/* Adaptação para dispositivos móveis */
@media (max-width: 576px) {
    .escala-regua .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .escala-regua .col-2 {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .escala-regua .escala {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 0.5rem;
        border-radius: 8px;
    }

        .escala-regua .escala strong {
            display: block;
            font-size: 0.85rem;
            text-align: left;
        }

        .escala-regua .escala div {
            font-size: 0.8rem;
            text-align: left;
        }

    .escala-regua .circulo {
        min-width: 20px;
        min-height: 20px;
        border-radius: 50%;
    }

    /* Ajuste opcional para deixar a descrição "Escala de Avaliação" mais compacta */
    .escala-regua .col-2:first-child {
        font-size: 0.9rem;
    }
}