/* =========================================================
   UAI LAVA EXPRESS
   PAINEL DE DISPONIBILIDADE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #172033;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fb 45%,
            #eef2f5 100%
        );
}


/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.wrap {
    width: min(100% - 40px, 1050px);
    margin: 0 auto;

    padding: 30px 0 45px;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 22px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    width: 210px;
    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   TEXTO DO CABEÇALHO
   ========================================================= */

.brand-text h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.7px;
}

.brand-text p {
    margin: 7px 0 0;

    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   STATUS ONLINE
   ========================================================= */

.connection {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 999px;

    background: #f1f8e9;

    border: 1px solid #dcefc7;

    color: #5f941f;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.connection::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #84bd3f;

    box-shadow:
        0 0 0 4px rgba(132, 189, 63, 0.13);
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.machine-section {
    margin-bottom: 35px;
}

.machine-section h2 {
    margin: 0 0 15px;

    font-size: 21px;
    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.3px;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


/* =========================================================
   CARD DA MÁQUINA
   ========================================================= */

.machine {
    position: relative;

    min-height: 130px;

    padding: 21px 23px;

    background: #ffffff;

    border: 1px solid #e5e9ef;

    border-radius: 16px;

    box-shadow:
        0 5px 18px rgba(20, 35, 55, 0.07);

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   EFEITO AO PASSAR O MOUSE
   ========================================================= */

.machine:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(20, 35, 55, 0.10);
}


/* =========================================================
   BARRA LATERAL
   ========================================================= */

.machine::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;
}

.machine.available::before {
    background: #84bd3f;
}

.machine.busy::before {
    background: #ef4444;
}


/* =========================================================
   NOME DA MÁQUINA
   ========================================================= */

.machine-name {
    display: block;

    margin: 0;

    color: #172033;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: -0.2px;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.1px;
}


/* =========================================================
   BOLINHA DO STATUS
   ========================================================= */

.dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;
}


/* =========================================================
   DISPONÍVEL
   ========================================================= */

.machine.available .status {
    color: #619c25;
}

.machine.available .dot {
    background: #84bd3f;

    box-shadow:
        0 0 0 4px rgba(132, 189, 63, 0.13);
}


/* =========================================================
   EM USO
   ========================================================= */

.machine.busy .status {
    color: #e53939;
}

.machine.busy .dot {
    background: #ef4444;

    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.11);
}


/* =========================================================
   INFORMAÇÃO DO TEMPO
   ========================================================= */

.machine-info {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 9px;

    color: #64748b;

    font-size: 14px;
}

.machine-time {
    color: #1764b5;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

#updated {
    margin-top: 28px;

    text-align: center;

    color: #94a3b8;

    font-size: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .wrap {
        width: min(100% - 30px, 700px);

        padding-top: 24px;
    }

    .header {
        margin-bottom: 32px;
    }

    .brand {
        gap: 15px;
    }

    .logo {
        width: 170px;
    }

    .brand-text h1 {
        font-size: 25px;
    }

    .brand-text p {
        font-size: 13px;
    }

    .connection {
        font-size: 11px;
        padding: 7px 10px;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    body {
        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f5f7f9 55%,
                #eef2f5 100%
            );
    }

    .wrap {
        width: calc(100% - 24px);

        padding:
            18px 0
            28px;
    }


    /* -------------------------
       CABEÇALHO
       ------------------------- */

    .header {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        text-align: center;

        gap: 12px;

        margin-bottom: 30px;
    }

    .brand {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 8px;

        width: 100%;
    }


    /* -------------------------
       LOGO CELULAR
       ------------------------- */

    .logo {
        width: 190px;

        max-width: 75vw;
    }


    /* -------------------------
       TÍTULO
       ------------------------- */

    .brand-text h1 {
        font-size: 24px;

        letter-spacing: -0.4px;
    }

    .brand-text p {
        margin-top: 5px;

        font-size: 13px;
    }


    /* -------------------------
       ONLINE
       ------------------------- */

    .connection {
        padding: 6px 10px;

        font-size: 11px;
    }


    /* -------------------------
       SEÇÕES
       ------------------------- */

    .machine-section {
        margin-bottom: 28px;
    }

    .machine-section h2 {
        margin-bottom: 10px;

        font-size: 19px;
    }


    /* -------------------------
       UMA MÁQUINA POR LINHA
       ------------------------- */

    .grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* -------------------------
       CARD
       ------------------------- */

    .machine {
        min-height: 105px;

        padding:
            17px 18px;

        border-radius: 13px;

        box-shadow:
            0 4px 14px rgba(20, 35, 55, 0.06);
    }


    /* -------------------------
       NOME
       ------------------------- */

    .machine-name {
        font-size: 17px;
    }


    /* -------------------------
       STATUS
       ------------------------- */

    .status {
        margin-top: 12px;

        font-size: 13px;
    }


    /* -------------------------
       TEMPO
       ------------------------- */

    .machine-info {
        margin-top: 8px;

        font-size: 13px;
    }

    .machine-time {
        font-size: 14px;
    }


    /* -------------------------
       RODAPÉ
       ------------------------- */

    #updated {
        margin-top: 20px;

        font-size: 11px;
    }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 380px) {

    .wrap {
        width: calc(100% - 18px);

        padding-top: 14px;
    }

    .logo {
        width: 165px;
    }

    .brand-text h1 {
        font-size: 22px;
    }

    .brand-text p {
        font-size: 12px;
    }

    .machine {
        min-height: 98px;

        padding:
            15px 16px;
    }

    .machine-name {
        font-size: 16px;
    }

    .status {
        font-size: 12px;
    }

    .machine-time {
        font-size: 13px;
    }
}
