#conteudo {
    margin-top: 120px;
    margin-bottom: 50px;
}

#campo_adicionar {
    margin-top: 150px;
    width: 100%;
    display: flex;
    justify-content: end;
}

#campo_adicionar_alarme {
    margin-top: 80px;
    width: 100%;
    display: flex;
    justify-content: end;
}

.mensagem{
    margin-left: 20px;
}

#adicionar {
    cursor: pointer;
    background-color: #0d6dfd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: start;
    border: none;
    height: 55px;
    width: 300px;
    padding: 10px;
    color: #fff;
    font-size: 20px;
    gap: 20px;
    margin-right: 50px;
}

#adicionar:hover {
    opacity: 0.7;
    transition: 0.3s;
}

#adicionar img {
    margin-left: 10px;
    width: 25px;

}

#adicionar_alarme {
    cursor: pointer;
    background-color: #0d6dfd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: start;
    border: none;
    height: 55px;
    width: 300px;
    padding: 10px;
    color: #fff;
    font-size: 20px;
    gap: 20px;
    margin-right: 50px;
}

#adicionar_alarme:hover {
    opacity: 0.7;
    transition: 0.3s;
}

#adicionar_alarme img {
    margin-left: 10px;
    width: 25px;

}

.divisao {
    margin: auto;
    width: 65%;
    border-top: 1px solid #00000052;
    margin-top: 80px;
}

.divisao h2 {
    font-weight: 500;
    font-size: 24px;
    margin: 30px auto;
    margin-left: 20px;
    margin-top: 10px;
}

.titulo {
    display: flex;
    justify-content: space-between;
}

#excluir {
    width: 25px;
}

.campo_excluir {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #DC3545;
    z-index: 10;
}

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

.titulos_campos {
    font-size: 20px;
    font-weight: 500;
    color: #0d6dfd;
    margin-top: 0px;
    margin-bottom: 5px;
}

.titulo span {
    color: #4d4d4d;
    margin-top: 0px;
}

.opcao {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    background-color: #0d6dfd;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
}

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

#monitoramento {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    height: 260px;
    min-width: 320px;
    border: 1px solid transparent;
    box-shadow:
        0 0 15px 1px rgba(0, 0, 0, 0.234);
    transition: box-shadow 0.3s ease;
}

#detalhes {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#detalhes img {
    width: 15px;
}

#monitoramento:hover {
    border-color: #0d6dfdcd;
    box-shadow:
        0 0 15px 1px #0d6dfd98;
    transition: box-shadow 0.3s ease;
}

#temp {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin: 20px auto;
    margin-top: 50px !important;
}

#esfera {
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: #262626a1;
    border-radius: 50%;
    cursor: pointer;
}

#temperaturas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
}

#temp_atual {
    text-align: center;
}

#campo_config {
    position: absolute;
    width: 100%;
    display: flex;
    top: 0px;
    justify-content: center;
    align-items: center;
    height: calc(70vh - 200px);
}

div#temp {
    margin-top: 50px;
    background-color: #dadada10;
    padding: 60px;
    border-radius: 100%;
    position: relative;
    border: 2px dashed #a3a3a3;

}

#campo_config p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    color: #333;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
}

div#temp_atual {
    position: relative;
}

p#temp_selecionando {
    font-size: 32px;
    color: #2c2c2c;
}

p#adicionar_temp {
    position: absolute;
    color: #2c2c2c;
    font-size: 14px;
    bottom: 10%;
}

p#cima {
    top: 2%;
}

p#baixo {
    bottom: 2%;
}

p#temp_esquerda {
    top: 50%;
    transform: translate(-100%, -50%);
    left: 13%;
}

p#temp_direita {
    top: 50%;
    transform: translate(100%, -50%);
    right: 22%;
}

div#temperaturas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    background: linear-gradient(to bottom, #f25974, #41a5f6);
    border-radius: 100%;
}

div#temp_atual {
    color: #2c2c2c;
    display: flex;
    background-color: #fff;
    width: 100px;
    height: 100px;
    border: 1px solid;
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: 600;
}

#monitoramentos {
    margin: auto;
    width: 65%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.alerta {
    margin-top: 20px;
    width: 100%;
    text-align: start !important;
    background-color: #fd0d0d;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
    animation: pulsate 1.5s infinite;
    /* Aplica a animação */
}

.alerta #descricao {
    height: 30px !important;
    padding-left: 0px !important;
}

/* Define a animação */
@keyframes pulsate {

    0%,
    100% {
        background-color: #fd0d0d;
        /* Tom de vermelho forte */
    }

    50% {
        background-color: #fe4646;
        /* Tom de vermelho mais fraco */
    }
}

.alerta .titulos_campos {
    color: #fff !important;
}

.alerta #descricao {
    color: #fff;
    box-shadow: none;
}

.alertas .titulo {
    color: #fd0d0d !important;
}

@media (max-width: 1290px) {

    #temp {
        margin-top: 100px !important;
    }
}

@media (max-width: 800px) {
    #temp {
        margin-top: -80px !important;
    }

    #campo_config {
        left: 50%;
        top: 63%;
        position: absolute;
        transform: translate(-50%, -50%);
    }
}

#programacoes {
    width: 65%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.programacao {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
    flex: 1 1 calc(27% - 20px);
    min-width: 200px;
    height: 400px;
    border: 1px solid transparent;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.234);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 1024px) {
    .programacao {
        flex: 1 1 calc(50% - 20px);
    }

}

@media (max-width: 600px) {
    .programacao {
        flex: 1 1 100%;
        max-width: 100% !important;
    }
}

@media (max-width: 450px) {
    .divisao {
        width: 90%;
    }

    #monitoramentos {
        width: 90%;
    }

    #programacoes {
        width: 90%;
    }

    #campo_adicionar {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #campo_adicionar_alarme {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #adicionar {
        margin-right: 0px;
    }
}

.programacao:hover {
    border-color: #0d6dfdcd;
    box-shadow:
        0 0 15px 1px #0d6dfd98;
    transition: box-shadow 0.3s ease;
}

.dias {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0px;
    width: 100%;
}

.dia {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    background-color: #0d6dfd;
    list-style: none;
}

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


#alarmes {
    width: 65%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.alarme {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
    flex: 1 1 calc(27% - 20px);
    min-width: 200px;
    height: 190px;
    border: 1px solid transparent;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.234);
    transition: box-shadow 0.3s ease;
}

.alarme:hover {
    border-color: #0d6dfdcd;
    box-shadow:
        0 0 15px 1px #0d6dfd98;
    transition: box-shadow 0.3s ease;
}

@media (max-width: 1024px) {
    .alarme {
        flex: 1 1 calc(50% - 20px);
    }

}

@media (max-width: 600px) {


    .alarme {
        flex: 1 1 100%;
        max-width: 100% !important;
    }
}

@media (max-width: 450px) {
    #alarmes {
        width: 90%;
    }
}

#descricao {
    color: #4d4d4d;
    margin-top: 10px;
    height: 80px;
    overflow: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.125);
    padding: 10px;
    border-radius: 5px;
}

#opcao_excluir {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 40px;
    padding: 0px;
    border-radius: 8px;
    background-color: #DC3545;
    z-index: 10;
}


#opcoes {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

#opcao_excluir img {
    width: 25px;
}

.opcao img {
    width: 15px;
}


@media (min-width:600px) {
    #campo_config {
        height: calc(50vh - 200px);
    }
}

.layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 40px;
    padding: 20px;
    width: 85%;
    margin: auto;
    margin-top: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.234);
    transition: box-shadow 0.3s ease;
    background: #fff;
    padding: 20px;
    text-align: center;
}

.alertas #nome_monitoramento.titulos_campos {
    color: #FD0D0D;
}

#nome_monitoramento.titulos_campos {
    text-align: start;
}

.card:hover {
    border-color: #0d6dfdcd;
    box-shadow:
        0 0 15px 1px #0d6dfd98;
    transition: box-shadow 0.3s ease;
}

.alertas:hover {
    border-color: #FD0D0D;
    box-shadow:
        0 0 15px 1px #fd0d0d98;
    transition: box-shadow 0.3s ease;
}

.card.z {
    grid-row: span 1;
}

.card.y {
    grid-row: span 3;
}

.campos_detalhes {
    margin-top: 20px;
    border-top: 1px solid #3333333b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.campos_detalhes h3 {
    color: #333333d3;
    font-weight: 500;
    font-size: 21px;
    margin-bottom: 10px;
}

.campos_detalhes p {
    margin-bottom: 15px;
}

.z .detalhes {
    margin-left: 0px;
}

.detalhes {
    display: flex;
    width: 75%;
    margin-left: 10px;
    justify-content: space-between;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

td {
    text-align: center;
    position: relative;
}

input[type="time"] {
    width: 45%;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

select {
    width: 90%;
    height: 45px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    padding: 5px;
}

button.delete-row {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button.delete-row:hover {
    background-color: #c82333;
}

button.add-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    width: 90%;
    height: 45px;
    transition: background-color 0.3s ease;
}

button.add-btn:hover {
    background-color: #0056b3;
}

#modal-footer {
    border-top: 1px solid #3333333e;
    padding-top: 20px;
    margin-top: 10px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    gap: 10px;
    margin-top: 15px;
}

#modal-footer button {
    width: 49%;
    height: 45px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#modal-footer button:hover {
    opacity: 0.8;
}

#fechar-modal-dias {
    background-color: #6c757d;
    color: #fff;
}

#salvar-modal-dias {
    background-color: #0d6efd;
    color: #fff;
}

.campos_adicionar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-ok {

    background-color: #0D6EFD;
}

#tab-graficos {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

#tabs ul {
    padding-left: 20px;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: start;
    margin-bottom: 20px !important;
}

.dataTables_wrapper .dataTables_filter input {
    height: 35px !important;
    outline: none;
}

@media(max-width: 500px) {
    .dataTables_length label {
        justify-content: center;
    }

    .dataTables_wrapper .dataTables_filter input {
        margin-bottom: 20px;
    }
}


.dataTables_length label select {
    width: 60px;
    height: 35px;
}

.dataTables_info {
    color: #333 !important;
    margin-top: 20px !important;
}

.dataTables_paginate.paging_simple_numbers {
    margin-top: 20px !important;
}

#campo_botoes_modal {
    display: flex;
    justify-content: end;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

#campo_botoes_modal button {
    font-size: 17px;
    margin-right: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 10;
    background-color: #eeeeee;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
}

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

#exportar_excel {
    background-color: #0D6EFD !important;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 20px;
    }

    .card {
        padding: 15px;
    }

    .campos_detalhes h3 {
        color: #333333d3;
        font-weight: 500;
        font-size: 21px;
        margin-bottom: 5px;
    }

    .campos_detalhes p {
        margin-bottom: 13px;
    }
}

@media (max-width: 480px) {
    .layout {
        padding: 10px;
    }

}