﻿/**
 * Custom Schema Box Generator - Admin Styles
 *
 * @package Custom Schema Box Generator
 * @version 1.0.0
 */

/* Reset WordPress default label styles - Force line by line display */
.scmg-items-list label {
    display: block !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

.scmg-items-list label.scmg-item-checkbox {
    display: block !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-sizing: border-box !important;
}

/* ========================================
   FULL WIDTH SETTINGS PAGE - ALL TABS
   ======================================== */

/* Main Wrap Container - Full Width */
.scmg-settings-wrap {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* All Tab Containers - Full Width */
.scmg-generator-container,
.scmg-manage-schemas-container,
.scmg-templates-container,
.scmg-how-to-use,
.scmg-faq,
.scmg-donate {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Manage Schemas Tab - Full Width Elements */
    max-width: none !important;
    width: 100% !important;
}

/* Manage Schemas Table Styling */
#scmg_schemas_table_container table {
    width: 100% !important;
    max-width: none !important;
}

#scmg_schemas_table_container table tbody tr:hover {
    background-color: #f6f7f7 !important;
}

/* Debug Information Box */
.scmg-debug-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 15px;
    margin-bottom: 20px;
}

.scmg-debug-box h3 {
    margin-top: 0;
}

.scmg-debug-section {
    background: #f0f6fc;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #2271b1;
}

.scmg-debug-section p {
    margin: 0;
}

.scmg-debug-section ul {
    margin: 5px 0;
}

.scmg-debug-note {
    background: #fff3cd;
    padding: 10px;
    border-left: 3px solid #ffc107;
}

.scmg-debug-note p {
    margin: 0;
    color: #856404;
}

.scmg-debug-success {
    color: #00a32a;
    font-weight: bold;
}

.scmg-debug-error {
    color: #d63638;
}

/* Settings Description */
.scmg-settings-description {
    margin-bottom: 20px;
}

.scmg-debug-link {
    margin-left: 10px;
}

/* Post Type Sections - Enhanced Card Design */
.scmg-post-type-section {
    margin-bottom: 25px;
    padding: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden;
}

.scmg-post-type-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.scmg-post-type-section legend {
    font-weight: 600;
    font-size: 17px;
    margin: 0;
    padding: 10px 0px;
    color: #1d2327;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #2271b1;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scmg-post-type-section legend:before {
    content: "📄";
    font-size: 20px;
}

.scmg-post-type-section legend .scmg-label-note {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    background: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: auto;
    border: 1px solid #e0e0e0;
}

/* Enable/Disable Radio Buttons - Modern Toggle Style */
.scmg-enable-box {
    margin: 0;
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scmg-enable-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #1d2327;
    min-width: 200px;
}

.scmg-enable-label:before {
    content: "⚙️";
    font-size: 18px;
}

.scmg-enable-radio-group {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.scmg-radio-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f6f7f7;
    font-weight: 500;
    font-size: 14px;
}

.scmg-radio-label:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.scmg-radio-label input[type="radio"] {
    margin: 0 !important;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
}

.scmg-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
}

.scmg-radio-label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4ebf7 100%);
    border-color: #2271b1;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.2);
    transform: translateY(-1px);
}

.scmg-radio-yes {
    color: #00a32a;
    font-weight: 600;
}

.scmg-radio-no {
    color: #d63638;
    font-weight: 600;
}

/* Meta Box Type Selector - Enhanced Design */
.scmg-meta-box-type-container {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e7f3ff 100%);
    border-bottom: 1px solid #e0e0e0;
}

.scmg-meta-box-type-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scmg-meta-box-type-selector > label:first-child {
    font-weight: 600;
    font-size: 15px;
    color: #1d2327;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.scmg-meta-box-type-selector > label:first-child:before {
    content: "🔄";
    font-size: 18px;
}

.scmg-meta-box-type-radio-group {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.scmg-meta-box-type-radio {
    margin: 0 !important;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
}

.scmg-meta-box-type-label {
    margin: 0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    color: #50575e;
    border: 2px solid transparent;
    background: #f6f7f7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scmg-meta-box-type-label:hover {
    background: #e9ecef;
    color: #1d2327;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.scmg-meta-box-type-label:has(.scmg-meta-box-type-radio:checked) {
    background: linear-gradient(135deg, #e7f3ff 0%, #d4ebf7 100%);
    border-color: #2271b1;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.2);
    transform: translateY(-1px);
}

.scmg-meta-box-type-label .scmg-meta-box-type-radio:checked + span {
    font-weight: 600;
}

.scmg-mode-description {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    font-size: 13px;
    color: #50575e;
    line-height: 1.6;
    margin-top: 10px;
}

.scmg-mode-description:before {
    content: "ℹ️ ";
    margin-right: 6px;
}

/* Individual Items List - Enhanced Card Style */
.scmg-items-list-container {
    margin: 0;
    padding: 25px;
    background: #fff;
    display: block;
    clear: both;
    border-bottom: 1px solid #f0f0f0;
}

.scmg-items-list-header {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d2327;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.scmg-items-list-header:before {
    content: "📋 ";
    margin-right: 6px;
}

.scmg-select-all-container {
    display: inline-flex;
    gap: 8px;
}

.scmg-select-all-btn {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
    pointer-events: auto;
}

.scmg-select-all-btn:hover:not(.scmg-disabled) {
    background: linear-gradient(135deg, #135e96 0%, #0a4a7a 100%);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
    transform: translateY(-2px);
}

.scmg-select-all-btn:active:not(.scmg-disabled) {
    transform: translateY(0);
}

.scmg-select-all-btn.scmg-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.scmg-select-all-btn:before {
    content: "✓ ";
    margin-right: 4px;
}

.scmg-deselect-all-btn {
    background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(214, 54, 56, 0.2);
    pointer-events: auto;
}

.scmg-deselect-all-btn:hover:not(.scmg-disabled) {
    background: linear-gradient(135deg, #b32d2e 0%, #8a2424 100%);
    box-shadow: 0 4px 8px rgba(214, 54, 56, 0.3);
    transform: translateY(-2px);
}

.scmg-deselect-all-btn:active:not(.scmg-disabled) {
    transform: translateY(0);
}

.scmg-deselect-all-btn.scmg-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.scmg-deselect-all-btn:before {
    content: "✕ ";
    margin-right: 4px;
}

.scmg-items-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
    flex: 0 0 auto !important;
    background: #fff;
    font-size: 14px;
    color: #1d2327;
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox:last-child {
    border-bottom: none !important;
    border-radius: 0 0 6px 6px;
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox:first-child {
    border-radius: 6px 6px 0 0;
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox:hover {
    background: linear-gradient(90deg, #e7f3ff 0%, #f0f8ff 100%) !important;
    padding-left: 20px !important;
    border-left: 3px solid #2271b1 !important;
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox input[type="checkbox"] {
    margin-right: 10px !important;
    vertical-align: middle !important;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.scmg-items-list-container .scmg-items-list label.scmg-item-checkbox input[type="checkbox"]:checked {
    accent-color: #2271b1;
}

/* Additional specificity for stubborn WordPress styles */
div.scmg-items-list-container div.scmg-items-list label {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

table.form-table td .scmg-items-list label {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.scmg-item-id {
    color: #999;
    font-size: 11px;
    margin-left: 8px;
    font-style: italic;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Dynamic Schema Textarea - Enhanced Design */
.scmg-dynamic-schema {
    padding: 25px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.scmg-dynamic-schema > label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1d2327;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.scmg-dynamic-schema > label:before {
    content: "⚡ ";
    margin-right: 6px;
}

.scmg-dynamic-schema textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: #1d2327;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.scmg-dynamic-schema textarea:focus {
    outline: none;
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1), inset 0 2px 4px rgba(0,0,0,0.04);
}

.scmg-dynamic-schema textarea::placeholder {
    color: #999;
    font-style: italic;
}

.scmg-dynamic-schema-help {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    color: #50575e;
    line-height: 1.6;
}

.scmg-dynamic-schema-help:before {
    content: "💡 ";
    margin-right: 6px;
}

.scmg-dynamic-schema-help strong {
    color: #1d2327;
}

/* Warning/Note Boxes - Enhanced */
.scmg-warning-box {
    margin: 20px 25px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

.scmg-warning-box:before {
    content: "⚠️ ";
    margin-right: 8px;
    font-size: 16px;
}

.scmg-warning-box p {
    color: #856404;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.scmg-info-box {
    padding: 16px 20px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.1);
}

.scmg-info-box:before {
    content: "ℹ️ ";
    margin-right: 8px;
    font-size: 16px;
}

.scmg-info-box p {
    margin: 0;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.6;
}

.scmg-info-box span {
    font-size: 14px;
}

/* Scrollbar Styling - Enhanced */
.scmg-items-list::-webkit-scrollbar {
    width: 10px;
}

.scmg-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
    margin: 4px 0;
}

.scmg-items-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

.scmg-items-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4a7a 100%);
}

/* Save Settings Button - Enhanced */
.submit .button-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.submit .button-primary:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4a7a 100%);
    box-shadow: 0 6px 12px rgba(34, 113, 177, 0.4);
    transform: translateY(-2px);
}

.submit .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.submit .button-primary:before {
    content: "💾 ";
    margin-right: 6px;
}

/* Tooltip Styles */
.scmg-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.scmg-tooltip:hover {
    background: #135e96;
    transform: scale(1.1);
}

.scmg-tooltip:before {
    content: "?";
}

.scmg-tooltip .scmg-tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #1d2327;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scmg-tooltip .scmg-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1d2327 transparent transparent transparent;
}

.scmg-tooltip:hover .scmg-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Schema Templates Tab - Full Width */
.scmg-templates-container {
    padding: 20px 0;
    max-width: none !important;
    width: 100% !important;
}

.scmg-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100% !important;
}

.scmg-template-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.scmg-template-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scmg-template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.scmg-template-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.scmg-template-type {
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.scmg-template-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0 15px;
    line-height: 1.5;
}

.scmg-template-actions {
    display: flex;
    gap: 10px;
}

.scmg-template-actions .button {
    flex: 1;
}

/* Template Modal */
.scmg-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.scmg-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.scmg-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.scmg-modal-close:hover,
.scmg-modal-close:focus {
    color: #000;
}

#scmg-modal-code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

/* How to Use Tab - Full Width */
.scmg-how-to-use {
    padding: 20px 0;
    max-width: none !important;
    width: 100% !important;
}

.scmg-guide-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.scmg-guide-section h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 20px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.scmg-guide-section ol,
.scmg-guide-section ul {
    line-height: 1.8;
    margin-left: 20px;
}

.scmg-guide-section li {
    margin-bottom: 10px;
}

.scmg-guide-example {
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    padding: 15px;
    margin-top: 15px;
}

.scmg-guide-example h4 {
    margin-top: 0;
    color: #1d2327;
}

.scmg-guide-example pre {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.scmg-guide-image {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 15px;
    margin-top: 15px;
}

.scmg-guide-image p {
    margin: 0;
    color: #856404;
}

.scmg-guide-tips {
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
}

.scmg-guide-tips ul {
    list-style: none;
    margin-left: 0;
}

.scmg-guide-tips li {
    padding-left: 25px;
    position: relative;
}

.scmg-guide-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

.scmg-guide-resources ul {
    list-style: none;
    margin-left: 0;
}

.scmg-guide-resources li {
    padding-left: 25px;
    position: relative;
}

.scmg-guide-resources li:before {
    content: "🔗";
    position: absolute;
    left: 0;
}

.scmg-guide-resources a {
    color: #2271b1;
    text-decoration: none;
}

.scmg-guide-resources a:hover {
    text-decoration: underline;
}

/* FAQ Tab - Full Width */
.scmg-faq {
    padding: 20px 0;
    max-width: none !important;
    width: 100% !important;
}

.scmg-faq-item {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.scmg-faq-question {
    margin: 0;
    padding: 20px;
    background: #f6f7f7;
    cursor: pointer;
    font-size: 16px;
    color: #1d2327;
    border-bottom: 1px solid #ccd0d4;
    transition: background 0.3s ease;
}

.scmg-faq-question:hover {
    background: #e5f5ff;
}

.scmg-faq-answer {
    padding: 20px;
    line-height: 1.8;
}

.scmg-faq-answer p {
    margin-top: 0;
}

.scmg-faq-answer ul,
.scmg-faq-answer ol {
    margin-left: 20px;
}

.scmg-faq-answer li {
    margin-bottom: 8px;
}

.scmg-faq-answer code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.scmg-faq-answer a {
    color: #2271b1;
    text-decoration: none;
}

.scmg-faq-answer a:hover {
    text-decoration: underline;
}

.scmg-faq-support {
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
    padding: 20px;
    margin-top: 30px;
}

.scmg-faq-support h3 {
    margin-top: 0;
    color: #1d2327;
}

.scmg-faq-support ul {
    list-style: none;
    margin-left: 0;
}

.scmg-faq-support li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.scmg-faq-support li:before {
    content: "📌";
    position: absolute;
    left: 0;
}

/* Donate Tab - Full Width */
.scmg-donate {
    padding: 20px 0;
    max-width: none !important;
    width: 100% !important;
}

.scmg-donate-hero {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scmg-donate-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scmg-donate-hero h2 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.scmg-donate-tagline {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

.scmg-donate-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.scmg-donate-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scmg-donate-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 30px;
}

.scmg-donate-section h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 22px;
    margin-bottom: 15px;
}

.scmg-donate-section p {
    line-height: 1.8;
    color: #50575e;
}

.scmg-donate-section ul {
    line-height: 1.8;
    margin-left: 20px;
}

.scmg-donate-section li {
    margin-bottom: 10px;
    color: #50575e;
}

.scmg-donate-features {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
}

.scmg-donate-features ul {
    list-style: none;
    margin-left: 0;
}

.scmg-donate-features li {
    padding-left: 0;
}

.scmg-donate-why {
    background: #fff9e6;
    border-color: #ffc107;
    border-left: 4px solid #ffc107;
}

.scmg-donate-cta {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: none;
    text-align: center;
}

.scmg-donate-buttons {
    margin: 30px 0;
}

.scmg-donate-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scmg-donate-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.scmg-donate-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.scmg-donate-button-secondary {
    background: #2271b1;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    display: block;
    text-align: center;
}

.scmg-donate-button-secondary:hover {
    background: #135e96;
    transform: translateY(-2px);
    color: #fff;
}

.scmg-donate-button-icon {
    font-size: 32px;
}

.scmg-donate-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.scmg-donate-button-text strong {
    font-size: 20px;
    display: block;
}

.scmg-donate-button-text small {
    font-size: 14px;
    opacity: 0.9;
}

.scmg-donate-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.scmg-donate-alternatives {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
}

.scmg-donate-thanks {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border: none;
    text-align: center;
}

.scmg-donate-thanks p:last-child {
    font-size: 18px;
    font-weight: 600;
    color: #c2185b;
    margin-bottom: 0;
}

/* Donate Sidebar */
.scmg-donate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scmg-donate-stats,
.scmg-donate-testimonial,
.scmg-donate-quick-donate,
.scmg-donate-social {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 25px;
}

.scmg-donate-sidebar h4 {
    margin-top: 0;
    color: #1d2327;
    font-size: 18px;
    margin-bottom: 15px;
}

.scmg-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f6f7f7;
    border-radius: 6px;
}

.scmg-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
}

.scmg-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.scmg-donate-testimonial blockquote {
    margin: 0;
    padding: 15px;
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    font-style: italic;
}

.scmg-donate-testimonial cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: normal;
}

.scmg-social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.scmg-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f6f7f7;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scmg-social-link:hover {
    background: #2271b1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animation Keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.scmg-post-type-section {
    animation: slideIn 0.4s ease-out;
}

.scmg-items-list-container,
.scmg-dynamic-schema {
    animation: fadeIn 0.3s ease-out;
}

/* Success/Error Feedback */
.scmg-feedback-message {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100000;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scmg-feedback-success {
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
    color: #fff;
}

.scmg-feedback-success:before {
    content: "✓";
    font-size: 20px;
}

.scmg-feedback-error {
    background: linear-gradient(135deg, #d63638 0%, #b32d2e 100%);
    color: #fff;
}

.scmg-feedback-error:before {
    content: "✕";
    font-size: 20px;
}

/* Loading State */
.scmg-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.scmg-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder Preview Box */
.scmg-placeholder-preview {
    margin-top: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e7f3ff 100%);
    border: 2px dashed #2271b1;
    border-radius: 8px;
}

.scmg-placeholder-preview h4 {
    margin: 0 0 12px 0;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
}

.scmg-placeholder-preview h4:before {
    content: "🔖 ";
    margin-right: 6px;
}

.scmg-placeholder-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scmg-placeholder-list li {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #2271b1;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.scmg-placeholder-list li:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
    cursor: pointer;
}

/* ========================================
   INLINE STYLES - MOVED FROM PHP
   ======================================== */

/* Compliance Notice */
.scmg-compliance-notice h3 {
    margin-top: 15px;
}

.scmg-compliance-notice h3 .dashicons {
    color: #f0b849;
    font-size: 24px;
    vertical-align: middle;
}

.scmg-compliance-notice ol {
    margin-left: 20px;
}

.scmg-compliance-notice .scmg-dismiss-notice {
    margin-left: 10px;
}

/* Generator Tab - Notices */
.scmg-generator-container .notice-warning {
    margin: 20px 0;
    padding: 15px;
}

.scmg-generator-container .notice-info {
    margin: 20px 0;
    padding: 15px;
}

.scmg-generator-container .notice-info ol {
    margin-left: 20px;
}

/* Generator Form Container */
.scmg-generator-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Form Groups */
.scmg-form-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f1;
}

.scmg-form-group label {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 15px;
    color: #1d2327;
}

.scmg-form-group label .dashicons {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 8px;
}

.scmg-form-group label .required {
    color: #d63638;
}

/* Post Type Sections */
.scmg-post-type-section {
    margin-bottom: 15px;
}

.scmg-post-type-section > p {
    font-weight: 500;
    margin-bottom: 10px;
    color: #646970;
    font-size: 13px;
}

.scmg-post-type-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.scmg-post-type-selector label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.scmg-post-type-selector label input[type="radio"] {
    margin: 0 10px 0 0;
}

.scmg-post-type-selector label span {
    font-weight: 500;
    font-size: 14px;
}

/* No CPT Notice */
.scmg-no-cpt-notice {
    margin-top: 10px;
    padding: 12px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.scmg-no-cpt-notice p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.scmg-no-cpt-notice .dashicons {
    vertical-align: middle;
    color: #2271b1;
}

/* Form Descriptions */
.scmg-form-group .description {
    margin-top: 12px;
}

/* Step 2 Container */
#scmg_step_2_container {
    display: none;
}

#scmg_step_2_container > div {
    margin-bottom: 15px;
}

#scmg_post_search {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

#scmg_post_search + .description {
    margin-top: 8px;
}

#scmg_post_selector {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

#scmg_post_selector + .description {
    margin-top: 8px;
}

/* Step 3 Container */
#scmg_step_3_container {
    display: none;
}

#scmg_generator_schema_type {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

#scmg_generator_schema_type + .description {
    margin-top: 8px;
}

/* Step 4 Container */
#scmg_step_4_container {
    display: none;
}

#scmg_step_4_container > div:first-child {
    margin-bottom: 15px;
}

#scmg_generator_fields_container {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

#scmg_generator_fields_container .description {
    padding: 20px;
    background: #f0f0f1;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

/* Form Actions */
.scmg-form-actions {
    padding-top: 20px;
    border-top: 2px solid #dcdcde;
}

#scmg_generate_save_btn {
    padding: 12px 35px;
    font-size: 15px;
    height: auto;
}

#scmg_generate_save_btn .dashicons {
    vertical-align: middle;
    margin-top: 3px;
}

#scmg_reset_form_btn {
    margin-left: 10px;
    padding: 12px 35px;
    font-size: 15px;
    height: auto;
}

#scmg_reset_form_btn .dashicons {
    vertical-align: middle;
    margin-top: 3px;
}

#scmg_generator_message {
    margin-left: 15px;
    font-weight: 600;
}

/* Loading States */
.scmg-loading-text {
    text-align: center;
    padding: 30px;
}

.scmg-loading-text .dashicons {
    font-size: 32px;
    color: #2271b1;
}

.scmg-error-text {
    color: #d63638;
    padding: 20px;
    text-align: center;
}

/* Spinning Animation */
.dashicons.spin {
    animation: rotation 1s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* ========================================
   MANAGE SCHEMAS TAB
   ======================================== */

/* Manage Schemas Description */
.scmg-manage-schemas-container > .description {
    margin-bottom: 20px;
}

/* No Schemas Notice */
.scmg-manage-schemas-container .notice-warning {
    padding: 20px;
    margin: 20px 0;
}

/* Filters Section */
.scmg-filters-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.scmg-filters-section > div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.scmg-filters-section > div > div {
    flex: 1 1 200px;
    min-width: 0;
}

.scmg-filters-section label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
    font-size: 14px;
}

.scmg-filters-section select,
.scmg-filters-section input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.scmg-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scmg-filter-buttons .button {
    padding: 10px 20px;
    height: auto;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.scmg-filter-buttons .dashicons {
    font-size: 18px;
}

#scmg_apply_filters,
#scmg_reset_filters {
    padding: 10px 24px;
    height: auto;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#scmg_apply_filters .dashicons,
#scmg_reset_filters .dashicons {
    font-size: 18px;
}

/* Stats Section */
.scmg-schemas-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 14px;
}

#scmg_filtered_count {
    margin-left: 15px;
    display: none;
}

/* Schemas Table Container */
#scmg_schemas_table_container {
    width: 100%;
}

#scmg_schemas_table_container table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    table-layout: fixed;
}

#scmg_schemas_table_container thead tr {
    background: #f6f7f7;
}

#scmg_schemas_table_container th {
    padding: 12px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #c3c4c7;
}

#scmg_schemas_table_container th.scmg-sortable {
    user-select: none;
    transition: background-color 0.2s ease;
}

#scmg_schemas_table_container th.scmg-sortable:hover {
    background-color: #e8e9ea;
}

#scmg_schemas_table_container th.scmg-sortable.sorted-asc,
#scmg_schemas_table_container th.scmg-sortable.sorted-desc {
    background-color: #f0f0f1;
}

#scmg_schemas_table_container .scmg-sort-indicator {
    display: inline-block;
    margin-left: 4px;
    color: #2271b1;
}

/* ========================================
   TABLE STRUCTURE - 7 COLUMNS
   ======================================== */

/* Force table layout */
#scmg_schemas_table_container .wp-list-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

/* OVERRIDE ANY CONFLICTING RULES - Reset all th/td widths first */
#scmg_schemas_table_container th,
#scmg_schemas_table_container td {
    width: auto !important;
}

/* Column Widths - HEADER */
#scmg_schemas_table_container thead th:nth-child(1) { width: 40px !important; min-width: 40px !important; max-width: 40px !important; } /* Checkbox */
#scmg_schemas_table_container thead th:nth-child(2) { width: 60px !important; min-width: 60px !important; max-width: 60px !important; } /* ID */
#scmg_schemas_table_container thead th:nth-child(3) { width: 30% !important; min-width: 200px !important; } /* Post/Page Title */
#scmg_schemas_table_container thead th:nth-child(4) { width: 12% !important; min-width: 100px !important; } /* Post Type */
#scmg_schemas_table_container thead th:nth-child(5) { width: 15% !important; min-width: 120px !important; } /* Schema Type */
#scmg_schemas_table_container thead th:nth-child(6) { width: 18% !important; min-width: 140px !important; } /* Last Updated */
#scmg_schemas_table_container thead th:nth-child(7) { width: 180px !important; min-width: 180px !important; max-width: 180px !important; } /* Actions */

/* Column Widths - BODY (th for checkbox, td for rest) */
#scmg_schemas_table_container tbody tr > *:nth-child(1) { width: 40px !important; min-width: 40px !important; max-width: 40px !important; } /* Checkbox */
#scmg_schemas_table_container tbody tr > *:nth-child(2) { width: 60px !important; min-width: 60px !important; max-width: 60px !important; } /* ID */
#scmg_schemas_table_container tbody tr > *:nth-child(3) { width: 30% !important; min-width: 200px !important; } /* Post/Page Title */
#scmg_schemas_table_container tbody tr > *:nth-child(4) { width: 12% !important; min-width: 100px !important; } /* Post Type */
#scmg_schemas_table_container tbody tr > *:nth-child(5) { width: 15% !important; min-width: 120px !important; } /* Schema Type */
#scmg_schemas_table_container tbody tr > *:nth-child(6) { width: 18% !important; min-width: 140px !important; } /* Last Updated */
#scmg_schemas_table_container tbody tr > *:nth-child(7) { width: 180px !important; min-width: 180px !important; max-width: 180px !important; } /* Actions */

/* Header Cell Styling */
#scmg_schemas_table_container thead th {
    padding: 12px !important;
    text-align: left !important;
    vertical-align: middle !important;
    background: #f6f7f7 !important;
    border-bottom: 1px solid #c3c4c7 !important;
}

/* Body Cell Styling */
#scmg_schemas_table_container tbody td,
#scmg_schemas_table_container tbody th {
    padding: 12px !important;
    border-bottom: 1px solid #dcdcde !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Checkbox Column Specific */
#scmg_schemas_table_container .check-column {
    text-align: center !important;
    padding: 8px !important;
}

#scmg_schemas_table_container tbody th.check-column {
    font-weight: normal !important;
}

#scmg_schemas_table_container tbody tr {
    transition: background-color 0.2s;
}

#scmg_schemas_table_container tbody tr:hover {
    background-color: #f6f7f7;
}

/* Pagination Styles */
#scmg_pagination_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    margin-top: 0;
}

.scmg-pagination-info {
    color: #646970;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scmg-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scmg-per-page-wrapper label {
    margin: 0;
    font-weight: normal;
}

#scmg_per_page {
    padding: 4px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 13px;
    min-width: 60px;
}

.scmg-entries-label {
    white-space: nowrap;
}

.scmg-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Schema Type Selector - Category Optgroup Styling */
#scmg_generator_schema_type optgroup {
    font-weight: 600;
    font-style: normal;
    color: #1d2327;
    background: #f0f6fc;
    padding: 8px 0;
    margin-top: 5px;
}

#scmg_generator_schema_type option {
    padding: 6px 12px;
    font-weight: normal;
    color: #2c3338;
}

#scmg_generator_schema_type optgroup option {
    padding-left: 20px;
}

.scmg-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #2271b1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.scmg-page-btn:hover:not(:disabled) {
    background: #f6f7f7;
    border-color: #2271b1;
}

.scmg-page-btn.button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.scmg-page-btn.button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.scmg-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scmg-page-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Table Cell Specific Styles - UPDATED FOR 7 COLUMNS */
/* Column 1: Checkbox (th element) - handled by .check-column */

/* Column 2: ID */
#scmg_schemas_table_container .scmg-table-cell-id {
    font-weight: 600;
    color: #2271b1;
}

/* Column 3: Post/Page Title */
#scmg_schemas_table_container td:nth-child(3) strong {
    font-size: 14px;
    color: #1d2327;
}

#scmg_schemas_table_container td:nth-child(3) small {
    color: #646970;
    font-size: 13px;
    margin-top: 4px;
    display: inline-block;
}

#scmg_schemas_table_container td:nth-child(3) small a {
    color: #2271b1;
    text-decoration: none;
}

#scmg_schemas_table_container td:nth-child(3) small span {
    color: #c3c4c7;
}

/* Column 4: Post Type & Column 6: Last Updated */
#scmg_schemas_table_container .scmg-table-cell-meta {
    color: #646970;
    font-size: 13px;
}

/* Column 5: Schema Type Badge */
.scmg-schema-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Column 7: Action Buttons */
#scmg_schemas_table_container .scmg-actions-wrapper {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.scmg-copy-schema-btn,
.scmg-delete-schema-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.scmg-copy-schema-btn .dashicons,
.scmg-delete-schema-btn .dashicons {
    font-size: 16px;
}

.scmg-delete-schema-btn {
    color: #b32d2e;
}

/* Hidden Schema JSON Textarea */
.scmg-schema-json-hidden {
    position: absolute;
    left: -9999px;
}

/* Loading/Empty States in Table */
#scmg_schemas_tbody td[colspan="6"] {
    text-align: center;
    padding: 40px;
}

#scmg_schemas_tbody td[colspan="6"] .dashicons {
    font-size: 32px;
    color: #2271b1;
    display: block;
    margin-bottom: 10px;
}

#scmg_schemas_tbody td[colspan="6"] span:not(.dashicons) {
    color: #646970;
    font-size: 14px;
}

#scmg_schemas_tbody .error-message {
    color: #d63638;
}

/* ========================================
   TEMPLATES TAB
   ======================================== */

/* Templates Notice */
.scmg-templates-container .notice-info {
    margin: 20px 0;
    padding: 15px;
}

.scmg-templates-container .notice-info ol {
    margin-left: 20px;
}

/* Template Preview Code */
.scmg-template-code {
    display: none;
}

/* Template Modal */
#scmg-template-modal {
    display: none;
}

/* ========================================
   HOW TO USE TAB
   ======================================== */

/* How to Use Notice */
.scmg-how-to-use .notice-info {
    padding: 15px;
    margin: 20px 0;
}

/* Guide Section Warning */
.scmg-guide-section .notice-warning {
    padding: 15px;
    margin: 15px 0;
}

/* ========================================
   SCHEMA FIELDS
   ======================================== */

/* Schema Fields Container */
.scmg-schema-fields {
    background: #fff;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.scmg-schema-fields h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1d2327;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

/* Schema Fields Description */
.scmg-schema-fields > p.description {
    margin-bottom: 15px;
}

/* Field Groups */
.scmg-field-group {
    margin-bottom: 20px;
}

.scmg-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
    font-size: 14px;
}

.scmg-field-required {
    color: #d63638;
    font-weight: bold;
}

.scmg-field-group input[type="text"],
.scmg-field-group input[type="url"],
.scmg-field-group input[type="number"],
.scmg-field-group input[type="date"],
.scmg-field-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
}

.scmg-field-group textarea {
    min-height: 100px;
    resize: vertical;
}

.scmg-field-group input:focus,
.scmg-field-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.scmg-field-group .description {
    margin-top: 5px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

/* Post Type Radio Buttons Hover */
.scmg-post-type-selector label:hover {
    border-color: #2271b1 !important;
    background: #f0f6fc !important;
}

/* Filter Buttons Hover */
#scmg_apply_filters:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
}

#scmg_reset_filters:hover {
    background: #f0f0f1 !important;
    border-color: #8c8f94 !important;
}

/* Action Buttons in Table Hover */
.scmg-copy-schema-btn:hover {
    background: #f0f0f1 !important;
    border-color: #2271b1 !important;
    color: #2271b1 !important;
}

.scmg-delete-schema-btn:hover {
    background: #f6e9e9 !important;
    border-color: #b32d2e !important;
    color: #b32d2e !important;
}

.scmg-view-schema-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

/* ========================================
   SCHEMA CODE MODAL
   ======================================== */

/* Modal Overlay */
.scmg-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content Box */
.scmg-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.scmg-modal-close {
    color: #646970;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.scmg-modal-close:hover,
.scmg-modal-close:focus {
    color: #1d2327;
}

/* Modal Title */
#scmg-schema-modal-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    padding-right: 40px;
}

/* Modal Code Display */
#scmg-schema-modal-code {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 500px;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #dcdcde;
    color: #1d2327;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Modal Buttons */
.scmg-modal-copy-schema,
.scmg-modal-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.scmg-modal-copy-schema .dashicons,
.scmg-modal-close-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    vertical-align: middle;
    margin-top: 0;
}

.scmg-modal-copy-schema:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* View Schema Button */
.scmg-view-schema-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.scmg-view-schema-btn .dashicons {
    font-size: 16px;
}

/* ========================================
   TEMPLATE CATEGORIES
   ======================================== */

.scmg-template-category {
    margin-top: 40px;
}

.scmg-template-category:first-child {
    margin-top: 20px;
}

.scmg-template-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scmg-template-category h3 span {
    font-size: 14px;
    font-weight: normal;
    color: #646970;
    margin-left: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop - Full Width */
@media screen and (min-width: 783px) {
    .scmg-settings-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* All tab containers full width on desktop */
    .scmg-generator-container,
    .scmg-manage-schemas-container,
    .scmg-templates-container,
    .scmg-how-to-use,
    .scmg-faq,
    .scmg-donate {
        max-width: none !important;
    }
}

/* Mobile - Responsive Layout */
@media screen and (max-width: 782px) {
    /* Full width on mobile too */
    .scmg-settings-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .scmg-enable-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .scmg-enable-label {
        display: block;
        min-width: auto;
        margin-bottom: 10px;
    }

    .scmg-meta-box-type-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .scmg-meta-box-type-radio-group {
        width: 100%;
        flex-direction: column;
    }

    .scmg-meta-box-type-label {
        width: 100%;
        justify-content: center;
    }

    .scmg-items-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .scmg-select-all-container {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .scmg-select-all-btn,
    .scmg-deselect-all-btn {
        flex: 1;
    }

    .scmg-placeholder-list {
        grid-template-columns: 1fr;
    }

    .scmg-templates-grid {
        grid-template-columns: 1fr;
    }

    .scmg-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    #scmg-schema-modal-code {
        font-size: 12px;
        max-height: 400px;
    }

    .scmg-modal-close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }

    #scmg-schema-modal-title {
        font-size: 18px;
    }

    .scmg-template-actions {
        flex-direction: column;
    }

    .scmg-donate-content {
        grid-template-columns: 1fr;
    }

    .scmg-donate-hero {
        padding: 40px 20px;
    }

    .scmg-donate-hero h2 {
        font-size: 28px;
    }

    .scmg-donate-icon {
        font-size: 60px;
    }

    .scmg-donate-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    .scmg-donate-button-icon {
        font-size: 24px;
    }

    .scmg-donate-button-text strong {
        font-size: 18px;
    }

    .submit .button-primary {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   INLINE CSS MOVED TO EXTERNAL FILE
   WordPress.org Compliance - Static Styles
   ======================================== */

/* Notice Styles */
.scmg-notice-warning {
    margin: 20px 0;
    padding: 15px;
}

/* Generator Form Container */
.scmg-generator-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Form Groups */
.scmg-form-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dcdcde;
}

.scmg-form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form Labels */
.scmg-form-label {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 15px;
    color: #1d2327;
}

/* Step Badge */
.scmg-step-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 600;
    margin-right: 10px;
    vertical-align: middle;
}

/* Required Asterisk */
.scmg-required {
    color: #d63638;
}

/* Section Containers */
.scmg-section-container {
    margin-bottom: 15px;
}

/* Section Descriptions */
.scmg-section-description {
    font-weight: 500;
    margin-bottom: 10px;
    color: #646970;
    font-size: 13px;
}

/* Post Type Selector */
.scmg-post-type-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Post Type Label */
.scmg-post-type-label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.scmg-post-type-label:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.scmg-post-type-label input[type="radio"] {
    margin: 0 10px 0 0;
}

.scmg-post-type-label span {
    font-weight: 500;
    font-size: 14px;
}

/* Info Box */
.scmg-info-box {
    margin-top: 10px;
    padding: 12px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.scmg-info-box p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.scmg-info-box .dashicons {
    vertical-align: middle;
    color: #2271b1;
    margin-right: 5px;
}

/* Loading Spinner */
.scmg-loading-spinner {
    text-align: center;
    padding: 30px;
}

.scmg-loading-spinner .dashicons {
    font-size: 32px;
    color: #2271b1;
}

/* Error Messages */
.scmg-error-message {
    color: #d63638;
    padding: 20px;
    text-align: center;
}

/* Success Messages */
.scmg-success-message {
    color: #00a32a;
}

/* Description Text */
.scmg-description {
    padding: 20px;
    background: #f0f0f1;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

/* Hidden Containers */
.scmg-hidden {
    display: none;
}

/* Form Group Hidden */
.scmg-form-group-hidden {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f1;
    display: none;
}

/* Search Input */
.scmg-search-input {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

/* Select Dropdown */
.scmg-select-dropdown {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

/* Description with margin */
.scmg-description-mt {
    margin-top: 8px;
}

.scmg-description-mt-12 {
    margin-top: 12px;
}

/* Fields Container */
.scmg-fields-container {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

/* Form Actions */
.scmg-form-actions {
    padding-top: 20px;
    border-top: 2px solid #dcdcde;
}

.scmg-form-actions-buttons {
    margin-bottom: 15px;
}

/* Primary Button Large */
.scmg-btn-primary-large {
    padding: 12px 35px;
    font-size: 15px;
    height: auto;
}

/* Secondary Button Large */
.scmg-btn-secondary-large {
    margin-left: 10px;
    padding: 12px 35px;
    font-size: 15px;
    height: auto;
}

/* Dashicons in buttons */
.scmg-btn-icon {
    vertical-align: middle;
    margin-top: 3px;
}

/* Generator Message */
.scmg-generator-message {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
}

/* Data Container Hidden */
.scmg-data-hidden {
    display: none;
}

/* ========================================
   MANAGE SCHEMAS TAB STYLES
   ======================================== */

/* Description with margin bottom */
.scmg-description-mb-20 {
    margin-bottom: 20px;
}

/* Notice with padding */
.scmg-notice-padding {
    padding: 20px;
    margin: 20px 0;
}

/* Notice Info with border */
.scmg-notice-info-border {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #2271b1;
}

.scmg-notice-info-border p {
    margin: 0;
}

/* Dashicons in notices */
.scmg-dashicon-info {
    color: #2271b1;
    vertical-align: middle;
}

/* Schemas Stats */
.scmg-schemas-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 14px;
}

.scmg-filtered-count {
    margin-left: 15px;
    display: none;
}

/* Table Headers Sortable */
.scmg-sortable {
    cursor: pointer;
}

/* Loading Cell */
.scmg-loading-cell {
    text-align: center;
    padding: 40px;
}

.scmg-loading-spinner-large {
    font-size: 32px;
    color: #2271b1;
}

.scmg-loading-text {
    color: #646970;
    font-size: 14px;
}

/* Dashicons Font Size */
.scmg-dashicon-18 {
    font-size: 18px;
}

.scmg-dashicon-14 {
    font-size: 14px;
    vertical-align: middle;
}

/* Modal Styles */
.scmg-modal-hidden {
    display: none;
}

.scmg-modal-code {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 500px;
    font-size: 13px;
    line-height: 1.6;
}

.scmg-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.scmg-modal-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scmg-modal-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    vertical-align: middle;
    margin-top: 0;
}

/* ========================================
   HOW TO USE TAB STYLES
   ======================================== */

/* Steps Container */
.scmg-steps-container {
    margin-top: 30px;
}

/* Step Box */
.scmg-step-box {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.scmg-step-box h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scmg-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
}

.scmg-step-content {
    margin-left: 48px;
}

.scmg-step-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.scmg-step-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.scmg-step-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.scmg-step-content code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* Screenshot */
.scmg-screenshot {
    margin: 20px 0;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
}

.scmg-screenshot img {
    max-width: 100%;
    height: auto;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

/* Tips Box */
.scmg-tips-box {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.scmg-tips-box h4 {
    margin-top: 0;
    color: #2271b1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Warning Box */
.scmg-warning-box {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.scmg-warning-box h4 {
    margin-top: 0;
    color: #dba617;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   DONATE TAB STYLES
   ======================================== */

/* Donate Container */
.scmg-donate-container {
    max-width: 800px;
}

.scmg-donate-box {
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.scmg-donate-box h3 {
    color: #2271b1;
    font-size: 24px;
    margin-top: 0;
}

.scmg-donate-icon {
    font-size: 48px;
    color: #2271b1;
    margin-bottom: 20px;
}

.scmg-donate-text {
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
    color: #50575e;
}

.scmg-donate-button {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    margin: 20px 0;
    transition: background 0.3s ease;
}

.scmg-donate-button:hover {
    background: #135e96;
    color: #fff;
}

.scmg-donate-methods {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #dcdcde;
}

.scmg-donate-methods h4 {
    color: #1d2327;
    margin-bottom: 15px;
}

.scmg-donate-methods ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scmg-donate-methods li {
    margin: 10px 0;
    font-size: 15px;
}

.scmg-thank-you {
    margin-top: 30px;
    font-style: italic;
    color: #646970;
    font-size: 14px;
}

/* Margin Top Utilities */
.scmg-mt-20 {
    margin-top: 20px;
}

.scmg-mt-30 {
    margin-top: 30px;
}

/* Code Block */
.scmg-code-block {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
}

/* Pagination Styles */
.scmg-page-btn {
    margin-right: 5px;
}

.scmg-pagination-ellipsis {
    margin: 0 5px;
}

.scmg-dashicon-16 {
    font-size: 16px;
    vertical-align: middle;
}

/* Table Cell Styles */
.scmg-table-cell {
    padding: 12px;
    border-bottom: 1px solid #dcdcde;
}

.scmg-table-cell-id {
    padding: 12px;
    border-bottom: 1px solid #dcdcde;
    font-weight: 600;
    color: #2271b1;
}

.scmg-table-cell-title {
    font-size: 14px;
    color: #1d2327;
}

.scmg-table-cell-meta {
    color: #646970;
    font-size: 13px;
}

.scmg-schema-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.scmg-actions-wrapper {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
}

.scmg-action-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #2271b1;
    background: #f6f7f7;
    color: #2271b1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scmg-action-btn:hover {
    background: #2271b1;
    color: #fff;
    border-color: #135e96;
}

.scmg-action-btn-delete {
    min-width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #b32d2e;
    background: #f6f7f7;
    color: #b32d2e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scmg-action-btn-delete:hover {
    background: #b32d2e;
    color: #fff;
    border-color: #8a2424;
}

.scmg-action-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Ensure dashicons are visible in action buttons */
.scmg-action-btn .dashicons,
.scmg-action-btn-delete .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.scmg-hidden-textarea {
    position: absolute;
    left: -9999px;
}

.scmg-no-results-cell {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-size: 14px;
}

.scmg-no-results-icon {
    font-size: 32px;
    color: #c3c4c7;
    display: block;
    margin-bottom: 10px;
}

.scmg-table-row-hover {
    transition: background-color 0.2s;
}

/* Templates Tab Styles */
.scmg-template-category {
    margin-top: 40px;
}

.scmg-template-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.scmg-template-count {
    font-size: 14px;
    font-weight: normal;
    color: #646970;
    margin-left: 10px;
}

.scmg-template-code-hidden {
    display: none;
}

.scmg-modal-display-none {
    display: none;
}

/* Table Row Highlight */
.scmg-table-row-highlight {
    background-color: #e7f5ff;
}

/* Guide Section Highlight */
.scmg-guide-section-highlight {
    background: #e7f5ff;
    border-left: 4px solid #0969da;
}

.scmg-guide-section-blue {
    background: #f0f6fc;
    border-left: 4px solid #0969da;
    padding: 20px;
    margin: 30px 0;
}

.scmg-guide-section-blue h3 {
    margin-top: 0;
    color: #0969da;
}

.scmg-guide-section-bordered {
    background: #fff;
    border: 2px solid #2271b1;
    padding: 20px;
    margin: 30px 0;
}

.scmg-guide-section-bordered h3 {
    margin-top: 0;
    color: #2271b1;
}

.scmg-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.scmg-resource-card {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
}

.scmg-resource-card h4 {
    margin-top: 0;
}

.scmg-resource-card ul {
    margin: 0;
    padding-left: 20px;
}

.scmg-guide-section-info {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
    padding: 20px;
    margin: 30px 0;
}

.scmg-guide-section-info h3 {
    margin-top: 0;
    color: #0c5460;
}

.scmg-guide-section-info p,
.scmg-guide-section-info ul {
    font-size: 15px;
}

.scmg-guide-section-info ul {
    line-height: 1.8;
}

/* Two Column List */
.scmg-two-column-list {
    column-count: 2;
    column-gap: 20px;
}

/* Description with margin bottom */
.scmg-description-mb-15 {
    margin-bottom: 15px;
}

/* ========================================
   BULK ACTIONS
   ======================================== */

/* Bulk Actions Container */
.scmg-bulk-actions-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Bulk Action Select */
.scmg-bulk-action-select {
    min-width: 150px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    font-size: 13px;
}

/* Selected Count */
.scmg-selected-count {
    color: #2271b1;
    font-size: 13px;
}

/* Table Checkbox Column */
.wp-list-table .check-column {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 12px 8px;
    vertical-align: middle;
    text-align: center;
}

.wp-list-table .check-column input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

#scmg_schemas_table_container .check-column {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 12px 8px;
    vertical-align: middle;
    text-align: center;
}

