/* Toolbar container styles */
.toolbar-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
}

.cdrButtons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.cdrButton {
    width: 40px;
    height: 40px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.5;
    display: flex; /* Enables flexbox for alignment inside the button */
    justify-content: center; /* Horizontally centers the icon */
    align-items: center; /* Vertically centers the icon */
    padding: 0; /* Removes any unnecessary padding */
}

.cdrButton i {
    margin: 0; /* Ensures the icon has no additional margins */
    display: block; /* Ensures the icon behaves as a block-level element */
}

.cdrButton:focus, .cdrButton:active {
    border: none;
    box-shadow: none;
    background-color: transparent;
    opacity: 1;
}

#resetButton {
    color: #32c1ed; /* Light blue */
}

#copyButton {
    color: #d9ae38; /* Light orange */
}

#saveButton {
    color: #88db35; /* Light green */
}

.cdrButton:hover {
    background-color: transparent;
    color: rgba(0, 0, 0, 1);
}
.cdrButton:hover i {
    color: rgba(0, 0, 0, 1);
}

/* Dropdown styling (if needed) */
#languageDropdown {
    width: 150px; /* Adjust width to your desired size */
    padding: 5px; /* Add padding for better appearance */
    font-size: 14px; /* Adjust font size if needed */
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}


/* Transliteration container */
.transliteration-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.transliteration-container div {
    flex: 1;
}

#inputText, #outputText {
    width: 100%;
    resize: none;
    overflow: auto;
    font-size: 14px;
    margin-top: 5px;
    height: calc(1.5em * 15);
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .transliteration-container {
        flex-direction: column;
    }
    
    #languageDropdown {
        width: 100px; 
    }
    .cdrButtons {gap: 5px;}

    #inputText, #outputText {
        width: 100%;
        margin-bottom: 20px;
        height: calc(1.5em * 8);
    }
}

/* Toast styling */
.toast {
    visibility: hidden;
    min-width: 200px;
    margin: auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}
