/* Updated CSS for Full-Width and Enhanced UI */
#related-terms-ui {
    width: 100vw !important; /* Full viewport width */
    max-width: 100% !important;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    display: block;
    border: 3px solid #0073aa; /* Added border */
}

/* Information Box */
#tool-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}

#tool-info h2 {
    color: #0073aa;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

#tool-info p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

#tool-info ul {
    padding-left: 20px;
    font-size: 16px;
    color: #333;
}

#tool-info ul li {
    margin-bottom: 5px;
}

/* Input & Button Styling */
.ui-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #eaf5fc;
    border-radius: 8px;
}

.ui-input {
    padding: 14px 18px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #0073aa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #ffffff;
}

.ui-input:focus {
    outline: none;
    border-color: #005f8d;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.5);
}

.ui-button {
    padding: 14px 18px;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.2);
}

.ui-button:hover {
    background-color: #005f8d;
    transform: translateY(-2px);
}

.ui-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loading Indicator */
.ui-loading {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: #555555;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #cccccc;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ui-form {
        width: 100%;
    }
}