:root {
    /* this has to be set to switch between light or dark */
    color-scheme: light dark;

    --color-1: light-dark(rgba(190, 219, 255, 0.3), rgba(20, 35, 50, 0.3));
    --color-2: light-dark(#f5f5f5, #1a1a1a);
    --color-3: light-dark(#999, #ccc);
    --color-4: light-dark(#0094a5, #00bcd4);
    --color-5: light-dark(#45a049, #2e7d32);
    --color-6: light-dark(#ff6b6b, #ff4d4d);
    --color-7: light-dark(#d40a0a, #ff3333);
    --color-8: light-dark(rgba(255, 255, 255, 0.95), rgba(30, 30, 30, 0.95));
    --color-9: light-dark(rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5));
    --color-10: light-dark(#ffffff, #111111);
    --color-11: light-dark(rgba(255, 255, 255, 1), rgba(20, 20, 20, 1));
    --color-12: light-dark(#4CAF50, #388E3C);
    --color-13: light-dark(#ff0d0d, #ff4444);
    --color-14: light-dark(#333, #ddd);
    --color-15: light-dark(#bedbff, #2a3b4c);
    --color-16: light-dark(#dcdcdc, #2c2c2c);
    --color-17: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
    --color-18: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));
    --color-19: light-dark(#f9fafb, #121212);
    --color-20: light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2));
    --color-21: light-dark(#bdd9fd, #1b2c3d);
    --color-22: light-dark(rgba(255, 255, 255, 0.9), rgba(20, 20, 20, 0.9));
    --color-23: light-dark(#000, #fff);
    --color-24: light-dark(rgb(65, 65, 65), rgb(190, 190, 190));

    --color-25: light-dark(rgb(227 9 9 / 10%), rgb(227 9 9 / 30%));
    --color-26: light-dark(rgb(255 0 0 / 42%), rgb(255 50 50 / 42%));
    --color-27: light-dark(oklch(0.901 0.076 70.697), oklch(0.3 0.05 45));



}

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

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /*cursor: none;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-19);
}

.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: var(--color-18);
}

.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: var(--color-8);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-14);
    cursor: pointer;
    box-shadow: 0 8px 32px var(--color-17);
    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: var(--color-24);
    font-size: 1.8rem;
    padding: 2.5rem;
    min-height: 140px;
    border: solid 4px var(--color-15);
}

.secondary-button {
    border-color: var(--color-27);
}


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

.modal-content {
    background: var(--color-8);
    border-radius: 5px;
    padding: 3rem;
    max-width: 441px;
    margin-top: -115px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px var(--color-20);
    backdrop-filter: blur(10px);
}

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

.modal-title i {
    font-size: 2.2rem;
    color: var(--color-12);
    opacity: 0.8;
}

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

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--color-24);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cpf-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    border: solid 3px var(--color-15);
    border-radius: 15px;
    background: var(--color-22);
    color: var(--color-24);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cpf-input:focus {
    outline: none;
    border-color: var(--color-27);
    box-shadow: 0 0 0 3px var(--color-1);
}

.error-message {
    color: var(--color-13);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: var(--color-25);
    border-radius: 10px;
    border: 1px solid var(--color-26);
    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: var(--color-8);
    border: solid 3px var(--color-15);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-24);
    cursor: pointer;
    min-width: 120px;
}

.modal-button:hover {
    background: var(--color-11);
    border-color: var(--color-27);
    transform: translateY(-2px);
}

.modal-button.confirm {
    background: linear-gradient(135deg, var(--color-12), var(--color-5));
    color: var(--color-10);
    border-color: var(--color-12);
}

.modal-button.cancel {
    background: var(--color-22);
    border-color: var(--color-6);
    color: var(--color-6);
}

.modal-button.cancel:hover {
    background: var(--color-6);
    color: var(--color-10);
}

/* 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 {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    width: 102%;
    max-width: 800px;
    justify-content: space-around;
    opacity: 0.5;
    font-size: 13px;
    flex-wrap: wrap;
    position: fixed;
    bottom: 21px;
}

.footer-totem .logo {
    height: 30px;
    width: auto;
}


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

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

button.keypad-button {
    padding: 11px;
    font-size: 23px;
    width: 96px;
    cursor: pointer;
    font-weight: bold;
    background: var(--color-10);
    border: 1px solid var(--color-21);
    box-shadow: 0 8px 32px var(--color-17);
    border-radius: 5px;
    transition: none !important;
    outline: none !important;
}

button.keypad-button:focus {
    outline: none !important;
    border-color: var(--color-21) !important;
    box-shadow: 0 8px 32px var(--color-17) !important;
    background: var(--color-10) !important;
}

button.keypad-button:active {
    transform: scale(0.95);
    background: var(--color-2) !important;
    border-color: var(--color-3) !important;
    transition: none !important;
}

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

div#area-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -30px;
}

div#alert-qrcode {
    max-width: 185px;
}

/* 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;
    }

    div#area-qrcode {
        height: 63px;
        margin-top: -35px;
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 6px;
        align-content: center;
        align-items: flex-start;
    }

    div#image-qrcode {
        height: 100%;
    }
}

@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 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .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;
}

.anima1 {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

img.imageqrcode {
    border: 4px solid var(--color-4);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--color-17);
    background: var(--color-10);
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.5;
    }
}


@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: 12%;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video video {
    position: absolute;
    width: 100%;
    bottom: -16%;
}

.video img {
    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: var(--color-16);
}

.loading-bar-inner {
    width: 100%;
    height: 40px;
    background-color: var(--color-5);
    animation: loading 7s forwards;
}

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

    100% {
        width: 0%;
    }
}

/* animação: começa em baixo + opaca, sobe e aparece */
.slide-up {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp .6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.alert.alert-warning {
    position: fixed;
    bottom: 4%;
    background: var(--color-7);
    width: auto;
    z-index: 999;
    padding: 20px;
    text-align: center;
    color: var(--color-10);
    border-radius: 7px;
    font-weight: 400;
    box-shadow: 0px 0px 9px -4px var(--color-23);
}

.errorMsgConection {
    display: flex;
    justify-content: center;
}