/**
 * STRYKE WP Admin Overrides — Accent Colors Only
 *
 * Applies STRYKE brand accent colors (cyan) to WordPress admin UI elements.
 * NO dark backgrounds or text color overrides — content stays in WP default light theme.
 * Dark mode is only applied to the STRYKE shell (sidebar, topbar) via stryke-admin-shell.css.
 */

/* ==========================================================================
   Links
   ========================================================================== */

body.stryke-shell #wpcontent a:not(.button):not(.button-primary):not(.button-secondary):not(.install-now):not(.update-now):not(.activate-now):not(.upload-view-toggle):not(.page-title-action) {
    color: var(--stryke-primary);
}

body.stryke-shell #wpcontent a:not(.button):not(.button-primary):not(.button-secondary):not(.install-now):not(.update-now):not(.activate-now):not(.upload-view-toggle):not(.page-title-action):hover,
body.stryke-shell #wpcontent a:not(.button):not(.button-primary):not(.button-secondary):not(.install-now):not(.update-now):not(.activate-now):not(.upload-view-toggle):not(.page-title-action):focus {
    color: var(--stryke-primary-hover);
}

/* ==========================================================================
   Buttons — Primary
   ========================================================================== */

body.stryke-shell .button-primary,
body.stryke-shell .button.button-primary {
    background: var(--stryke-primary) !important;
    border-color: var(--stryke-primary) !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.stryke-shell .button-primary:hover,
body.stryke-shell .button.button-primary:hover {
    background: var(--stryke-primary-hover) !important;
    border-color: var(--stryke-primary-hover) !important;
}

body.stryke-shell .button-primary:focus {
    outline: 2px solid var(--stryke-primary-hover);
    outline-offset: 1px;
    box-shadow: none !important;
}

/* ==========================================================================
   Buttons — Link / Delete
   ========================================================================== */

body.stryke-shell .button-link {
    color: var(--stryke-primary);
}

body.stryke-shell .button-link:hover {
    color: var(--stryke-primary-hover);
}

body.stryke-shell .button.button-link-delete,
body.stryke-shell .submitdelete {
    color: var(--stryke-error);
}

body.stryke-shell .button.button-link-delete:hover,
body.stryke-shell .submitdelete:hover {
    color: #ff7777;
}

/* ==========================================================================
   Form Controls — Accent
   ========================================================================== */

body.stryke-shell input[type="checkbox"],
body.stryke-shell input[type="radio"] {
    accent-color: var(--stryke-primary);
}

/* Focus rings */
body.stryke-shell input[type="text"]:focus,
body.stryke-shell input[type="password"]:focus,
body.stryke-shell input[type="email"]:focus,
body.stryke-shell input[type="url"]:focus,
body.stryke-shell input[type="number"]:focus,
body.stryke-shell input[type="search"]:focus,
body.stryke-shell input[type="tel"]:focus,
body.stryke-shell input[type="date"]:focus,
body.stryke-shell input[type="datetime-local"]:focus,
body.stryke-shell textarea:focus,
body.stryke-shell select:focus {
    border-color: var(--stryke-primary);
    box-shadow: 0 0 0 2px var(--stryke-primary-alpha);
    outline: none;
}

body.stryke-shell input[type="checkbox"]:focus,
body.stryke-shell input[type="radio"]:focus {
    outline: 2px solid var(--stryke-primary);
    outline-offset: 1px;
    box-shadow: none;
}

/* ==========================================================================
   Tables — Accent
   ========================================================================== */

body.stryke-shell .wp-list-table .column-title .row-title {
    color: var(--stryke-primary);
    font-weight: 600;
}

body.stryke-shell .wp-list-table .row-actions a {
    color: var(--stryke-primary);
}

body.stryke-shell .wp-list-table .row-actions .trash a,
body.stryke-shell .wp-list-table .row-actions .delete a {
    color: var(--stryke-error);
}

body.stryke-shell .wp-list-table .check-column input {
    accent-color: var(--stryke-primary);
}

body.stryke-shell .wp-list-table .sorted .sorting-indicators .sorting-indicator {
    color: var(--stryke-primary);
}

/* ==========================================================================
   Notices — Accent Borders Only
   ========================================================================== */

body.stryke-shell .notice-success,
body.stryke-shell .updated {
    border-left: 4px solid var(--stryke-success);
}

body.stryke-shell .notice-error,
body.stryke-shell .error {
    border-left: 4px solid var(--stryke-error);
}

body.stryke-shell .notice-warning {
    border-left: 4px solid var(--stryke-warning);
}

body.stryke-shell .notice-info {
    border-left: 4px solid var(--stryke-primary);
}

/* ==========================================================================
   Subsubsub / Filter Links
   ========================================================================== */

body.stryke-shell .subsubsub a:hover {
    color: var(--stryke-primary);
}

body.stryke-shell .subsubsub .current {
    color: var(--stryke-primary);
    font-weight: 600;
}

/* ==========================================================================
   Page Title Action
   ========================================================================== */

body.stryke-shell .wrap > h1 .page-title-action,
body.stryke-shell .wp-heading-inline + .page-title-action {
    border-color: var(--stryke-primary);
    color: var(--stryke-primary);
    background: transparent;
    border-radius: var(--stryke-radius-btn);
    transition: all 0.15s;
}

body.stryke-shell .wrap > h1 .page-title-action:hover,
body.stryke-shell .wp-heading-inline + .page-title-action:hover {
    background: var(--stryke-primary);
    color: #fff;
}

/* ==========================================================================
   Nav Tabs — Accent
   ========================================================================== */

body.stryke-shell .nav-tab:hover,
body.stryke-shell .nav-tab:focus {
    color: var(--stryke-primary);
}

body.stryke-shell .nav-tab-active,
body.stryke-shell .nav-tab-active:hover,
body.stryke-shell .nav-tab-active:focus {
    color: var(--stryke-primary);
    font-weight: 600;
}

/* ==========================================================================
   Pagination — Accent
   ========================================================================== */

body.stryke-shell .tablenav .tablenav-pages a:hover {
    border-color: var(--stryke-primary);
    color: var(--stryke-primary);
}

body.stryke-shell .tablenav .view-switch a:hover,
body.stryke-shell .tablenav .view-switch a.current {
    color: var(--stryke-primary);
}

/* ==========================================================================
   Plugins List — Active Row Accent
   ========================================================================== */

body.stryke-shell .plugins tr.active th,
body.stryke-shell .plugins tr.active td {
    background: var(--stryke-primary-alpha);
}

/* ==========================================================================
   Postbox — Welcome Widget Accent
   ========================================================================== */

body.stryke-shell #stryke_welcome_widget {
    border-left: 4px solid var(--stryke-primary);
}

/* ==========================================================================
   Publish Box — Accent
   ========================================================================== */

body.stryke-shell #submitdiv #publish {
    background: var(--stryke-primary) !important;
    border-color: var(--stryke-primary) !important;
    color: #fff !important;
    text-shadow: none !important;
}

body.stryke-shell #submitdiv #publish:hover {
    background: var(--stryke-primary-hover);
}

/* ==========================================================================
   Submit Buttons — Accent
   ========================================================================== */

body.stryke-shell .submit .button-primary {
    background: var(--stryke-primary) !important;
    border-color: var(--stryke-primary) !important;
    color: #fff !important;
    text-shadow: none !important;
}

body.stryke-shell .submit .button-primary:hover {
    background: var(--stryke-primary-hover) !important;
    border-color: var(--stryke-primary-hover) !important;
}

/* ==========================================================================
   Media — Selection Accent
   ========================================================================== */

body.stryke-shell .attachment.selected {
    border-color: var(--stryke-primary);
    box-shadow: 0 0 0 2px var(--stryke-primary-alpha);
}

body.stryke-shell .media-frame-menu .media-menu-item:hover {
    color: var(--stryke-primary);
}

body.stryke-shell .media-frame-menu .media-menu-item.active {
    color: var(--stryke-primary);
    font-weight: 600;
}

/* ==========================================================================
   WP Pointer Header — Accent
   ========================================================================== */

body.stryke-shell .wp-pointer-content h3 {
    background: var(--stryke-primary);
    border-color: var(--stryke-primary);
    color: #fff;
}

/* ==========================================================================
   Tag Checklist — Delete Icon
   ========================================================================== */

body.stryke-shell .tagchecklist .ntdelbutton .remove-tag-icon::before {
    color: var(--stryke-error);
}

body.stryke-shell .most-used-tag-cloud a {
    color: var(--stryke-primary) !important;
}

/* ==========================================================================
   Category Tabs — Active Accent
   ========================================================================== */

body.stryke-shell .categorydiv .category-tabs li.tabs a,
body.stryke-shell .posttypediv .category-tabs li.tabs a {
    color: var(--stryke-primary);
}

/* ==========================================================================
   Screen Meta Links — Accent
   ========================================================================== */

body.stryke-shell #screen-meta-links .screen-meta-toggle a:hover {
    color: var(--stryke-primary);
}

body.stryke-shell .contextual-help-tabs .active a {
    color: var(--stryke-primary);
    border-left-color: var(--stryke-primary);
}

body.stryke-shell .contextual-help-tabs a:hover {
    color: var(--stryke-primary);
}

/* ==========================================================================
   Color Scheme Picker — Hide
   ========================================================================== */

body.stryke-shell .color-option,
body.stryke-shell #color-picker,
body.stryke-shell tr.user-admin-color-wrap {
    display: none !important;
}

/* ==========================================================================
   Welcome Panel — Hide
   ========================================================================== */

body.stryke-shell #welcome-panel {
    display: none;
}

/* ==========================================================================
   Quick Edit — Accent
   ========================================================================== */

body.stryke-shell .inline-edit-row .inline-edit-save .button-primary {
    background: var(--stryke-primary) !important;
    border-color: var(--stryke-primary) !important;
    color: #fff !important;
    text-shadow: none !important;
}

body.stryke-shell .inline-edit-row .inline-edit-save .cancel:hover {
    color: var(--stryke-error);
}

/* ==========================================================================
   Featured Image / Post Links — Accent
   ========================================================================== */

body.stryke-shell #set-post-thumbnail {
    color: var(--stryke-primary);
}

body.stryke-shell #edit-slug-box a {
    color: var(--stryke-primary);
}

/* ==========================================================================
   General Focus Visible
   ========================================================================== */

body.stryke-shell #wpcontent *:focus-visible {
    outline: 2px solid var(--stryke-primary);
    outline-offset: 1px;
}
