/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 40px 20px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #f5f5f5;

    background:
        radial-gradient(circle at top right, rgba(180, 0, 0, 0.18), transparent 35%),
        radial-gradient(circle at bottom left, rgba(120, 0, 0, 0.12), transparent 30%),
        #0b0b0b;
}


/* =========================================================
   CONTAINER DO FORMULÁRIO
========================================================= */

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;

    padding: 30px;

    background: linear-gradient(145deg, #181818, #101010);

    border: 1px solid #2e2e2e;
    border-top: 3px solid #e00000;

    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.65),
        0 0 25px rgba(180, 0, 0, 0.08);
}


/* =========================================================
   FORMULÁRIO
========================================================= */

form {
    width: 100%;
}

label {
    display: block;
    margin: 15px 0 7px;

    color: #d6d6d6;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* =========================================================
   INPUTS
========================================================= */

input[type="text"],
input[type="number"] {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    color: #ffffff;
    background: #0c0c0c;

    border: 1px solid #383838;
    border-radius: 7px;

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input[type="text"]:hover,
input[type="number"]:hover {
    border-color: #555;
}

input[type="text"]:focus,
input[type="number"]:focus {
    background: #111111;

    border-color: #e00000;

    box-shadow:
        0 0 0 2px rgba(224, 0, 0, 0.15),
        0 0 12px rgba(224, 0, 0, 0.15);
}


/* =========================================================
   BOTÕES
========================================================= */

button {
    margin-top: 22px;

    padding: 11px 24px;

    color: white;

    background: linear-gradient(
        135deg,
        #e00000,
        #a00000
    );

    border: none;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(150, 0, 0, 0.3);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

button:hover {
    background: linear-gradient(
        135deg,
        #ff1717,
        #c00000
    );

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(220, 0, 0, 0.4);
}

button:active {
    transform: translateY(0);
}


/* =========================================================
   CONTAINER DA LISTA
========================================================= */

.containerlista {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 30px;

    background: linear-gradient(
        145deg,
        #181818,
        #101010
    );

    border: 1px solid #2d2d2d;
    border-top: 3px solid #b00000;

    border-radius: 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   TÍTULO
========================================================= */

h3 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;

    border-left: 4px solid #e00000;

    padding-left: 12px;
}


/* =========================================================
   TABELA
========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    background: #0d0d0d;

    border: 1px solid #292929;

    border-radius: 8px;
}


/* Cabeçalho caso você adicione futuramente */
th {
    padding: 14px;

    text-align: left;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #b00000,
        #700000
    );

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Linhas */

td {
    padding: 15px;

    border-bottom: 1px solid #272727;

    color: #dddddd;

    background: #111111;
}


/* Efeito zebra */

tr:nth-child(even) td {
    background: #151515;
}


/* Hover */

tr:hover td {
    background: #1c1111;
}


/* =========================================================
   FORMULÁRIO DE UPDATE
========================================================= */

td form {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;
}

td form label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0;

    color: #bbbbbb;

    font-size: 13px;
}

td form input[type="text"],
td form input[type="number"] {
    width: auto;
    min-width: 160px;

    height: 38px;

    padding: 0 10px;

    font-size: 13px;
}

td form input[type="number"] {
    min-width: 70px;
    width: 70px;
}


/* Botão atualizar */

td form button {
    margin-top: 0;

    height: 38px;

    padding: 0 18px;

    font-size: 13px;
}


/* =========================================================
   LINK EXCLUIR
========================================================= */

a {
    display: inline-block;

    margin-left: 10px;

    padding: 9px 15px;

    color: #ff5555;

    background: rgba(180, 0, 0, 0.08);

    border: 1px solid #650000;

    border-radius: 6px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

a:hover {
    color: #ffffff;

    background: #c00000;

    border-color: #e00000;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(180, 0, 0, 0.3);
}


/* =========================================================
   MENSAGENS
========================================================= */

p {
    max-width: 600px;

    margin: 0 auto 20px;

    padding: 12px 15px;

    color: #ff7777;

    background: rgba(180, 0, 0, 0.12);

    border-left: 4px solid #e00000;

    border-radius: 5px;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 700px) {

    body {
        padding: 20px 10px;
    }

    .container,
    .containerlista {
        padding: 20px 15px;
    }

    td form {
        flex-direction: column;
        align-items: stretch;
    }

    td form label {
        width: 100%;
        justify-content: space-between;
    }

    td form input[type="text"],
    td form input[type="number"] {
        flex: 1;
    }

    td form button {
        width: 100%;
    }

    td a {
        margin: 10px 0 0;
        text-align: center;
        width: 100%;
    }

    table {
        font-size: 13px;
    }

    td {
        padding: 10px;
    }
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: #750000;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c00000;
}