* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #0a0e17;
    color: #e0e0e0;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #ffffff;
}

.text-box-container {
    position: relative;
    margin-bottom: 20px;
}

.text-area {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #2d3748;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    resize: none;
    outline: none;
}

.controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.control-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.control-button:hover {
    background-color: #2d3748;
    color: #ffffff;
}

.language-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.language-dropdown {
    position: relative;
}

.language-select {
    padding: 8px 30px 8px 15px;
    border-radius: 5px;
    background-color: #151c2f;
    color: #ffffff;
    border: 1px solid #2d3748;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 150px;
}

.language-select:focus {
    outline: none;
    border-color: #7b2cbf;
}

.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
}

.switch-button {
    background-color: #7b2cbf;
    border: 1px solid #5a0d8b;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.switch-button:hover {
    background-color: #7c20b5;
}

.translate-button {
    background-color: #7b2cbf;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.translate-button:hover {
    background-color: #7c20b5;
}

.copy-button {
    position: absolute;
    right: 45px;
    bottom: 10px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.copy-button:hover {
    color: #ffffff;
}

.label {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.speaker-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.speaker-button:hover {
    color: #ffffff;
}