/* =========================================================
   STEAM STYLE - CRUD MAC
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #d6d7d8;

    background:
        radial-gradient(circle at 50% 0%, #1b4261 0%, transparent 35%),
        linear-gradient(180deg, #171d25 0%, #101419 100%);

    min-height: 100vh;
    padding: 40px 20px;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1100px, 100%);
    margin: 0 auto;

    background: rgba(23, 32, 42, 0.96);

    border: 1px solid #2a3a4b;
    border-radius: 6px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(0, 120, 180, 0.08);

    padding: 35px;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 8px;
}

h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
}

h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;

    margin-top: 40px;
    margin-bottom: 18px;

    padding-bottom: 12px;

    border-bottom: 1px solid #2a3a4b;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

form {
    width: 100%;
}

form > label {
    display: block;

    color: #b8c4d0;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 7px;
    margin-top: 18px;
}

/* =========================================================
   INPUTS
   ========================================================= */

input[type="text"],
input[type="number"] {
    width: 100%;

    background: #10161d;

    color: #eeeeee;

    border: 1px solid #33475a;
    border-radius: 3px;

    padding: 12px 14px;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus {
    background: #121b24;

    border-color: #1a9fff;

    box-shadow:
        0 0 0 1px #1a9fff,
        0 0 12px rgba(26, 159, 255, 0.15);
}

input::placeholder {
    color: #6c7b88;
}

/* =========================================================
   CHECKBOX
   ========================================================= */

input[type="checkbox"] {
    appearance: none;

    width: 18px;
    height: 18px;

    background: #10161d;

    border: 1px solid #526679;
    border-radius: 3px;

    cursor: pointer;

    vertical-align: middle;

    position: relative;

    margin-right: 8px;
}

input[type="checkbox"]:checked {
    background: #1a9fff;
    border-color: #1a9fff;
}

input[type="checkbox"]:checked::after {
    content: "✓";

    position: absolute;

    color: white;

    font-size: 13px;
    font-weight: bold;

    left: 3px;
    top: 0px;
}

/* =========================================================
   BOTÃO PRINCIPAL
   ========================================================= */

button {
    border: none;
    border-radius: 3px;

    padding: 11px 22px;

    background: linear-gradient(
        to bottom,
        #75c8ff 0%,
        #1a9fff 100%
    );

    color: #ffffff;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.35);

    transition:
        filter 0.2s,
        transform 0.1s,
        box-shadow 0.2s;
}

button:hover {
    filter: brightness(1.12);

    box-shadow:
        0 3px 12px rgba(26, 159, 255, 0.25);
}

button:active {
    transform: translateY(1px);
}

/* =========================================================
   TABELA
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    background: #171e27;

    border: 1px solid #2d3d4d;

    overflow: hidden;
}

/* Cabeçalho */

table tr:first-child {
    background: linear-gradient(
        180deg,
        #243647,
        #1c2935
    );
}

table th {
    color: #d7e4ee;

    font-size: 13px;
    font-weight: bold;

    text-align: left;

    padding: 14px;

    border-bottom: 1px solid #3a4d5f;
}

/* Células */

table td {
    padding: 14px;

    border-bottom: 1px solid #263441;

    color: #c7d5df;

    font-size: 14px;

    vertical-align: middle;
}

/* Linhas */

table tr:not(:first-child) {
    transition: background 0.2s;
}

table tr:not(:first-child):hover {
    background: #202e3b;
}

/* =========================================================
   FORMULÁRIO DE UPDATE DENTRO DA TABELA
   ========================================================= */

table td form {
    display: flex !important;

    align-items: center;

    gap: 10px;

    width: 100%;
}

table td form input[type="text"],
table td form input[type="number"] {
    width: auto;

    min-width: 150px;

    padding: 9px 10px;
}

/* Labels do formulário de atualização */

table td form label {
    color: #8fa4b5;

    font-size: 12px;

    white-space: nowrap;
}

/* Botão atualizar */

table td form button {
    background: linear-gradient(
        to bottom,
        #67b9e8,
        #267aa8
    );

    padding: 9px 15px;

    white-space: nowrap;
}

/* =========================================================
   LINK EXCLUIR
   ========================================================= */

a {
    display: inline-block;

    margin-left: 12px;

    color: #e25b5b;

    text-decoration: none;

    font-size: 13px;

    transition:
        color 0.2s,
        text-shadow 0.2s;
}

a:hover {
    color: #ff6b6b;

    text-decoration: underline;

    text-shadow:
        0 0 8px rgba(255, 80, 80, 0.25);
}

/* =========================================================
   MENSAGENS PHP
   ========================================================= */

p {
    background: #172b38;

    border-left: 3px solid #1a9fff;

    color: #d7e7f2;

    padding: 12px 15px;

    margin-bottom: 20px;

    font-size: 14px;
}

/* =========================================================
   STATUS
   ========================================================= */

/* Caso você queira usar:
   <span class="status ativo">Ativo</span>
*/

.status {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 3px;

    font-size: 11px;
    font-weight: bold;

    text-transform: uppercase;
}

.status.ativo {
    background: rgba(87, 166, 57, 0.18);

    border: 1px solid #57a639;

    color: #8bcf6b;
}

.status.inativo {
    background: rgba(180, 60, 60, 0.18);

    border: 1px solid #a94444;

    color: #e47b7b;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #101419;
}

::-webkit-scrollbar-thumb {
    background: #34495a;

    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #466176;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 800px) {

    body {
        padding: 20px 10px;
    }

    .container {
        padding: 20px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table td form {
        flex-wrap: wrap;
    }

}

@media (max-width: 500px) {

    .container {
        padding: 15px;
    }

    h3 {
        font-size: 19px;
    }

    table td,
    table th {
        padding: 10px;
    }

}