/* =========================================
 *  RESET
 = *======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 50px 25px;

    font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

    color: #edf3ff;

    background:
    radial-gradient(
        circle at 15% 15%,
        rgba(57, 92, 255, 0.20),
                    transparent 30%
    ),
    radial-gradient(
        circle at 90% 80%,
        rgba(0, 220, 190, 0.13),
                    transparent 30%
    ),
    #050811;
}


/* =========================================
 *  CONTAINER
 = *======================================== */

.crud-container {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 30px;
}


/* =========================================
 *  CARD
 = *======================================== */

.crud-card {
    position: relative;

    padding: 35px;

    border-radius: 22px;

    background:
    linear-gradient(
        145deg,
        rgba(18, 27, 50, 0.90),
                    rgba(10, 17, 33, 0.80)
    );

    border:
    1px solid
    rgba(255, 255, 255, 0.09);

    box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(20px);

    overflow: hidden;

    animation:
    entradaCard
    0.6s ease;
}


.crud-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
    linear-gradient(
        90deg,
        transparent,
        #4364ff,
        #35e6c2,
        transparent
    );
}


@keyframes entradaCard {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
 *  TÍTULOS
 = *======================================== */

h1,
h2 {
    margin: 0;
}

h1 {
    margin-top: 10px;

    font-size: 31px;
}

h2 {
    margin-top: 10px;

    font-size: 25px;
}


.descricao,
.titulo-tabela p {
    margin: 7px 0 28px;

    color: #8290ab;

    font-size: 14px;
}


.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    color: #8ca2ff;

    background:
    rgba(67, 100, 255, 0.12);

    border:
    1px solid
    rgba(67, 100, 255, 0.25);
}


/* =========================================
 *  CADASTRO
 = *======================================== */

.form-cadastro {
    display: grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap: 20px;
}


.campo {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.campo label {
    color: #9ba8c2;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
 *  INPUTS
 = *======================================== */

input,
select {
    width: 100%;
    height: 48px;

    padding: 0 15px;

    border-radius: 10px;

    border:
    1px solid
    rgba(255, 255, 255, 0.10);

    outline: none;

    color: #ffffff;

    background:
    rgba(5, 11, 24, 0.70);

    font-size: 14px;

    transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}


input::placeholder {
    color: #536078;
}


input:hover,
select:hover {
    background:
    rgba(8, 16, 33, 0.95);

    border-color:
    rgba(92, 121, 255, 0.45);
}


input:focus,
select:focus {
    transform:
    translateY(-2px);

    border-color: #5575ff;

    box-shadow:
    0 0 0 4px
    rgba(80, 112, 255, 0.12);
}


/* =========================================
 *  BOTÕES
 = *======================================== */

.btn {
    height: 44px;

    padding:
    0 20px;

    border-radius: 10px;

    border: none;

    cursor: pointer;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}


.btn:hover {
    transform:
    translateY(-2px);
}


.btn:active {
    transform:
    scale(.97);
}


/* =========================================
 *  SALVAR
 = *======================================== */

.btn-salvar {
    grid-column:
    1 / -1;

    height: 50px;

    color: #ffffff;

    background:
    linear-gradient(
        120deg,
        #3156ff,
        #607dff
    );

    box-shadow:
    0 12px 30px
    rgba(49, 86, 255, .30);
}


.btn-salvar:hover {
    box-shadow:
    0 17px 40px
    rgba(49, 86, 255, .42);
}


/* =========================================
 *  TABELA
 = *======================================== */

.tabela-wrapper {
    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0 9px;
}


thead th {
    padding:
    0 17px 10px;

    text-align: left;

    color: #66758f;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}


tbody tr {
    background:
    rgba(9, 16, 31, .72);

    transition:
    transform .2s ease,
    background .2s ease;
}


tbody tr:hover {
    transform:
    translateY(-2px);

    background:
    rgba(18, 29, 52, .96);
}


td {
    padding:
    14px 17px;

    border-top:
    1px solid
    rgba(255, 255, 255, .05);

    border-bottom:
    1px solid
    rgba(255, 255, 255, .05);
}


td:first-child {
    border-left:
    1px solid
    rgba(255, 255, 255, .05);

    border-radius:
    12px 0 0 12px;
}


td:last-child {
    border-right:
    1px solid
    rgba(255, 255, 255, .05);

    border-radius:
    0 12px 12px 0;
}


/* =========================================
 *  MAC
 = *======================================== */

.mac-id {
    color: #9fb0d4;

    font-family:
    Consolas,
    "Courier New",
    monospace;

    font-size: 13px;

    white-space: nowrap;
}


.icone-mac {
    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background: #4364ff;

    box-shadow:
    0 0 12px
    rgba(67, 100, 255, .8);
}


/* =========================================
 *  CAMPOS UPDATE
 = *======================================== */

.input-table {
    height: 40px;

    min-width: 150px;
}


.select-status {
    height: 40px;

    min-width: 100px;
}


/* =========================================
 *  AÇÕES
 = *======================================== */

.acoes {
    display: flex;

    gap: 8px;

    align-items: center;
}


.btn-atualizar {
    height: 39px;

    color: #7897ff;

    background:
    rgba(59, 97, 246, .12);

    border:
    1px solid
    rgba(59, 97, 246, .24);
}


.btn-atualizar:hover {
    color: #ffffff;

    background: #3f63ed;

    box-shadow:
    0 10px 25px
    rgba(63, 99, 237, .26);
}


.btn-excluir {
    height: 39px;

    color: #ff7885;

    background:
    rgba(239, 68, 68, .08);

    border:
    1px solid
    rgba(239, 68, 68, .18);
}


.btn-excluir:hover {
    color: #ffffff;

    background: #dc3d50;

    box-shadow:
    0 10px 25px
    rgba(220, 61, 80, .28);
}


/* =========================================
 *  RESPONSIVO
 = *======================================== */

@media (max-width: 800px) {

    body {
        padding:
        25px 13px;
    }


    .crud-card {
        padding:
        25px 18px;
    }


    .form-cadastro {
        grid-template-columns:
        1fr;
    }


    .acoes {
        flex-direction:
        column;
    }


    .btn-atualizar,
    .btn-excluir {
        width: 100%;
    }


    h1 {
        font-size: 25px;
    }


    h2 {
        font-size: 21px;
    }

}
