/* Word Replacer Toggle Styles */
.wrt-toggle {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 5px;
}

.wrt-toggle:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.wrt-toggle.active {
    background: #46b450;
}

.wrt-toggle.active:hover {
    background: #3a9940;
}

.wrt-toggle.inactive {
    background: #666;
}

.wrt-toggle.inactive:hover {
    background: #555;
}

.wrt-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading state */
.wrt-toggle.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
/*
 Admin Interface Styles */
.wrt-image-section {
    margin-top: 20px;
}

.wrt-image-replacement {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.wrt-image-replacement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.wrt-image-replacement-header h4 {
    margin: 0;
}

.wrt-image-preview {
    margin-bottom: 10px;
}

.wrt-image-preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wrt-replacement-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.wrt-replacement-image {
    position: relative;
    display: inline-block;
}

.wrt-replacement-image img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wrt-remove-replacement-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.wrt-remove-replacement-image:hover {
    background: #a00;
}

.tab-content {
    margin-top: 20px;
}

.nav-tab-wrapper {
    margin-bottom: 0;
}

/* Form styling improvements */
.wrt-image-replacement .form-table th {
    width: 150px;
    vertical-align: top;
    padding-top: 15px;
}

.wrt-image-replacement .form-table td {
    padding-top: 10px;
}

.wrt-custom-alt,
.wrt-custom-title,
.wrt-aria-label,
.wrt-aria-describedby {
    margin-top: 5px;
}