/* =========================================================
   DEAD SPACE HUD
   PAINEL DE LEDS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {
    min-height: 100%;
}


/* =========================================================
   BODY
   ========================================================= */

body {

    font-family: 'Rajdhani', Arial, sans-serif;

    color: #b9c8c5;

    min-height: 100vh;

    padding: 45px 20px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(69, 120, 109, 0.12),
            transparent 40%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(40, 80, 75, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050808 0%,
            #0a0f0f 45%,
            #030505 100%
        );

    letter-spacing: 0.5px;
}


/* =========================================================
   SCANLINES
   ========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 9999;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.018) 0px,
            rgba(255,255,255,0.018) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.25;
}


/* =========================================================
   CONTAINERS
   ========================================================= */

.container,
.containerlista {

    position: relative;

    width: min(1100px, 100%);

    margin: 0 auto 25px auto;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 25, 24, 0.98),
            rgba(7, 11, 10, 0.98)
        );

    border: 1px solid #354845;

    box-shadow:
        0 0 0 1px rgba(0,0,0,0.8),
        0 0 35px rgba(80, 230, 198, 0.035),
        inset 0 0 50px rgba(0,0,0,0.85);

    clip-path: polygon(
        0 15px,
        15px 0,
        calc(100% - 15px) 0,
        100% 15px,
        100% calc(100% - 15px),
        calc(100% - 15px) 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}


/* =========================================================
   CANTOS HUD
   ========================================================= */

.container::before,
.containerlista::before {

    content: "";

    position: absolute;

    top: 8px;
    left: 8px;

    width: 55px;
    height: 55px;

    border-top: 2px solid #718984;
    border-left: 2px solid #718984;

    opacity: 0.7;
}


.container::after,
.containerlista::after {

    content: "";

    position: absolute;

    right: 8px;
    bottom: 8px;

    width: 55px;
    height: 55px;

    border-right: 2px solid #718984;
    border-bottom: 2px solid #718984;

    opacity: 0.7;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

h1,
h2,
h3 {

    font-weight: 500;

    color: #d5e2df;

    text-transform: uppercase;

    letter-spacing: 2px;
}


h1 {

    font-size: 30px;

    margin-bottom: 10px;

    text-shadow:
        0 0 12px rgba(101, 230, 200, 0.15);
}


h2 {

    font-size: 23px;

    margin-bottom: 25px;
}


h3 {

    position: relative;

    font-size: 22px;

    margin-bottom: 22px;

    padding: 12px 16px;

    border-left: 3px solid #65ddc0;

    border-top: 1px solid #263b37;

    border-bottom: 1px solid #263b37;

    background:
        linear-gradient(
            90deg,
            rgba(70, 145, 128, 0.14),
            transparent
        );
}


/* Texto técnico */

h3::after {

    content: "LED CONTROL SYSTEM";

    position: absolute;

    right: 15px;
    top: 16px;

    font-size: 9px;

    color: #4c6761;

    letter-spacing: 2px;
}


/* =========================================================
   FORMULÁRIOS
   ========================================================= */

form {

    width: 100%;
}


.container > form > label {

    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    color: #718580;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* =========================================================
   INPUTS
   ========================================================= */

input[type="text"],
input[type="number"],
input[type="datetime-local"] {

    width: 100%;

    padding: 12px 14px;

    color: #c7d8d4;

    background:
        linear-gradient(
            180deg,
            #111817,
            #070b0b
        );

    border: 1px solid #344946;

    border-radius: 0;

    outline: none;

    font-family: 'Rajdhani', Arial, sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}


input[type="text"]:hover,
input[type="number"]:hover,
input[type="datetime-local"]:hover {

    border-color: #506963;
}


input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus {

    background: #0d1514;

    border-color: #65dfc2;

    box-shadow:
        0 0 0 1px rgba(101, 223, 194, 0.15),
        0 0 12px rgba(101, 223, 194, 0.08);
}


input::placeholder {

    color: #465a56;
}


/* =========================================================
   DATETIME LOCAL
   ========================================================= */

input[type="datetime-local"] {

    color-scheme: dark;

    cursor: pointer;
}


input[type="datetime-local"]::-webkit-calendar-picker-indicator {

    filter:
        invert(70%)
        sepia(15%)
        saturate(500%)
        hue-rotate(110deg);

    cursor: pointer;

    opacity: 0.8;
}


/* =========================================================
   BOTÕES
   ========================================================= */

button {

    margin-top: 20px;

    padding: 11px 25px;

    color: #07100e;

    background:
        linear-gradient(
            180deg,
            #80ecd4,
            #45b79e
        );

    border: 1px solid #91f5dd;

    border-radius: 0;

    font-family: 'Rajdhani', Arial, sans-serif;

    font-size: 13px;

    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:
        filter 0.2s,
        box-shadow 0.2s,
        transform 0.1s;
}


button:hover {

    filter: brightness(1.1);

    box-shadow:
        0 0 15px rgba(91, 238, 205, 0.16);
}


button:active {

    transform: translateY(1px);
}


/* =========================================================
   TABELA
   ========================================================= */

table {

    width: 100%;

    border-collapse: collapse;

    background: rgba(5, 9, 9, 0.85);

    border: 1px solid #354a46;
}


/* =========================================================
   CABEÇALHO DA TABELA
   ========================================================= */

table tr:first-child {

    background:
        linear-gradient(
            90deg,
            #17221f,
            #0c1211
        );
}


table th {

    padding: 14px;

    color: #6d9289;

    font-size: 11px;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    border-bottom: 1px solid #3b5550;
}


/* =========================================================
   CÉLULAS
   ========================================================= */

table td {

    padding: 15px;

    color: #b5c7c3;

    font-size: 14px;

    border-bottom: 1px solid #1e2d2a;

    vertical-align: middle;
}


/* =========================================================
   HOVER DAS 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(70, 145, 128, 0.13),
            rgba(70, 145, 128, 0.02)
        );

    box-shadow:
        inset 3px 0 0 #60d8bc;
}


/* =========================================================
   FORMULÁRIO DE UPDATE
   ========================================================= */

table td form {

    display: flex !important;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    width: 100%;
}


table td form label {

    margin: 0;

    color: #637a75;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    white-space: nowrap;
}


table td form input[type="text"],
table td form input[type="datetime-local"] {

    width: auto;

    min-width: 150px;

    padding: 8px 10px;

    font-size: 12px;
}


/* =========================================================
   BOTÃO ATUALIZAR
   ========================================================= */

table td form button {

    margin-top: 0;

    padding: 8px 15px;

    font-size: 10px;
}


/* =========================================================
   LINK EXCLUIR
   ========================================================= */

a {

    display: inline-block;

    margin-left: 12px;

    padding: 7px 12px;

    color: #d67c7c;

    background:
        rgba(110, 35, 35, 0.10);

    border: 1px solid #523536;

    text-decoration: none;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}


a:hover {

    color: #ff9b9b;

    background:
        rgba(150, 45, 45, 0.18);

    border-color: #9b5151;

    box-shadow:
        0 0 10px rgba(200, 60, 60, 0.08);
}


/* =========================================================
   MENSAGENS PHP
   ========================================================= */

p {

    padding: 12px 15px;

    margin-bottom: 20px;

    color: #a4c9c0;

    background:
        rgba(54, 110, 96, 0.10);

    border-left: 3px solid #60d9bd;

    border-top: 1px solid #253d38;

    border-bottom: 1px solid #253d38;

    font-size: 14px;
}


/* =========================================================
   ID DO PAINEL
   ========================================================= */

table td:first-child {

    color: #6ed8c0;

    font-family: monospace;

    letter-spacing: 1px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {

    width: 9px;
}


::-webkit-scrollbar-track {

    background: #030505;
}


::-webkit-scrollbar-thumb {

    background: #304642;

    border: 2px solid #070a0a;
}


::-webkit-scrollbar-thumb:hover {

    background: #4c6d65;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 850px) {

    body {

        padding: 20px 10px;
    }


    .container,
    .containerlista {

        padding: 22px;
    }


    table {

        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }


    table td form {

        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 500px) {

    .container,
    .containerlista {

        padding: 17px;
    }


    h1 {

        font-size: 24px;
    }


    h3 {

        font-size: 18px;
    }


    h3::after {

        display: none;
    }


    table td,
    table th {

        padding: 10px;
    }

}