.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: auto;

}

.modal-content {
    background-color: #fff;
    padding: 20px;
    padding-left: 0px;
    padding-right: 0px;
    border-radius: 10px;
    width: 90%;
    min-width: 320px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-weight: 400;
    width: 90%;
    margin: 15px auto;
    text-align: start;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

#form_adicionar {
    margin: auto;
    width: 91%;
    border-top: 1px solid #33333351;
    padding: 0px;
    padding-bottom: 20px;
    border-bottom: 1px solid #33333351;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.campos_adicionar {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 2px;
    margin-top: 15px;
}

#form_adicionar select {
    width: 100%;
    height: 40px;
}

#form_adicionar input {
    padding: 0px;
    width: 94%;
    height: 20px;
    box-shadow: none;
}

#form_adicionar input,
select {
    padding: 10px;
    outline: none;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

#form_adicionar input:focus {
    border-color: #0D6EFD;
    box-shadow:
        0 0 30px 1px #0d6dfd3e;
}

#form_adicionar select:focus {
    border-color: #0D6EFD;
    box-shadow:
        0 0 30px 1px #0d6dfd3e;
}

.valores {
    margin-top: 20px;
    width: 100%;
    gap: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100%;
}

.input-parametro{
    box-sizing: border-box;
    width: 100% !important;
    height: 40px !important;
}

#botoes_adicionar {
    margin: auto;
    display: flex;
    margin-top: 20px;
    width: 90%;
    justify-content: space-between;
}

#botoes_adicionar button {
    cursor: pointer;
    width: 45%;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
}

#botoes_adicionar button:hover {
    opacity: 0.7;
    transition: 0.3s;
}

#salvar_adicionar {
    background-color: #0D6EFD;
    color: #fff;
}

#salvar_adicionar_alarme {
    background-color: #0D6EFD;
    color: #fff;
}

#salvar-modal-detalhes {
    background-color: #0D6EFD;
    color: #fff;
}

.hidden {
    display: none;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

#acao {
    color: #4d4d4d;
    width: 90%;
    margin: auto;
    text-align: start;
    margin-top: -5px;
    margin-bottom: 20px;
}

.btn {
    width: 30%;
    height: 45px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    margin: 20px auto;
    cursor: pointer;
}

.btn-cancel {
    background-color: #0D6EFD;
    color: white;
}

.btn-confirm {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.7;
    transition: 0.3s;
}

.show {
    display: flex;
}

#descricao_modal {
    width: 90%;
    margin: auto;
    text-align: start;
}

#descricao_modal h3 {
    color: #222;
    font-weight: 400;
    margin-bottom: 0px;
}

#descricao_modal p {
    margin-top: 10px;
    color: #333;
}

.delete-row {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
}

#tabs {
    margin-top: 20px;
}

#tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

#tabs ul li {
    margin-right: 20px;
}

#tabs ul li a {
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    color: #000;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

#tabs ul li a.active {
    background: #0D6EFD;
    color: #fff;
}

#tab-graficos,
#tab-tabela {
    display: none;
}

#tab-graficos.active,
#tab-tabela.active {
    display: block;
}

