/* NeoPlugin Shell Layout */
.neoplugin-shell { 
    display: flex; 
    flex-direction: column; 
    min-height: 600px; 
    background: #f0f0f1; 
    border: 1px solid #dcdcde; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-top: 20px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}

/* Horizontal Navbar */
.neoplugin-nav { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    background: #fff; 
    border-bottom: 1px solid #dcdcde; 
    padding: 0 20px; 
    flex-shrink: 0; 
    box-sizing: border-box;
}



.neoplugin-nav a { 
    display: inline-flex; 
    align-items: center; 
    padding: 16px 20px; 
    margin-right: 5px; 
    color: #50575e; 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.2s; 
    font-size: 14px; 
    border-bottom: 3px solid transparent; 
}

.neoplugin-nav a:hover { 
    color: #2271b1; 
    background: transparent; 
}

.neoplugin-nav a.active { 
    color: #2271b1; 
    background: transparent; 
    border-bottom: 3px solid #2271b1; 
    font-weight: 600; 
}

.neoplugin-nav a .dashicons { 
    margin-right: 8px; 
    color: inherit; 
}

/* Content Area */
.neoplugin-content { 
    flex-grow: 1; 
    padding: 32px; 
    background: #fff; 
    overflow-y: auto; 
}


.neoplugin-content h2 { 
    font-size: 20px; 
    margin-bottom: 20px; 
    margin-top: 0; 
}

/* Top Navigation for NeoLite Plugins */
.neolite-top-nav {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 0 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.neolite-top-nav a {
    padding: 12px 15px;
    text-decoration: none;
    color: #50575e;
    font-weight: 500;
    font-size: 13px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.neolite-top-nav a:hover {
    color: #2271b1;
}

.neolite-top-nav a.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

/* The Billboard: NeoGrow Upsell banner */
.neolite-billboard {
    margin-top: 40px;
    background: #1d2327; /* Native Admin Bar Background */
    border-left: 4px solid #2271b1; /* Native Blue Accent */
    border-radius: 4px;
    padding: 24px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

.neolite-billboard-content {
    flex: 1;
    margin-right: 40px;
}

.neolite-billboard-content p {
    font-size: 15px;
    color: #d1d5db; /* Lighter text for dark background */
    margin: 8px 0 0;
    max-width: 800px;
    line-height: 1.5;
}

.neolite-billboard-content h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.neolite-billboard-action {
    flex-shrink: 0;
}

.neolite-btn-pro {
    display: inline-block;
    padding: 10px 24px;
    background-color: #2271b1; /* Native WordPress Blue */
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.1s ease-in-out;
    border: 1px solid #2271b1;
    white-space: nowrap;
}

.neolite-btn-pro:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Responsive Billboard */
@media screen and (max-width: 782px) {
    .neolite-billboard {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .neolite-billboard-action {
        width: 100%;
    }

    .neolite-btn-pro {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}


/* Unified Settings Table Styles (Native WordPress Look) */
.neo-settings-container {
    margin-top: 20px;
}

.neo-unified-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.neo-unified-table th, 
.neo-unified-table td {
    padding: 20px;
    text-align: left;
    vertical-align: top;
}

.neo-unified-table th {
    width: 200px;
    font-weight: 600;
    color: #1d2327;
}

/* Zebra Striping for visible rows only */
.neo-unified-table tr:nth-child(even of :not([style*="display: none"], .neo-section-header-row)) {
    background-color: #f6f7f7;
}

/* Very light hover effect */
.neo-unified-table tr:hover:not(.neo-section-header-row) {
    background-color: #fcfcfc;
}


.neo-section-header-row {
    background: transparent !important;
}

.neo-section-header-row td {
    padding: 30px 0 10px 0;
    border-bottom: none;
}

.neo-section-header-row h3 {
    margin: 0 0 5px;
    font-size: 1.3em;
    font-weight: 600;
    color: #1d2327;
}

.neo-section-header-row .neo-section-description {
    margin: 0;
    color: #50575e;
    font-size: 14px;
}

/* Generic Ribbon System */
.neo-unified-table tr.neo-ribbon th {
    position: relative;
    overflow: hidden;
}

.neo-unified-table tr.neo-ribbon th::before {
    position: absolute;
    top: 8px;
    left: -18px;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 20px;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    pointer-events: none;
    line-height: 1.2;
    text-align: center;
}

/* Specific Ribbon Types */
.neo-unified-table tr.neo-ribbon.new th::before {
    content: "NEW";
    background: #e21010; /* WP Red */
    color: #fff;
}

.neo-unified-table tr.neo-ribbon.pro th::before {
    content: "PRO";
    background: #7c3aed; /* NeoPlugin Primary Color */
    color: #fff;
    top: 7px;
    left: -15px;
}

.neo-unified-table tr.neo-ribbon.updated th::before {
    content: "UPDATED";
    background: #149300; 
    color: #ffffff;
    top: 10px;
    left: -27px;
    padding: 3px 25px;
}

/* Pro row styling: Visually disable inputs */

.neo-unified-table tr.neo-ribbon.pro th,
.neo-unified-table tr.neo-ribbon.pro td {
    opacity: 0.9;
}

.neo-unified-table tr.neo-ribbon.pro input,
.neo-unified-table tr.neo-ribbon.pro select,
.neo-unified-table tr.neo-ribbon.pro textarea,
.neo-unified-table tr.neo-ribbon.pro button,
.neo-unified-table tr.neo-ribbon.pro .neo-toggle {
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

/* Email Preview Modal */
.neo-email-preview-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.neo-email-preview-content {
    background-color: #f0f0f1;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
    height: 90%;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.neo-email-preview-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neo-email-preview-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.neo-email-preview-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.neo-email-preview-meta p {
    margin: 0;
    font-size: 13px;
    color: #50575e;
}

.neo-email-preview-meta strong {
    color: #1d2327;
}

.neo-email-preview-close {
    cursor: pointer;
    font-size: 28px;
    color: #3c434a;
    line-height: 1;
}

.neo-email-preview-close:hover {
    color: #d63638;
}

.neo-email-preview-body {
    flex-grow: 1;
    padding: 0;
    background: #fff;
}

.neo-email-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
