/* =====================================================
   ShortcodeGlut Admin Styles - Comprehensive Update
   ===================================================== */

/* FIX: Remove all outlines and blue borders - HIGHEST PRIORITY */
*:where(:focus, :focus-visible),
*:focus,
*:focus-visible,
a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible,
input:focus,
textarea:focus,
select:focus,
.wp-core-ui *:focus,
.wp-core-ui a:focus,
.wp-core-ui button:focus,
.wp-core-ui input:focus,
.wp-core-ui textarea:focus,
.wp-core-ui select:focus,
.wp-core-ui input[type="text"]:focus,
.wp-core-ui input[type="email"]:focus,
.wp-core-ui input[type="url"]:focus,
.wp-core-ui input[type="password"]:focus,
.wp-core-ui input[type="number"]:focus,
.wp-core-ui input[type="search"]:focus,
.wp-core-ui textarea:focus,
.wp-core-ui select:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) !important;
    -webkit-box-shadow: none !important;
}

/* Hide WordPress notices on admin pages */
.shortcodeglut-admin #screen-meta-links {
    display: none;
}

.shortcodeglut-admin .notice.notice-warning.update-nag {
    display: none;
}

.shortcodeglut-admin .updated,
.shortcodeglut-admin .notice {
    display: none !important;
}

.wp-admin.shortcodeglut-admin #wpcontent {
    padding: 0;
}

/* =====================================================
   PAGE HEADER STYLES
   ===================================================== */
.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner {
    background-color: #7340b0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    top: 0;
    width: 100%;
    padding: 15px;
    padding-bottom: 0px;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner.shortcodeglut-pro {
    padding: 15px 15px 0;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__logo {
    padding: 0 0 15px;
    display: block;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__logo img {
    width: 150px;
    height: auto;
    float: left;
    margin-top: 25px;
    padding-left: 15px;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__helplinks {
    float: right;
    padding: 20px 20px 20px;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__helplinks a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__helplinks a.shortcodeglut-active {
    background: #fff;
    padding: 5px;
    color: #0068b3;
    border-radius: 4px;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__helplinks > span {
    padding-right: 15px;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-nav-tab-wrapper {
    padding: 0;
    margin: 10px 16px 0;
    border-bottom: 0;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-nav-tab-wrapper .shortcodeglut-nav-tab {
    display: block;
    font-weight: 500;
    padding: 5px 12px;
    padding-bottom: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-nav-tab-wrapper .shortcodeglut-nav-tab.shortcodeglut-nav-active {
    background-color: #fff;
    color: #2d3559;
    border-color: #fff;
    border-radius: 4px 4px 0 0;
    padding-bottom: 8px;
    padding-top: 7px;
}

.shortcodeglut-admin .shortcodeglut-page-header-banner.shortcodeglut-not-pro {
    padding-bottom: 0;
}

.shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-no-submenu .shortcodeglut-nav-tab-wrapper {
    margin-top: 0;
}

.shortcodeglut-admin .shortcodeglut-page-header-banner .shortcodeglut-header-menus {
    margin-top: 10px;
}

/* =====================================================
   FULL-WIDTH EDITOR STYLES - HIDE ADMIN MENU & TOP BAR
   ===================================================== */

/* CRITICAL: Hide admin sidebar - Use multiple selectors for better specificity */
body.shortcodeglut-woo-template-editor #adminmenumain,
body.shortcodeglut-woo-template-editor #adminmenuback,
body.shortcodeglut-woo-template-editor #adminmenuwrap {
    display: none !important;
    width: 0 !important;
    visibility: hidden !important;
}

/* Hide the entire left menu container */
body.shortcodeglut-woo-template-editor .adminmenu {
    display: none !important;
}

/* Hide admin bar */
body.shortcodeglut-woo-template-editor #wpadminbar {
    display: none !important;
    height: 0 !important;
}

/* Remove padding from body when admin bar is hidden */
body.shortcodeglut-woo-template-editor.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.shortcodeglut-woo-template-editor html.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Fix wpwrap margin */
body.shortcodeglut-woo-template-editor #wpwrap,
body.shortcodeglut-woo-template-editor.auto-fold #wpwrap {
    margin-left: 0 !important;
}

/* Fix wpbody positioning */
body.shortcodeglut-woo-template-editor #wpbody,
body.shortcodeglut-woo-template-editor #wpbody-content {
    margin-left: 0 !important;
    position: relative !important;
    left: 0 !important;
}

/* Make content full width */
body.shortcodeglut-woo-template-editor .wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.shortcodeglut-woo-template-editor #wpbody-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide all notices in template editor */
body.shortcodeglut-woo-template-editor .notice,
body.shortcodeglut-woo-template-editor .update-nag,
body.shortcodeglut-woo-template-editor .updated {
    display: none !important;
}

/* =====================================================
   CONTENT SPACING
   ===================================================== */
.shortcodeglut-admin .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* =====================================================
   HEADING STYLES - Larger, Centered
   ===================================================== */
.shortcodeglut-admin h1,
.shortcodeglut-admin .wrap h1,
.shortcodeglut-admin-contents h1 {
    font-size: 30px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 30px 0 !important;
    margin-bottom: 0px !important;
}

.shortcodeglut-admin h2,
.shortcodeglut-admin .wrap h2 {
    font-size: 26px !important;
    font-weight: 400 !important;
    margin: 25px 0 !important;
}

/* =====================================================
   COPY NOTIFICATION
   ===================================================== */
.shortcodeglut-copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.shortcodeglut-copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =====================================================
   TEMPLATE BADGE STYLES
   ===================================================== */
.scg-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    margin-left: 8px;
}

.scg-badge--default {
    background-color: #edc728;
    color: #1d2327;
}

/* =====================================================
   TEMPLATE WRAPPER AND ACTIONS
   ===================================================== */
.shopglut-template-id-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shopglut-template-id-code {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: #2271b1;
    background: #f0f6ff;
    padding: 4px 8px;
    border-radius: 4px;
}

.shopglut-copy-btn {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.shopglut-copy-btn:hover {
    background: #e9e9eb;
    border-color: #50575e;
}

.shopglut-copy-btn .dashicons {
    font-size: 16px;
    color: #50575e;
}

.shopglut-template-id-wrapper.shopglut-copied .shopglut-copy-btn {
    background: #d1fae5;
    border-color: #10b981;
}

.shopglut-template-id-wrapper.shopglut-copied .shopglut-copy-btn .dashicons {
    color: #10b981;
}

.shopglut-template-actions {
    display: flex;
    gap: 8px;
}

.shopglut-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
}

/* Preview Button - Blue */
.shopglut-preview-btn {
    background: #e7f3ff;
    border-color: #b8daff;
    color: #0066cc;
}

.shopglut-preview-btn:hover {
    background: #cce5ff;
    border-color: #0066cc;
    color: #0052a3;
}

.shopglut-preview-btn .dashicons {
    color: #0066cc;
}

/* Duplicate Button - Green */
.shopglut-duplicate-btn {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #059669;
}

.shopglut-duplicate-btn:hover {
    background: #a7f3d0;
    border-color: #059669;
    color: #047857;
}

.shopglut-duplicate-btn .dashicons {
    color: #059669;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 782px) {
    .shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__logo {
        float: none;
    }

    .shortcodeglut-admin .shortcodeglut-page-header .shortcodeglut-page-header-banner__helplinks {
        float: none;
        text-align: center;
        padding: 10px 0;
    }
}
