@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #d9d9d9;
}

.floating-sidebar {
    width: 60px;
    height: calc(124vh - 70px);
    /* Altura total da viewport menos o navbar */
    background-color: #10A37F;
    color: white;
    border-radius: 15px;
    position: absolute;
    top: 75px;
    /* Abaixo do navbar */
    left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow-y: auto;
    /* Adiciona barra de rolagem vertical */
    scrollbar-width: thin;
    /* Compatível com navegadores modernos */
}

/* Escondido no mobile */
.floating-sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

.floating-sidebar .nav-link {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    transition: background 0.3s;
    padding: 5px 0;
}

.floating-sidebar .nav-link:hover {
    background-color: #019b94;
    border-radius: 50%;
}

.floating-sidebar .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 10px auto;
    display: block;
    border: 2px solid white;
}

.floating-sidebar .separator {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, white, transparent);
    margin: 10px auto;
}



/* Styles specific to the #buscar form */
#buscar .form-select,
#buscar .form-control {
    border: 1px solid #ccc;
    height: 42px;
    min-width: 190px;
}

#buscar .form-select:focus,
#buscar .form-control:focus {
    border-color: #10A37F;
    box-shadow: 0 0 5px rgba(16, 163, 127, 0.5);
}


.form-select:focus,
.form-control:focus {
    border-color: #10A37F;
    box-shadow: 0 0 5px rgba(16, 163, 127, 0.5);
}




.datas {
    border: 1px solid #ccc;
    height: 42px;
    min-width: 185px;
    /* Largura mínima para os campos */
}


.btn-success {
    background-color: #10A37F;
    border-color: #10A37F;
}

.btn-success:hover {
    background-color: #0e8d6f;
    border-color: #0e8d6f;
}

.row.g-3 .col-auto {
    flex-grow: 1;
    /* Garante espaçamento automático entre os campos */
}



#card-grafico {
    height: 300px;
    width: 100%;
}

#card-mapas {
    min-height: 600px;
    height: 600px;
}

#card-calendario {
    width: 100%;
    height: 100%;
}

#card-avaliacao {
    height: 250px;
}


.nota_avaliacao {
    font-size: 132px;
}

.nota_star {
    font-size: 50px;
}

/* Estilos apenas para os cards dessa seção */
/* Cards de Status Específicos */
.card-status {
    display: flex;
    height: 100px;
    border-radius: 10px;
    border: none;
    text-align: left;
}

.gauge {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

#card-aguardando {
    background-color: #ccc;
}

#card-recusadas {
    background-color: #fde7e0;
}

#card-aceitas {
    background-color: #dfffd6;
}

#card-andamento {
    background-color: #d9f2ff;
}

#card-prorrogadas {
    background-color: #e9ddff;
}

#card-esgotado {
    background-color: #f6dada;
}

#card-concluidas {
    background-color: #cfeae8;
}

#card-reabertas {
    background-color: #e7e1d9;
}

/* Gráfico Central */
#pie_chart {
    height: 375px;
}
#chart-pie-google {
    max-width: 500px;
    max-height: 375px;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

#avaliacoesPieChart {
    max-width: 500px;
    max-height: 400px;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

.card-status canvas {
    width: 100% !important;
    /* Certifique-se de que os gráficos ocupem 100% da largura do container */
    height: 100% !important;
    /* Ajuste para preencher a altura */
    max-width: 80px;
    /* Defina um limite para evitar gráficos muito grandes */
    max-height: 80px;
    /* Tamanho fixo para altura */
}

#curve_chart {
    width: 610px;
    height: 200px;
}


.container {
    margin-right: 32px;
    margin-left: 100px;
    max-width: 92%
}

#example1 .status-btn {
    border: none;
    padding: 5px 10px;
    font-weight: bold;
    color: white;
    border-radius: 5px;
}

#example1 .status-btn.reclamacao {
    background-color: #dc3545;
}

#example1 .progress {
    position: relative;
}

#example1 .progress-bar {
  
    position: relative;
    z-index: 1;
    background-color: #28a745;
}

#example1 .progress-text {
    text-align: center;
    font-weight: bold;
    color: #000;
    margin-top: 1px;
    font-size: 10px;
}

#example1 .progress-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 5px;
    font-size: 0.9rem;
}

#example1 .progress-dates .date {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#example1 .progress-dates .date:last-child {
    margin-bottom: 0;
}

#example1 .progress-dates .date i {
    margin-right: 5px;
}

#example1 .icon-actions i {
    margin-right: 10px;
    cursor: pointer;
}

#example1 .status-bg {
    width: 150px;
    height: 126px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Align icons and name in the same row */
#example1 .icon-actions-and-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

#example1 .icon-actions-and-name .icon-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-grow: 1;
}

/* Limit description height */
#example1 .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

#tipo_table .status_tipo{
    border-radius: 10px;
}
/* Prevent text wrapping */
#tipo_table p, #tipo_table small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ########################################################### Responsividade ########################################################### */







@media (max-width: 1199.98px) {
    .container {
        margin-right: 32px;
        margin-left: 100px;
        max-width: 92%
    }

    #card-grafico {
        height: 300px;
        width: 100%;
    }

    #curve_chart {
        width: 100%;
        height: 200px;
    }
}


@media (max-width: 991.98px) {
    .floating-sidebar {
        transform: translateX(-100%);
        opacity: 0;
    }

    .floating-sidebar.hidden {
        display: none;
    }

    .container {
        margin-right: auto;
        margin-left: auto;

    }

    #card-grafico {
        height: 300px;
        width: 100%;
    }

    #curve_chart {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .container {
        margin-right: auto;
        margin-left: auto;

    }

    #card-grafico {
        height: 300px;
        width: 100%;
    }

    #curve_chart {
        width: 100%;
        height: 200px;
    }
}


@media (max-width: 575.98px) {
    #titulo-menu {
        font-size: 12px;
    }

    #card-grafico {
        height: 300px;
        width: 100%;
    }

    #curve_chart {
        width: 100%;
        height: 200px;
    }

    .container {
        margin-right: auto;
        margin-left: auto;

    }
}