/* Adaptive styles for mobile devices */
@media screen and (max-width: 768px) {
    .container {
        padding: unset;
        max-width: 100%;
    }

    .settings {
        flex-direction: column;
    }

    .text-containers {
        flex-direction: column;
        gap: unset;
    }

    .text-container {
        width: 100%;
    }

    .text-field {
        min-height: 150px;
    }

    .mode-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: unset;
    }

    .mode-buttons {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
    }

    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .controls button {
        width: 100%;
    }

    .seed-input {
        flex-direction: column;
        width: 100%;
    }

    .seed-input input {
        width: 100%;
    }

    h2 {
        margin-bottom: unset;
    }


    .encrypted-highlight {
        border-radius: 4px;
        display: inline;
    }

    .encrypted-highlight:active {
        opacity: 1;
    }

    /* Improve button touch feedback */
    button:active {
        transform: scale(0.98);
    }

}

@media screen and (min-width: 769px) {
    .text-containers {
        flex-direction: row;
    }

    .text-container {
        width: 48%;
    }
}