/**
 * 404 Image Redirection - Admin styles
 */

/* Page wrapper */
.bir-wrap h1 {
    margin-bottom: 8px;
}

/* Tab nav (uses WP core .nav-tab styles too) */
.bir-tabs {
    margin: 16px 0 24px;
}

.bir-tab-count {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Card containers */
.bir-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.bir-card h2 {
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
}

.bir-help-card {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.bir-help-card h3 {
    margin-top: 0;
}

/* ON / OFF toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    vertical-align: middle;
    margin: 0 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #2271b1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.on_off {
    display: inline-block;
    font-weight: 600;
    color: #50575e;
    vertical-align: middle;
}

/* Image picker buttons */
.broken_image_upload_link > span {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    border-radius: 3px;
    padding: 6px 16px;
    text-decoration: none;
}

.broken_image_upload_link > span:hover {
    background: #135e96;
}

.broken_image_remove_link {
    display: inline-block;
    background: #d63638;
    color: #fff;
    border-radius: 3px;
    padding: 6px 16px;
    text-decoration: none;
    margin-left: 8px;
}

.broken_image_remove_link:hover {
    background: #b32d2e;
    color: #fff;
}

/* DataTables tweaks */
.dataTables_wrapper .dataTables_length select {
    width: 70px;
}

#brocken_image code {
    background: #f6f7f7;
    padding: 2px 6px;
    font-size: 12px;
    word-break: break-all;
}

/* ============================================
   SEO Redirection cross-promo box
   ============================================
   Designed to be visible but unobtrusive:
   - Subtle green-tinted background
   - Lives at the bottom of each page (not nagging at the top)
   - Dismissible per user
*/
.bir-seo-promo {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    border: 1px solid #c3e6c3;
    border-left: 4px solid #00a32a;
    border-radius: 4px;
    padding: 16px 40px 16px 20px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.bir-seo-promo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00a32a;
    color: #fff;
    border-radius: 50%;
}

.bir-seo-promo-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.bir-seo-promo-body {
    flex: 1;
    min-width: 0;
}

.bir-seo-promo-body h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1d2327;
}

.bir-seo-promo-body p {
    margin: 0 0 10px 0;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.bir-seo-promo-button {
    background: #00a32a !important;
    border-color: #008a23 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 1px 0 #008a23 !important;
}

.bir-seo-promo-button:hover {
    background: #008a23 !important;
    border-color: #00701c !important;
}

.bir-seo-promo-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #646970;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.bir-seo-promo-dismiss:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d2327;
}

.bir-seo-promo-dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* RTL adjustments */
.rtl .bir-seo-promo {
    border-left: 1px solid #c3e6c3;
    border-right: 4px solid #00a32a;
    padding: 16px 20px 16px 40px;
}

.rtl .bir-seo-promo-dismiss {
    right: auto;
    left: 8px;
}
