* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f4f7fb;
    --surface: #ffffff;
    --primary: #4f7cff;
    --primary-light: #eef3ff;
    --accent: #22a699;
    --text: #182230;
    --text-soft: #697586;
    --border: #e7ecf2;
    --shadow: 0 10px 35px rgba(24, 34, 48, 0.07);
}

body {
    min-height: 100vh;
    padding: 55px 24px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(79, 124, 255, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(34, 166, 153, 0.07),
            transparent 30%
        ),
        var(--background);

    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Cabeçalho */

.cabecalho {
    position: relative;

    margin-bottom: 28px;
    padding: 34px 38px;

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);

    overflow: hidden;
}

.cabecalho::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--primary),
        #7c6cff,
        var(--accent)
    );
}

.cabecalho::after {
    content: "";

    position: absolute;
    top: -65px;
    right: -45px;

    width: 190px;
    height: 190px;

    background: rgba(79, 124, 255, 0.06);
    border-radius: 50%;
}

.cabecalho .subtitulo {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
    padding: 7px 12px;

    color: var(--primary);
    background: var(--primary-light);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.cabecalho .subtitulo::before {
    content: "";

    width: 7px;
    height: 7px;

    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 166, 153, 0.12);
}

.cabecalho h1 {
    position: relative;
    z-index: 1;

    margin-bottom: 9px;

    color: var(--text);
    font-size: clamp(28px, 4vw, 41px);
    font-weight: 750;
    letter-spacing: -1.4px;
    line-height: 1.15;
}

.cabecalho > p:last-child {
    position: relative;
    z-index: 1;

    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* Lista */

.lista-leituras {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Cada registro */

.leitura {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(80px, 0.65fr)
        minmax(170px, 1.5fr)
        minmax(130px, 1.2fr)
        minmax(160px, 1.3fr)
        minmax(100px, 0.7fr);

    align-items: center;
    gap: 24px;

    padding: 21px 26px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(24, 34, 48, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.leitura:hover {
    transform: translateY(-2px);

    border-color: rgba(79, 124, 255, 0.3);

    box-shadow:
        0 12px 28px rgba(24, 34, 48, 0.08),
        0 0 0 3px rgba(79, 124, 255, 0.035);
}

.leitura::before {
    content: "";

    position: absolute;
    top: 50%;
    left: -1px;

    width: 4px;
    height: 34px;

    background: linear-gradient(
        180deg,
        var(--primary),
        #7c6cff
    );

    border-radius: 0 5px 5px 0;
    transform: translateY(-50%);

    opacity: 0;
    transition:
        opacity 0.2s ease,
        height 0.2s ease;
}

.leitura:hover::before {
    height: 48px;
    opacity: 1;
}

/* Campos */

.campo {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rotulo {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.campo strong {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ID */

.campo:first-child strong {
    width: fit-content;
    min-width: 38px;
    padding: 6px 10px;

    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;

    text-align: center;
    font-size: 13px;
}

/* MAC */

.campo:nth-child(2) strong {
    color: #475467;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* Nome */

.campo:nth-child(3) strong {
    color: var(--text);
    font-size: 15px;
}

/* Valor */

.campo.valor strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 65px;
    padding: 7px 13px;

    color: #16877d;
    background: #eaf9f6;
    border: 1px solid #d0f0ea;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

/* Erro */

.mensagem-erro {
    padding: 20px 24px;

    color: #b42318;
    background: #fff5f4;
    border: 1px solid #fecdca;
    border-radius: 14px;

    font-size: 14px;
    box-shadow: 0 6px 20px rgba(180, 35, 24, 0.06);
}

/* Tablet */

@media (max-width: 900px) {
    body {
        padding: 35px 18px;
    }

    .leitura {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .campo.valor {
        grid-column: 1 / -1;
    }

    .campo strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Celular */

@media (max-width: 560px) {
    body {
        padding: 20px 12px;
    }

    .cabecalho {
        margin-bottom: 18px;
        padding: 27px 22px;
        border-radius: 19px;
    }

    .cabecalho h1 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .leitura {
        grid-template-columns: 1fr;
        gap: 17px;

        padding: 21px;
        border-radius: 15px;
    }

    .campo.valor {
        grid-column: auto;
    }

    .leitura::before {
        top: -1px;
        left: 20px;

        width: 40px;
        height: 3px;

        border-radius: 0 0 5px 5px;
        transform: none;
        opacity: 1;
    }

    .leitura:hover::before {
        height: 3px;
    }
}