/* =========================================================
   SMART IDIOMAS
   PONTO ELETRÔNICO
   ESTILO PRINCIPAL DO TOTEM
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            145deg,
            #062d69 0%,
            #00245b 55%,
            #001c48 100%
        );

    color: #ffffff;

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

    padding: 30px;

    overflow-x: hidden;
}


/* =========================================================
   TOTEM
========================================================= */

.totem {
    width: 100%;
    max-width: 760px;

    text-align: center;

    position: relative;
}


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

.logo {
    margin-bottom: 28px;
}

.logo h1 {
    font-size: 42px;
    font-weight: 800;

    letter-spacing: 2px;

    line-height: 1.1;
}

.logo p {
    margin-top: 8px;

    font-size: 16px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

    opacity: 0.78;
}


/* =========================================================
   RELÓGIO
========================================================= */

.clock {
    margin-bottom: 36px;
}

.clockTime {
    font-size: 78px;

    font-weight: 800;

    letter-spacing: 3px;

    line-height: 1;
}

.clockDate {
    margin-top: 12px;

    font-size: 18px;

    font-weight: 500;

    opacity: 0.82;

    text-transform: capitalize;
}


/* =========================================================
   ÁREA PRINCIPAL
========================================================= */

#app {
    width: 100%;
}


/* =========================================================
   TELA INICIAL
========================================================= */

#screenStart {
    width: 100%;
}

.pointTitle {
    margin-bottom: 18px;
}

.pointTitle h2 {
    font-size: 28px;

    font-weight: 700;

    letter-spacing: 0.2px;
}


/* =========================================================
   SELEÇÃO DO FUNCIONÁRIO
========================================================= */

.employeeArea {
    width: 100%;

    background: #ffffff;

    color: #222222;

    border-radius: 20px;

    padding: 22px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22);
}

.employeeSelect {
    width: 100%;

    height: 58px;

    padding: 0 18px;

    border: 2px solid #e2e6eb;

    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #333333;

    font-size: 18px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.employeeSelect:focus {
    border-color: #00245b;

    box-shadow:
        0 0 0 4px rgba(0, 36, 91, 0.08);
}


/* =========================================================
   BOTÃO PRINCIPAL
========================================================= */

.continueButton {
    width: 100%;

    margin-top: 18px;

    min-height: 58px;

    padding: 15px 20px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #ed1721,
            #cf0710
        );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow:
        0 9px 22px rgba(225, 20, 29, 0.25);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.continueButton:hover {
    opacity: 0.96;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(225, 20, 29, 0.32);
}

.continueButton:active {
    transform: translateY(0);
}


/* =========================================================
   TELA DO FUNCIONÁRIO
========================================================= */

.employeeStatus {
    width: 100%;

    max-width: 650px;

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 24px;

    padding: 34px;

    backdrop-filter: blur(8px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   SAUDAÇÃO
========================================================= */

.welcomeText {
    font-size: 18px;

    font-weight: 500;

    opacity: 0.78;

    margin-bottom: 4px;
}

.employeeStatus h2 {
    font-size: 34px;

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 26px;
}


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

.statusBox {
    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    color: #00245b;

    border-radius: 16px;

    padding: 19px 22px;

    margin-bottom: 14px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14);
}

.statusLabel {
    display: block;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #6b7280;

    margin-bottom: 7px;
}

.statusBox strong {
    display: block;

    font-size: 23px;

    font-weight: 800;
}


/* =========================================================
   PRÓXIMO REGISTRO
========================================================= */

.nextAction {
    width: 100%;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 16px;

    padding: 17px 22px;

    margin-bottom: 22px;
}

.nextAction span {
    display: block;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.1px;

    opacity: 0.70;

    margin-bottom: 6px;
}

.nextAction strong {
    display: block;

    font-size: 22px;

    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   BOTÃO REGISTRAR
========================================================= */

#registerButton {
    margin-top: 0;

    min-height: 64px;

    font-size: 20px;
}


/* =========================================================
   OPÇÕES DE SAÍDA
========================================================= */

#exitOptions {
    margin-top: 22px;
}

.questionText {
    margin-bottom: 14px;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.5;

    opacity: 0.86;
}

#exitOptions .continueButton {
    margin-top: 8px;
}


/* =========================================================
   SAÍDA DEFINITIVA
========================================================= */

.exitButton {
    width: 100%;

    min-height: 58px;

    margin-top: 12px;

    padding: 15px 20px;

    border: 2px solid rgba(255, 255, 255, 0.75);

    border-radius: 13px;

    background: transparent;

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.exitButton:hover {
    background: #ffffff;

    color: #00245b;

    transform: translateY(-2px);
}


/* =========================================================
   BOTÃO VOLTAR
========================================================= */

.backButton {
    width: 100%;

    min-height: 50px;

    margin-top: 16px;

    padding: 13px 20px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 11px;

    background: rgba(0, 0, 0, 0.12);

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.4px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.backButton:hover {
    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   TELA DE UNIDADE
========================================================= */

#screenUnit .employeeStatus {
    padding-top: 38px;
}

#screenUnit .employeeStatus h2 {
    margin-bottom: 12px;
}

#screenUnit .questionText {
    margin-bottom: 22px;
}


/* =========================================================
   BOTÕES DAS UNIDADES
========================================================= */

.unitButton {
    margin-top: 10px;

    min-height: 62px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f2f5f9
        );

    color: #00245b;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.13);
}

.unitButton:hover {
    background: #ffffff;

    color: #00245b;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   TELA DA CÂMERA
========================================================= */

.cameraBox {
    width: 100%;

    max-width: 650px;

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.97);

    color: #222222;

    border-radius: 24px;

    padding: 30px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.25);
}

.cameraBox h2 {
    color: #00245b;

    font-size: 27px;

    font-weight: 800;

    margin-bottom: 9px;
}

.cameraBox > p {
    color: #666666;

    font-size: 16px;

    line-height: 1.5;

    margin-bottom: 20px;
}


/* =========================================================
   VÍDEO DA CÂMERA
========================================================= */

#cameraVideo {
    display: block;

    width: 100%;

    max-width: 520px;

    height: 330px;

    margin: 0 auto 20px;

    object-fit: cover;

    background: #101828;

    border-radius: 18px;

    border: 4px solid #e9edf2;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.10),
        0 10px 28px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   FOTO CAPTURADA
========================================================= */

#capturedPhoto {
    display: block;

    width: 100%;

    max-width: 520px;

    height: 330px;

    object-fit: cover;

    margin: 0 auto 20px !important;

    border-radius: 18px;

    border: 4px solid #e9edf2;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   BOTÕES DA CÂMERA
========================================================= */

.cameraBox .continueButton {
    margin-top: 10px;
}

.cameraBox .backButton {
    background: #f3f4f6;

    color: #4b5563;

    border: 1px solid #d8dde5;

    margin-top: 12px;
}

.cameraBox .backButton:hover {
    background: #e9edf2;

    color: #00245b;

    border-color: #c8d0da;
}


/* =========================================================
   TELA DE SUCESSO
========================================================= */

.successBox {
    width: 100%;

    max-width: 600px;

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.97);

    color: #222222;

    border-radius: 24px;

    padding: 34px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.25);
}

.successIcon {
    width: 76px;

    height: 76px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e9f8ef;

    color: #159447;

    font-size: 42px;

    font-weight: 800;

    border: 4px solid #ccefd9;
}

.successBox h2 {
    color: #00245b;

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 10px;
}

.successBox > p {
    color: #666666;

    font-size: 16px;

    line-height: 1.5;

    margin-bottom: 20px;
}


/* =========================================================
   HORÁRIO REGISTRADO
========================================================= */

.registeredTime {
    background: #f5f7fa;

    border: 1px solid #e1e6ec;

    border-radius: 16px;

    padding: 17px;

    margin-bottom: 20px;
}

.registeredTime span {
    display: block;

    color: #777777;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.registeredTime strong {
    display: block;

    color: #00245b;

    font-size: 26px;

    font-weight: 800;
}


/* =========================================================
   JUSTIFICATIVA
========================================================= */

#justificativaContainer {
    margin-top: 22px;

    padding-top: 22px;

    border-top: 1px solid #e2e6eb;
}

#justificativaContainer p {
    color: #555555 !important;

    line-height: 1.5;
}

#justificativaContainer .continueButton {
    margin-top: 14px;

    font-size: 15px;

    min-height: 54px;
}


/* =========================================================
   CAMPO DE JUSTIFICATIVA
========================================================= */

#campoJustificativa {
    display: block;

    width: 100% !important;

    max-width: none !important;

    min-height: 130px;

    resize: vertical;

    margin: 18px auto 0 !important;

    padding: 15px !important;

    border: 1px solid #d6dce3;

    border-radius: 12px;

    background: #fafbfc;

    color: #222222;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    line-height: 1.5;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#campoJustificativa:focus {
    border-color: #00245b;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(0, 36, 91, 0.08);
}


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

.footer {
    margin-top: 28px;

    font-size: 13px;

    font-weight: 500;

    opacity: 0.55;
}


/* =========================================================
   ACESSO ADMINISTRATIVO
========================================================= */

.adminAccessButton {
    position: fixed;

    bottom: 10px;
    right: 10px;

    border: none;

    background: transparent;

    color: rgba(255, 255, 255, 0.18);

    font-size: 10px;

    padding: 5px;

    cursor: pointer;

    z-index: 1000;

    transition:
        color 0.2s ease;
}

.adminAccessButton:hover {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   MODAL LOGIN ADMIN
========================================================= */

.adminLoginModal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.62);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 99999;

    backdrop-filter: blur(3px);
}

.adminLoginModal.ativo {
    display: flex;
}


/* =========================================================
   CAIXA LOGIN
========================================================= */

.adminLoginBox {
    position: relative;

    width: 100%;

    max-width: 390px;

    background: #ffffff;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.32);
}

.adminLoginBox h2 {
    margin-bottom: 8px;

    color: #00245b;

    font-size: 23px;
}

.adminLoginBox > p {
    margin-bottom: 25px;

    color: #777777;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   FECHAR LOGIN
========================================================= */

.adminLoginFechar {
    position: absolute;

    top: 10px;
    right: 14px;

    border: none;

    background: transparent;

    color: #777777;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}

.adminLoginFechar:hover {
    color: #00245b;
}


/* =========================================================
   CAMPOS LOGIN
========================================================= */

.adminLoginCampo {
    margin-bottom: 16px;
}

.adminLoginCampo label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 13px;

    font-weight: 700;
}

.adminLoginCampo input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #d8dde3;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    background: #fafbfc;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.adminLoginCampo input:focus {
    border-color: #00245b;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(0, 36, 91, 0.08);
}


/* =========================================================
   MENSAGEM LOGIN
========================================================= */

.adminLoginMensagem {
    min-height: 20px;

    margin-bottom: 10px;

    color: #e1141d;

    font-size: 13px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   ENTRAR LOGIN
========================================================= */

.adminLoginEntrar {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #00245b;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.18s ease;
}

.adminLoginEntrar:hover {
    opacity: 0.92;

    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 700px) {

    body {
        padding: 20px;
    }

    .totem {
        max-width: 100%;
    }

    .logo h1 {
        font-size: 32px;
    }

    .clockTime {
        font-size: 58px;
    }

    .clockDate {
        font-size: 15px;
    }

    .pointTitle h2 {
        font-size: 23px;
    }

    .employeeStatus,
    .cameraBox,
    .successBox {
        padding: 25px;
    }

    .employeeStatus h2 {
        font-size: 29px;
    }

    #cameraVideo,
    #capturedPhoto {
        height: 280px;
    }
}


@media (max-width: 480px) {

    body {
        padding: 15px;
    }

    .logo {
        margin-bottom: 22px;
    }

    .logo h1 {
        font-size: 27px;

        letter-spacing: 1.5px;
    }

    .logo p {
        font-size: 13px;
    }

    .clock {
        margin-bottom: 27px;
    }

    .clockTime {
        font-size: 46px;

        letter-spacing: 1px;
    }

    .clockDate {
        font-size: 14px;
    }

    .employeeArea {
        padding: 16px;

        border-radius: 16px;
    }

    .employeeSelect {
        height: 53px;

        font-size: 16px;
    }

    .continueButton {
        min-height: 54px;

        font-size: 16px;
    }

    .employeeStatus,
    .cameraBox,
    .successBox {
        padding: 21px;

        border-radius: 20px;
    }

    .employeeStatus h2 {
        font-size: 26px;
    }

    .statusBox strong,
    .nextAction strong {
        font-size: 19px;
    }

    #cameraVideo,
    #capturedPhoto {
        height: 230px;

        border-radius: 14px;
    }

    .successIcon {
        width: 65px;

        height: 65px;

        font-size: 35px;
    }

    .successBox h2 {
        font-size: 24px;
    }
}

/* ==========================================
   MODAL DE AVISO DO SISTEMA
========================================== */

.systemModal {
    position: fixed;
    inset: 0;

    display: none;

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

    padding: 20px;

    background: rgba(0, 20, 55, 0.72);

    backdrop-filter: blur(5px);

    z-index: 999999;
}

.systemModal.ativo {
    display: flex;
}


/* ==========================================
   CAIXA
========================================== */

.systemModalBox {
    position: relative;

    width: 100%;
    max-width: 420px;

    background: #ffffff;

    color: #222222;

    border-radius: 22px;

    padding: 38px 35px 32px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    animation: systemModalEntrada 0.22s ease-out;
}


/* ==========================================
   ANIMAÇÃO
========================================== */

@keyframes systemModalEntrada {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ==========================================
   BOTÃO FECHAR
========================================== */

.systemModalFechar {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 34px;
    height: 34px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #8a8a8a;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}

.systemModalFechar:hover {
    background: #f1f3f5;

    color: #00245b;
}


/* ==========================================
   ÍCONE
========================================== */

.systemModalIcon {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;

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

    border-radius: 50%;

    background: #fff3cd;

    color: #9a6b00;

    font-size: 32px;

    font-weight: 700;
}


/* ==========================================
   TÍTULO
========================================== */

.systemModalBox h2 {
    margin: 0 0 10px;

    color: #00245b;

    font-size: 24px;

    font-weight: 700;
}


/* ==========================================
   MENSAGEM
========================================== */

.systemModalBox p {
    margin: 0 auto 26px;

    max-width: 330px;

    color: #666666;

    font-size: 16px;

    line-height: 1.5;
}


/* ==========================================
   BOTÃO OK
========================================== */

.systemModalOk {
    width: 100%;

    padding: 14px 20px;

    border: none;

    border-radius: 11px;

    background: #e1141d;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}


.systemModalCancelar {
    width: 100%;
    padding: 13px 20px;
    margin-bottom: 10px;
    border: 1px solid #d9dde5;
    border-radius: 11px;
    background: #f7f8fa;
    color: #00245b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
}

.systemModalCancelar:hover {
    background: #eef1f5;
}

.systemModalOk:hover {
    opacity: 0.92;

    transform: translateY(-1px);
}

.systemModalOk:active {
    transform: translateY(0);
}


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

@media (max-width: 600px) {

    .systemModalBox {
        max-width: 360px;

        padding: 34px 24px 25px;

        border-radius: 18px;
    }

    .systemModalIcon {
        width: 56px;
        height: 56px;

        font-size: 27px;
    }

    .systemModalBox h2 {
        font-size: 21px;
    }

    .systemModalBox p {
        font-size: 15px;
    }

}