/* Montserrat everywhere */
body.wp-admin, #wpwrap, #wpcontent, #wpbody, #wpadminbar, #adminmenu, #adminmenu *,
.wrap, .notice, .postbox, .wp-core-ui, .wp-core-ui * { font-family: "Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important; }
.dashicons, .dashicons-before:before, #adminmenu .wp-menu-image:before, #wpadminbar .ab-icon:before { font-family: dashicons !important; }
/* Hide Howdy */
#wpadminbar #wp-admin-bar-my-account > a .ab-label, #wpadminbar #wp-admin-bar-my-account .ab-item .ab-label { display:none !important; }
/* Top bar */
#wpadminbar { background: var(--jsh-surface) !important; color: #e2e8f0 !important; }
#wpadminbar a, #wpadminbar .ab-item { color: #e2e8f0 !important; }
/* Sidebar width/colors */
#adminmenuback, #adminmenuwrap, #adminmenu { background: #0b1326 !important; }
#adminmenu, #adminmenuback, #adminmenuwrap { width: 320px !important; }
#wpcontent, #wpfooter { margin-left: 320px !important; }
body.folded #adminmenu, body.folded #adminmenuback, body.folded #adminmenuwrap { width: 36px !important; }
body.folded #wpcontent, body.folded #wpfooter { margin-left: 36px !important; }
/* Reserve bottom space for Support */
#adminmenuwrap { padding-bottom: 280px !important; }
/* Logo row */
#toplevel_page_jshapps-logo > a { pointer-events:none !important; height:100px !important; background:#0b1326 !important; }
#toplevel_page_jshapps-logo .wp-menu-image, #toplevel_page_jshapps-logo .dashicons, #toplevel_page_jshapps-logo .wp-menu-arrow { display:none !important; }
#toplevel_page_jshapps-logo > a .wp-menu-name { width:100%; height:100px; padding:0 16px; display:flex; align-items:center; justify-content:center; }
#toplevel_page_jshapps-logo > a .wp-menu-name::before { content:""; display:block; background-image: var(--jsh-logo-url); background-repeat:no-repeat; background-size:contain; background-position:center; width:100%; height:60px; }
body.block-editor-page #toplevel_page_jshapps-logo > a, body.gutenberg-editor-page #toplevel_page_jshapps-logo > a, body.post-php #toplevel_page_jshapps-logo > a, body.post-new-php #toplevel_page_jshapps-logo > a { background:#ffffff !important; }
/* Base menu look */
#adminmenu a.menu-top { padding:14px 14px !important; font-size:16px !important; border-radius:12px !important; color:#cbd5e1 !important; }
#adminmenu .wp-submenu a { font-size:15px !important; padding:10px 16px !important; }
#adminmenu .wp-submenu { border-radius:12px !important; overflow:hidden !important; background:#0d1730 !important; }
/* Active pill + rail */
#adminmenu li.current > a.menu-top, #adminmenu li.wp-has-current-submenu > a.menu-top { position:relative; background: color-mix(in srgb, var(--jsh-primary) 85%, black) !important; color:#fff !important; border-radius:14px !important; }
#adminmenu li.current > a.menu-top::before, #adminmenu li.wp-has-current-submenu > a.menu-top::before { content:''; position:absolute; left:-8px; top:10px; bottom:10px; width:12px; background:var(--jsh-primary); border-radius:12px; }
/* Submenus ONLY when parent active; push-down */
body.wp-admin:not(.folded) #adminmenu li.menu-top > .wp-submenu { display:none !important; position: static !important; float: none !important; margin: 8px 14px 0 14px !important; width: calc(100% - 28px) !important; min-width: 0 !important; box-sizing: border-box !important; border-radius: 12px !important; background: #0d1730 !important; }
body.wp-admin:not(.folded) #adminmenu li.wp-has-current-submenu > .wp-submenu, body.wp-admin:not(.folded) #adminmenu li.current > .wp-submenu { display:block !important; }
/* Support button pinned */
#toplevel_page_jshapps-support { position: fixed; bottom: 12px; left: 0; width: 320px; z-index: 40;}
body.folded #toplevel_page_jshapps-support { width: 36px; }
#toplevel_page_jshapps-support > a { background: var(--jsh-primary) !important; color:#fff !important; border-radius:12px !important; text-align:center; padding:12px 14px !important; font-weight:600; }
#toplevel_page_jshapps-support .wp-menu-image { display:none; }
body.folded #toplevel_page_jshapps-support > a { font-size:0 !important; padding: 4px !important; border-radius: 8px !important; display:flex !important; align-items:center !important; justify-content:center !important; }
body.folded #toplevel_page_jshapps-support .wp-menu-image { display:block !important; }
/* Dark Mode item */
#toplevel_page_jshapps-darkmode { margin-bottom: 16px !important; }
#toplevel_page_jshapps-darkmode > a { padding:14px 14px !important; border-radius:12px !important; background: transparent !important; }
#toplevel_page_jshapps-darkmode .wp-menu-image { float:left !important; width:20px !important; margin:0 12px 0 0 !important; }
/* Collapsed menu */
body.folded #adminmenu a.menu-top { padding: 6px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
body.folded #adminmenu .wp-menu-image { float:none !important; margin:0 !important; width:100% !important; display:flex !important; align-items:center !important; justify-content:center !important; }
body.folded #adminmenu .wp-menu-name { display:none !important; }
body.folded #adminmenu li > a .update-plugins { position:absolute; right:4px; top:4px; }
body.folded #toplevel_page_jshapps-darkmode .wp-menu-image { display:flex !important; }
body.folded #toplevel_page_jshapps-support .wp-menu-image { display:block !important; }
/* Dark theme for content */
body.jshapps-skin.jsh-dark { --jsh-surface:#0b1223; --jsh-muted:#94a3b8; background:#0b1223; color:#e2e8f0; }
body.jshapps-skin.jsh-dark #adminmenu, body.jshapps-skin.jsh-dark #adminmenu .wp-submenu { background:#0f172a !important; }
body.jshapps-skin.jsh-dark a { color:#93c5fd; }
body.jshapps-skin.jsh-dark .wrap, body.jshapps-skin.jsh-dark #wpbody, body.jshapps-skin.jsh-dark #wpbody-content { background:#0b1223 !important; color:#e2e8f0; }
body.jshapps-skin.jsh-dark .widefat, body.jshapps-skin.jsh-dark .wp-list-table { background:#0f172a !important; border-color:#1e293b !important; color:#e2e8f0 !important; }
body.jshapps-skin.jsh-dark .widefat td, body.jshapps-skin.jsh-dark .widefat th, body.jshapps-skin.jsh-dark .wp-list-table td, body.jshapps-skin.jsh-dark .wp-list-table th { border-color:#1e293b !important; }
body.jshapps-skin.jsh-dark .tablenav, body.jshapps-skin.jsh-dark .wp-filter, body.jshapps-skin.jsh-dark .subsubsub, body.jshapps-skin.jsh-dark .search-box input[type="search"] { background:#0f172a !important; color:#e2e8f0 !important; }
body.jshapps-skin.jsh-dark .tablenav .button, body.jshapps-skin.jsh-dark .button { background:#1f2937 !important; border-color:#334155 !important; color:#e2e8f0 !important; }
body.jshapps-skin.jsh-dark .tablenav select, body.jshapps-skin.jsh-dark .tablenav input[type="text"], body.jshapps-skin.jsh-dark .tablenav input[type="search"]{ background:#111827 !important; color:#e5e7eb !important; border-color:#374151 !important; }
body.jshapps-skin.jsh-dark .row-actions a { color:#93c5fd !important; } body.jshapps-skin.jsh-dark .row-actions a:hover { color:#bfdbfe !important; }
