@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    align-items: center;
    overflow: -moz-scrollbars-none; /* Firefox */
    -ms-overflow-style: none;       /* IE e Edge */
}

.container {
    width: 90%;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
}

.container header {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.container header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 27px;
    border-radius: 8px;
    background-color: #1d2634;
}

.container form {
    position: relative;
    margin-top: 16px;
    min-height: 200px;
    background-color: #fff;
}

.container form .details {
    margin-top: 30px;
}

.container form .title {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    margin: 6px 0;
    color: #333;
}

.container form .fields {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

form .fields .input-field {
    display: flex;
    width: calc(100% / 2 - 15px);
    flex-direction: column;
    position: relative;
}

.input-field label {
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
}

.input-field input, .input-field select, .input-field textarea {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    outline: none;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
    resize: none;
}

.container form button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin: 25px 0;
    background-color: #1d2634;
    transition: all 0.3s linear;
    cursor: pointer;
    text-decoration: none;
}

form button:hover {
    background-color: #4b49ac;
}

form button i {
    margin: 0 6px;
}

.table-wrapper {
    overflow-x: hidden;
    border-radius: 15px;
    margin-top: 20px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    font-family: "Poppins", sans-serif;
    text-align: left;
    background-color: #f3f3f3;
}

.styled-table thead tr {
    background-color: #1d2634;
    color: #ffffff;
    text-align: left;
    font-weight: 400;
}

.styled-table th, .styled-table td {
    padding: 10px 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-transform: uppercase;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

.styled-table .btn-excluir,
.styled-table .btn-editar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: 4px;
    vertical-align: middle;
}

.styled-table .btn-excluir {
    color: #dc3545;
}

.styled-table .btn-editar {
    color: #007bff;
}

/* Estilos para o modal de mensagem */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-button {
    padding: 10px 20px;
    background-color: #1d2634;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #4b49ac;
}

/* Estilos para o modal de cadastro/edição */
.form-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.form-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
}

.form-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.form-modal-close:hover,
.form-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-modal-button {
    padding: 10px 20px;
    background-color: #1d2634;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-top: 36px;
    margin-bottom: 5px;
    margin-left: 18px;
}

.form-modal-button:hover {
    background-color: #4b49ac;
}

/* Estilos para os filtros */
.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters .input-field {
    width: calc(25% - 10px);
    position: relative;
}

.filters .input-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filters .input-field input,
.filters .input-field select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #aaa;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
}

/* Estilos para o switch de cadastro */
.cadastro .switch {
    position: relative;
    background-color: #1d2634;
    width: 130px;
    height: 40px;
    border-radius: 40px;
    /* display: flex; */
    align-items: center;
    padding: 5px;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    margin-top: 48px;
    margin-left: 15px;
}

.cadastro .slider {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: transform 0.5s ease;
}

.cadastro .slider-text {
    width: 45px;
    height: 31px;
    margin-top: 10px;
    transition: all 0.5s ease-in-out;
    margin-left: 40px;
    font-size: 12px;
    color: #fff;
}

#chk {
    display: none;
}

#chk:checked ~ .switch {
    background-color: #1d2634;
}

#chk:checked ~ .switch .slider {
    transform: translateX(80px);
}

/* Estilos para o switch */
.switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(86px);
}

/* Ajustes de responsividade */
@media (max-width: 600px) {
    .filters .input-field input,
    .filters .input-field select {
        width: 100%;
        border-radius: 5px;
        border: 1px solid #aaa;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
    }
    .filters .input-field {
        width: calc(52% - 11px);
    }
    .container {
        width: 100%;
        border-radius: 6px;
        padding: 12px;
        background-color: #fff;
    }
}

/* Estilos adicionais */
.date-buttons {
    position: absolute;
    right: 10px;
    top: 44px;
    display: flex;
    gap: 4px;
    left: 126px;
}

.date-buttons button {
    padding: 2px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background-color: #1d2634;
    color: #fff;
}

.cadastro .switch {
            position: relative;
            background-color: #1d2634;
            width: 130px;
            height: 40px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            padding: 5px;
            transition: all .5s ease-in-out;
            cursor: pointer;
            margin-top: 48px;
            margin-left: 15px;
        }

        .cadastro .slider {
            position: absolute;
            background-color: white;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            transition: transform 0.5s ease;
        }

        .cadastro .slider-text {
            width: 45px;
            height: 31px;
            margin-top: 10px;
            transition: all .5s ease-in-out;
            margin-left: 40px;
            font-size: 12px;
            color: #fff;
        } 

        .cadastro {
            display: flex;
        }

        #chk {
            display: none;
        }

        #chk:checked ~ .switch {
            background-color: #1d2634;
        }

        #chk:checked ~ .switch .slider {
            transition: transform 0.8s ease;
            transform: translateX(80px);
        }

        .cadastro {
            display: flex;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 120px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        input:checked + .slider {
            background-color: #2196F3;
        }

        input:checked + .slider:before {
            transform: translateX(86px);
        }

        .third-button {
                width: 118px;
                text-align: center;
                background: #4b49ac; /*Parte de baixo do botão*/
                border-radius: 8px;
                color: #FFF;
                padding: 0;
                outline-offset: 4px;
                font-size: 12px;
                margin: 5px;
                transition: background-color 0.3s ease; /* Transição suave para a mudança de cor */
            }

            .third-button span {
                display: block;
                padding: 9px 20px;
                border-radius: 8px;
                background: #1d2634; /*Parte de cima do botão*/
                transform: translateY(-5px); /* Mantém o efeito de descida */
                transition: transform 0.2s ease, background-color 0.3s ease; /* Transição suave para cor e movimento */
                width: 100%;
                text-align: center;
            }

            .third-button:hover {
                background-color: #4b49ac; /* Nova cor do botão ao passar o mouse */
            }

            .third-button:hover span {
                background-color: #4b49ac; /* Nova cor de fundo do span ao passar o mouse */
                transform: translateY(-4px); /* Mantém a leve descida ao passar o mouse */
            }

            .third-button:active span {
                transform: translateY(-1px); /* Leve movimento ao clicar */
            }

            .third-button.active span {
                background-color: #4b49ac; /* Cor de fundo fixa para o botão ativo */
                transform: translateY(-4px); /* Mantém o efeito de leve descida */
            }