/* Responsive styles for PIN input page */
#roteiro-view {
    width: 100%;
}

.inputpin-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-out;

    h1 {
        font-size: 2rem;
        color: var(--text-main);
        margin-bottom: 2rem;
        font-weight: 600;
    }

    .pin-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;

        .pin-wrapper-user {
            width: 100%;
            max-width: 400px;

            .otp-input-container {
                display: flex;
                justify-content: center;
                gap: 0.75rem;
                margin: 0 auto;
                flex-wrap: wrap; /* Allow wrapping on very small screens */

                .otp-input {
                    width: 3.5rem;
                    height: 4rem;
                    font-size: 1.5rem;
                    text-align: center;
                    border: 2px solid #e0e0e0;
                    border-radius: 8px;
                    background-color: #f9f9f9;
                    transition: all 0.3s ease;
                    /* Ensure minimum touch target size for mobile */
                    min-width: 44px;
                    min-height: 44px;

                    &:focus {
                        border-color: var(--color-primary);
                        box-shadow: 0 0 0 3px rgba(76, 111, 175, 0.2);
                        outline: none;
                    }

                    &:hover {
                        border-color: #c0c0c0;
                    }
                }
            }
        }

        .button-container {
            width: 100%;

            .btn-iniciar {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                padding: 0.75rem 2rem;
                font-size: 1.1rem;
                font-weight: 500;
                color: white;
                background-color: var(--color-primary);
                border: none;
                border-radius: 8px;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 8px rgba(76, 111, 175, 0.3);
                /* Ensure minimum touch target size for mobile */
                min-height: 44px;
                min-width: 120px;
                margin: 0 auto; /* Center the button */

                &:hover {
                    background-color: var(--color-primary);
                    transform: translateY(-2px);
                    box-shadow: 0 6px 12px rgba(76, 111, 175, 0.4);
                }

                &:active {
                    transform: translateY(0);
                    box-shadow: 0 2px 4px rgba(76, 111, 175, 0.3);
                }

                .material-symbols-outlined {
                    font-size: 1.5rem;
                }
            }
        }
    }
}

/* Snackbar styles */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 90%;
    width: auto;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;

    &.show {
        visibility: visible;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

    &.error {
        background-color: #d32f2f;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .inputpin-container {
        padding: 10px;

        h1 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .pin-display {
            gap: 1.5rem;
            padding: 0;
            background: transparent;
            box-shadow: none;

            .pin-wrapper-user {
                .otp-input-container {
                    gap: 0.5rem;

                    .otp-input {
                        width: 2.5rem;
                        height: 3rem;
                        font-size: 1.25rem;
                    }
                }
            }

            .button-container {
                .btn-iniciar {
                    padding: 0.7rem 1.8rem;
                }
            }
        }
    }

    #snackbar {
        min-width: 220px;
        margin-left: -110px;
        padding: 14px;
    }
}
