.custanimforbx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custanimforbx-modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80%;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.custanimforbx-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custanimforbx-modal-header h3 {
    margin: 0;
}
.custanimforbx-toggle-dark {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-right: 10px;
}
.custanimforbx-toggle-light, .custanimforbx-toggle-dark-icon {
    font-size: 16px;
    transition: color 0.3s ease;
    min-width: 20px;
    text-align: center;
}
.custanimforbx-toggle-checkbox {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}
.custanimforbx-toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.4s ease;
}
.custanimforbx-toggle-slider:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s ease;
}
.custanimforbx-toggle-dark input:checked + .custanimforbx-toggle-slider {
    background-color: #2196F3;
}
.custanimforbx-toggle-dark input:checked + .custanimforbx-toggle-slider:before {
    transform: translateX(20px);
}
.custanimforbx-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.custanimforbx-modal-body {
    padding: 20px;
    background: #f5f5f5;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}
.custanimforbx-modal-body.dark-mode {
    background: #2c3e50;
    color: white;
}
.custanimforbx-modal-body.dark-mode .custanimforbx-note {
    color: #ddd;
}
.custanimforbx-demo-element {
    padding: 20px;
    background: white;
    color: #333;
    border: 2px dashed #ccc;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 10px;
}
.custanimforbx-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin: 0;
}