/* Add Adarl theme colors */
:root {
    --adarl-bg-color: #1c1c1e;
    --adarl-text-color: #d1d1d2;
    --adarl-button-color: #4e8cff;
    --tokyonight-bg-color: #1a1b26;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--tokyonight-bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adarl-text-color);
    transition: background-color 0.5s;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px;
}

h1 {
    color: var(--adarl-button-color);
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--adarl-text-color);
}

input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    color: var(--adarl-text-color);
}

button {
    background-color: var(--adarl-button-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
}

button:hover {
    background-color: #45a049;
}

/* Add Adarl-themed toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--adarl-button-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Add a class to highlight the button on click */
.clicked {
    background-color: #45a049;
    color: white;
}

/* Style for the result text area */
.result-container {
    margin-top: 20px;
    text-align: left;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    color: var(--adarl-text-color);
    background-color: white;
    outline: none;
    transition: none; /* Remove transition for better visibility */
}

/* Media query for mobile design */
@media (max-width: 600px) {
    .container {
        margin: 10px;
    }

    textarea {
        height: 150px;
    }
    .buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
