body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 300;
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

.form-section, .examples-section {
    flex: 1;
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 1.2em;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0b0b0;
}

input, textarea, button {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

.examples li {
    background-color: #2a2a2a;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.examples li:hover {
    background-color: #333;
}

.response {
    margin-top: 25px;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.error {
    background-color: #2a1a1a;
    border-color: #dc3545;
    color: #ff6b6b;
}

@media (max-width: 767px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    .form-section, .examples-section {
        padding: 20px;
    }

    input, textarea, button {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
