body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.button-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-group label {
    color: #34495e;
    font-size: 1.1rem;
    white-space: nowrap;
    width: 120px; /* Reduced from 150px */
    text-align: right;
    font-weight: 600;
}

textarea {
    flex:1;
    min-width: 0; /* Allows textarea to shrink below default width */
    width: 100%;
    height: 200px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8f9fa;
    line-height: 1.6;
}

textarea:focus {
    border-color: #3498db;
    background: white;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

textarea:disabled {
    background: #f0f4f8; /* Lighter background color */
    color: #7f8c8d; /* Slightly lighter text color */
}

textarea::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.language-selector {
    text-align: center;
    margin-bottom: 1.5rem;
}

.language-selector select {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #bdc3c7;
    font-size: 1rem;
    background: #ecf0f1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
}

.language-selector select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .input-group label {
        width: 100%;
        text-align: left;
    }

    textarea {
        width: 100%;
        height: 300px;
        margin-left: 0;
    }
}

footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}
