/* General dark theme setup */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

/* Status text */
#status {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #bb86fc;
    text-align: center;
    transition: color 0.3s ease;
}

/* Pulsing animation for "Processing..." */
#status.processing {
    color: #03dac6;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Main text prompt */
body > div:nth-of-type(2) {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

/* Input box */
#inputText {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #f5f5f5;
    outline: none;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

#inputText:focus {
    background-color: #252525;
    box-shadow: 0 0 0 2px #bb86fc;
}

/* Button styling */
button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #bb86fc, #3700b3);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Error message */
#message {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #cf6679; /* Material dark red */
    text-align: center;
}

/* Responsive layout */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    #inputText {
        font-size: 0.95rem;
        padding: 0.65rem 0.9rem;
    }

    button {
        width: 100%;
    }
}
