#wordModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background-color: rgba(31, 41, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
#wordModal.active {
    display: flex;
}
#wordModal.hidden {
    display: none !important;
}
#wordModal .modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.3s ease-out;
}
#wordModal .modal-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#wordModal .modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
#wordModal .closeModalButton {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
#wordModal .closeModalButton:hover {
    color: #374151;
}
#wordModal .tab-pane {
    cursor: pointer;
    display: inline-block;
    padding: 8px 16px;
    margin-right: 4px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
#wordModal .tab-pane.active {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: bold;
}
#wordModal .tab-content {
    display: block;
    padding: 16px;
}
#wordModal .tab-content.active {
    display: block;
}
#wordModal .tab-content.hidden {
    display: none !important;
}
#wordModal .modal-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
#wordModal .modal-footer button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
#wordModal .modal-footer .closeModalButton {
    background-color: #6b7280;
    color: #ffffff;
}
#wordModal .modal-footer .closeModalButton:hover {
    background-color: #4b5563;
}
#wordModal .modal-footer .saveButton {
    background-color: #2563eb;
    color: #ffffff;
}
#wordModal .modal-footer .saveButton:hover {
    background-color: #1d4ed8;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
