@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    display: flex;
    height: 100vh;
}
.logo {
    width: 100px;
    margin-bottom: 20px;
}
.container {
    display: flex;
    width: 100%;
}
.left,
.right {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.left {
    background: #f5f5f5;
}
.right {
    background: #fff0e8;
    border-left: 1px solid #ddd;
    position: relative;
}
textarea {
    width: 100%;
    height: 70%;
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 10px;
}
button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}
.word {
    cursor: pointer;
    /* color: #007bff; */
}
.word:hover {
    text-decoration: underline;
}
.highlight {
    background: #fd3f00;
    border-radius: 3px;
    padding: 2px 4px;
    color: #fff;
}
#savedWordsPanel {
    position: fixed;
    top: 50%;
    left: 50%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    width: 20%;
    padding: 20px;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    transition: 0.3s;
    transform: scale(0.5) translate(-50%, -50%) rotate(90deg);
}
#savedWordsPanel.active {
    transform: scale(1) translate(-50%, -50%) rotate(0);
    opacity: 1;
    visibility: visible;
}
#savedWordsPanel i {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}
#savedWordsPanel h4 {
    margin-top: 0;
}
#savedWordsPanel ul {
    margin-left: 15px;
    margin-top: 12px;
}
#translatedOutput p {
    line-height: 30px;
}
.title {
    margin-bottom: 12px;
}
