/* =========================================================
   DEAD SPACE HUD - CRUD MAC
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Rajdhani', Arial, sans-serif;

    color: #b8c8c5;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(54, 87, 82, 0.16),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #070b0c 0%,
            #0c1112 45%,
            #050708 100%
        );

    min-height: 100vh;

    padding: 45px 20px;

    letter-spacing: 0.4px;
}

/* =========================================================
   EFEITO DE SCANLINES / HUD
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.35;

    z-index: 999;
}

/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.container {
    position: relative;

    width: min(1100px, 100%);

    margin: 0 auto;

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 25, 25, 0.97),
            rgba(7, 11, 11, 0.97)
        );

    border: 1px solid #3d514f;

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(68, 255, 216, 0.04),
        inset 0 0 45px rgba(0, 0, 0, 0.8);

    clip-path: polygon(
        0 14px,
        14px 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        14px 100%,
        0 calc(100% - 14px)
    );
}

/* =========================================================
   CANTOS DA HUD
   ========================================================= */

.container::before,
.container::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    pointer-events: none;
}

.container::before {
    top: 8px;
    left: 8px;

    border-top: 2px solid #8da8a4;
    border-left: 2px solid #8da8a4;
}

.container::after {
    right: 8px;
    bottom: 8px;

    border-right: 2px solid #8da8a4;
    border-bottom: 2px solid #8da8a4;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

h1,
h2,
h3 {
    color: #d5e3df;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 2px;
}

h1 {
    font-size: 30px;

    margin-bottom: 8px;

    text-shadow:
        0 0 10px rgba(120, 255, 220, 0.15);
}

h2 {
    font-size: 23px;

    margin-bottom: 25px;
}

h3 {
    font-size: 21px;

    margin-top: 40px;
    margin-bottom: 20px;

    padding: 12px 15px;

    border-left: 3px solid #62e6c5;

    border-top: 1px solid #263c39;
    border-bottom: 1px solid #263c39;

    background:
        linear-gradient(
            90deg,
            rgba(66, 135, 121, 0.14),
            transparent
        );

    position: relative;
}

/* Pequeno indicador técnico */

h3::after {
    content: "SYSTEM DATABASE";

    position: absolute;

    right: 12px;
    top: 14px;

    font-size: 10px;

    color: #54716c;

    letter-spacing: 2px;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

form {
    width: 100%;
}

form > label {
    display: block;

    margin-top: 20px;
    margin-bottom: 7px;

    color: #718783;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

/* =========================================================
   INPUTS
   ========================================================= */

input[type="text"],
input[type="number"] {
    width: 100%;

    padding: 12px 14px;

    color: #c9ded9;

    background:
        linear-gradient(
            180deg,
            #111817,
            #080c0c
        );

    border: 1px solid #354a47;

    border-radius: 0;

    outline: none;

    font-family: 'Rajdhani', Arial, sans-serif;

    font-size: 15px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

input[type="text"]:hover,
input[type="number"]:hover {
    border-color: #526b66;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #67e6c7;

    background: #0d1514;

    box-shadow:
        0 0 8px rgba(84, 239, 202, 0.08),
        inset 0 0 10px rgba(84, 239, 202, 0.04);
}

input::placeholder {
    color: #465955;
}

/* =========================================================
   CHECKBOX / STATUS
   ========================================================= */

input[type="checkbox"] {
    appearance: none;

    width: 19px;
    height: 19px;

    margin-right: 8px;

    vertical-align: middle;

    background: #080d0c;

    border: 1px solid #48605b;

    cursor: pointer;

    position: relative;
}

input[type="checkbox"]:checked {
    border-color: #65e5c6;

    background: #183d36;

    box-shadow:
        0 0 8px rgba(85, 235, 201, 0.12);
}

input[type="checkbox"]:checked::after {
    content: "✓";

    position: absolute;

    left: 3px;
    top: -1px;

    color: #70efd0;

    font-size: 16px;

    font-weight: bold;
}

/* =========================================================
   BOTÃO
   ========================================================= */

button {
    margin-top: 20px;

    padding: 11px 25px;

    color: #07100e;

    background:
        linear-gradient(
            180deg,
            #7debd1,
            #45b99f
        );

    border: 1px solid #8af2da;

    border-radius: 0;

    font-family: 'Rajdhani', Arial, sans-serif;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    cursor: pointer;

    clip-path: polygon(
        0 0,
        calc(100% - 8px) 0,
        100% 8px,
        100% 100%,
        8px 100%,
        0 calc(100% - 8px)
    );

    transition:
        background 0.2s,
        box-shadow 0.2s,
        transform 0.1s;
}

button:hover {
    background:
        linear-gradient(
            180deg,
            #a0f5e2,
            #58ceb1
        );

    box-shadow:
        0 0 15px rgba(90, 236, 203, 0.18);
}

button:active {
    transform: translateY(1px);
}

/* =========================================================
   TABELA
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    background: rgba(7, 11, 11, 0.8);

    border: 1px solid #354845;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

table tr:first-child {
    background:
        linear-gradient(
            90deg,
            #16211f,
            #0e1514
        );
}

table th {
    padding: 14px;

    color: #6e9189;

    font-size: 12px;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    border-bottom: 1px solid #3d5752;
}

/* =========================================================
   CÉLULAS
   ========================================================= */

table td {
    padding: 15px;

    color: #b6c7c3;

    font-size: 14px;

    border-bottom: 1px solid #1f302d;

    vertical-align: middle;
}

/* =========================================================
   HOVER NAS LINHAS
   ========================================================= */

table tr:not(:first-child) {
    transition:
        background 0.2s,
        box-shadow 0.2s;
}

table tr:not(:first-child):hover {
    background:
        linear-gradient(
            90deg,
            rgba(66, 136, 120, 0.12),
            rgba(66, 136, 120, 0.025)
        );

    box-shadow:
        inset 3px 0 0 #61d7bd;
}

/* =========================================================
   UPDATE DENTRO DA TABELA
   ========================================================= */

table td form {
    display: flex !important;

    align-items: center;

    gap: 10px;

    width: 100%;
}

table td form label {
    margin: 0;

    color: #647b76;

    font-size: 11px;

    text-transform: uppercase;

    white-space: nowrap;
}

table td form input[type="text"],
table td form input[type="number"] {
    width: auto;

    min-width: 130px;

    padding: 8px 10px;

    font-size: 13px;
}

table td form button {
    margin-top: 0;

    padding: 8px 15px;

    font-size: 11px;
}

/* =========================================================
   EXCLUIR
   ========================================================= */

a {
    position: relative;

    display: inline-block;

    margin-left: 12px;

    padding: 7px 12px;

    color: #d47b7b;

    border: 1px solid #513536;

    background: rgba(100, 30, 30, 0.12);

    text-decoration: none;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

a:hover {
    color: #ff9999;

    border-color: #a65353;

    background: rgba(150, 40, 40, 0.18);

    box-shadow:
        0 0 10px rgba(200, 60, 60, 0.08);
}

/* =========================================================
   MENSAGENS
   ========================================================= */

p {
    padding: 12px 15px;

    margin-bottom: 20px;

    color: #9cc4bb;

    background: rgba(45, 90, 80, 0.12);

    border-left: 3px solid #60d8bd;

    border-top: 1px solid #263e39;

    border-bottom: 1px solid #263e39;

    font-size: 14px;
}

/* =========================================================
   STATUS - OPCIONAL
   ========================================================= */

.status {
    display: inline-block;

    padding: 4px 10px;

    color: #69e4c5;

    border: 1px solid #3f7769;

    background: rgba(58, 150, 126, 0.12);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.status.ativo {
    color: #70e9c9;

    border-color: #4d907d;
}

.status.inativo {
    color: #d77c7c;

    border-color: #754646;

    background: rgba(120, 45, 45, 0.1);
}

/* =========================================================
   LINHAS DE DADOS
   ========================================================= */

table td:first-child {
    color: #72cbb7;

    font-family: monospace;

    letter-spacing: 1px;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050707;
}

::-webkit-scrollbar-thumb {
    background: #304541;

    border: 2px solid #080b0b;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d6c65;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 800px) {

    body {
        padding: 20px 10px;
    }

    .container {
        padding: 22px;
    }

    table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    table td form {
        flex-wrap: wrap;
    }

}

@media (max-width: 500px) {

    .container {
        padding: 16px;
    }

    h3 {
        font-size: 18px;
    }

    h3::after {
        display: none;
    }

    table td,
    table th {
        padding: 10px;
    }

}