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

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right bottom in oklab, rgb(239, 246, 255) 0%, rgb(222, 228, 249) 100%);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    width: 100%;
}

.header {
    text-align: center;
    color: rgb(0, 0, 0);
}

.header h1 {
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 700px;
}

.touch-button {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 5px;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;    
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    gap: 0.8rem;
}

.touch-button i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.touch-button span {
    font-size: 1.5rem;
    font-weight: 600;
}

.primary-button,
.secondary-button {
    color: rgb(65, 65, 65);
    font-size: 1.8rem;
    padding: 2.5rem;
    min-height: 140px;
    border: solid 4px #bedbff;
}

.secondary-button {
    border-color: oklch(0.901 0.076 70.697);
}


/* Modal para captura de CPF */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    padding: 3rem;
    max-width: 600px;
    /* margin-top: -115px; */
    width: 96%;
    top: 1% !important;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: absolute;
    margin-top: 260px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 200;
    color: rgb(0, 0, 0);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.modal-title i {
    font-size: 2.2rem;
    color: #4CAF50;
    opacity: 0.8;
}

.modal-title span {
    font-size: 2rem;
    font-weight: 200;
}

.modal-subtitle {
    font-size: 26px;
    color: rgb(65, 65, 65);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.cpf-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    border: solid 3px #bedbff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: rgb(65, 65, 65);
    font-size: 40px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
}
.cpf-input.error {
    border-color: #fa6767;
    background: #ffeeee;
    color: #830000;
}
.cpf-input:focus {
    outline: none;
    border-color: oklch(0.901 0.076 70.697);
    box-shadow: 0 0 0 3px rgba(190, 219, 255, 0.3);
}

.error-message {
    color: #ff0d0d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgb(227 9 9 / 10%);
    border-radius: 5px;
    border: 1px solid rgb(255 0 0 / 42%);
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.error-message.show {
    display: block;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.modal-button {
    background: rgba(255, 255, 255, 0.95);
    border: solid 3px #bedbff;
    border-radius: 5px;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(65, 65, 65);
    cursor: pointer;
    min-width: 120px;
}

.modal-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: oklch(0.901 0.076 70.697);
    transform: translateY(-2px);
}

.modal-button.confirm {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.modal-button.cancel {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.modal-button.cancel:hover {
    background: #ff6b6b;
    color: white;
}

/* Animações do modal */
.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.footer-totem {
    opacity: 0.5;
    position: fixed;
    width: 100%;
    bottom: 6px;
    padding: 0px 15px;
    font-size: 11px;
    color: gray;
}

.footer-totem .logo {
    height: 30px;
    float: right;
}


.content-popup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.content-popup .input-cpf {
    width: 100%;
    position: relative;
}
.input-cpf .error-message {
    position: absolute;
    background: transparent;
    border: none;
    width: 100%;
    margin: -31px 0px;
    padding: 0px;
}

.teclado-numerico {
    width: 100%;
}

.content-popup .numeric-keypad {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: flex-end;
    width: 100%;
}

.content-popup .numeric-keypad .keypad-button {
    padding: 4px;
    font-size: 23px;
    width: calc(33% - 8px);
    height: 63px;
    font-size: 38px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    background: white;
    border: 1px solid #bdd9fd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: none !important;
    color: black;
    outline: none !important;
}

.keypad-button:hover {
    outline: none !important;
    border-color: #bdd9fd !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
}

.clicked.keypad-button {
    box-shadow: none;
}

/* Responsividade para diferentes tamanhos de tela */
@media (max-width: 768px) {
    .header h1 {
        font-size: 3rem;
    }

    .header p {
        font-size: 1.4rem;
    }

    .touch-button {
        font-size: 1.3rem;
        padding: 1.8rem;
        min-height: 100px;
    }

    .touch-button i {
        font-size: 2rem;
    }

    .touch-button span {
        font-size: 1.3rem;
    }

    .primary-button {
        font-size: 1.6rem;
        padding: 2rem;
        min-height: 120px;
    }

    .button-grid {
        gap: 1.5rem;
    }


}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    .touch-button {
        font-size: 1.1rem;
        padding: 1.5rem;
        min-height: 90px;
    }

    .touch-button i {
        font-size: 1.8rem;
    }

    .touch-button span {
        font-size: 1.1rem;
    }

    .primary-button {
        font-size: 1.4rem;
        padding: 1.8rem;
        min-height: 110px;
    }

    .button-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-title i {
        font-size: 1.8rem;
    }

    .modal-title span {
        font-size: 1.6rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-button {
        font-size: 1rem;
        padding: 1.5rem 1rem;
    }
}

/* Animações suaves */
.main-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.touch-button {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.touch-button:nth-child(1) {
    animation-delay: 0.1s;
}

.touch-button:nth-child(2) {
    animation-delay: 0.2s;
}

.touch-button:nth-child(3) {
    animation-delay: 0.3s;
}

.touch-button:nth-child(4) {
    animation-delay: 0.4s;
}

/* video home */
.video {
    position: absolute;
    top: 0px;
    height: 151px;
    overflow: hidden;
    width: 100%;
    left: 0px;
}

.video video {
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: -50%;
    height: auto;
    aspect-ratio: 16 / 10;
}

.video img {
    position: absolute;
    z-index: 99;
    top: 40%;
    left: calc(50% - 160px);
}

/*barra de progresso no agendamento*/
.loading-bar {
    width: 100%;
    height: 40px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #dcdcdc;
}

.loading-bar-inner {
    width: 100%;
    height: 40px;
    background-color: #45a049;
    animation: loading 7s forwards;
}

@keyframes loading {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

.login input,
.login input:-internal-autofill-selected
{
    font-size: 16px !important;
    margin-bottom: 15px;
    margin-top: 5px;
}

.connection-status {
    position: absolute;
    top: 0px;
    z-index: 999999;
    width: 100%;
    text-align: center;
    background: #ffdea0d4;
    padding: 30px;
    color: #ff5f00;
    display: none;
    font-weight: bold;
}