
.lexi-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom right, #eef2f3, #ffffff);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lexi-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.lexi-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-5px); }
    100% { transform: translatey(0px); }
}

.lexi-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.lexi-controls {
    flex-direction: row;
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.lexi-controls label {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.lexi-controls select {
    padding: 6px 32px 6px 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 24px 24px;
    width: 100%;
    appearance: none;
}

select#from-lang {
    background-image: url('https://flagcdn.com/w40/gb.png');
}

select#to-lang {
    background-image: url('https://flagcdn.com/w40/br.png');
}

textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    resize: vertical;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #fff;
}

button#translate-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s ease;
}

button#translate-btn:hover {
    background: #0056b3;
}

.lexi-results {
    margin-top: 20px;
}

.lexi-results h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #333;
}

.lexi-results p {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    min-height: 40px;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 12px;
    background: #e1ecf4;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}
