/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #5372f0, #1c3faa);
    padding: 15px;
}

/*Container */
.container {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/*Text Input Area */
.wrapper {
    border-radius: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.text-input {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
}

.text-input textarea {
    height: 200px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    padding: 12px;
    border-radius: 0;
    background: #f9f9f9;
    transition: background 0.3s ease;
}

.text-input textarea:focus {
    background: #f1f5ff;
}

/*Controls & Dropdowns */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 8px;
}

.controls .row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*Select Dropdown */
.controls select {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
    background: none;
    cursor: pointer;
}

/*Exchange Icon */
.controls .exchange {
    color: #444;
    list-style: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.controls .exchange:hover {
    transform: rotate(180deg);
}

/*Icons */
.icons {
    display: flex;
    gap: 12px;
}

.icons i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: #f3f3f3;
}

.icons i:hover {
    background: #5372f0;
    color: #fff;
}

/*Translate Button */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 5px;
    background: linear-gradient(90deg, #5372f0, #1c3faa);
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #4055c0, #162c7a);
}

/*Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .text-input {
        flex-direction: column;
    }

    .text-input textarea {
        height: 150px;
        font-size: 14px;
    }

    .controls {
        flex-direction: column;
        gap: 12px;
    }

    .icons {
        justify-content: center;
    }

    .icons i {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .text-input textarea {
        height: 120px;
        font-size: 14px;
    }

    button {
        font-size: 15px;
        padding: 10px;
    }
}
