/* ==========================================================================
   Chennai SEO Company - WP-Style Admin Panel CSS
   ========================================================================== */

:root {
    --wp-dark: #1d2327;
    --wp-darker: #13171a;
    --wp-sidebar: #1d2327;
    --wp-sidebar-text: #f0f0f1;
    --wp-blue: #2271b1;
    --wp-blue-hover: #135e96;
    --wp-blue-light: #f0f6fc;
    --wp-accent: #3858e9;
    --wp-bg: #f0f0f1;
    --wp-card: #ffffff;
    --wp-text: #2c3338;
    --wp-text-muted: #646970;
    --wp-border: #dcdcde;
    --wp-border-focus: #2271b1;
    --wp-success: #008a20;
    --wp-success-bg: #edfaef;
    --wp-warning: #dba617;
    --wp-warning-bg: #fcf9e8;
    --wp-danger: #d63638;
    --wp-danger-bg: #fcf0f1;
    --wp-radius: 6px;
    --wp-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --wp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    background-color: var(--wp-bg);
    color: var(--wp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--wp-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--wp-blue-hover);
}

/* ==========================================================================
   WP Login Screen Styles
   ========================================================================== */
.wp-login-page {
    background: #f0f0f1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.wp-login-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.wp-login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.wp-login-logo img {
    max-width: 220px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.wp-login-badge {
    display: inline-block;
    background: #2457ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

.wp-login-card {
    background: #ffffff;
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.wp-login-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wp-dark);
    margin-bottom: 20px;
    text-align: center;
}

.wp-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
    border-left: 4px solid;
}

.wp-alert-error {
    background: var(--wp-danger-bg);
    border-color: var(--wp-danger);
    color: #8a1f21;
}

.wp-alert-success {
    background: var(--wp-success-bg);
    border-color: var(--wp-success);
    color: #1e5a27;
}

.wp-alert-info {
    background: #f0f6fc;
    border-color: #2271b1;
    color: #135e96;
}

.wp-form-group {
    margin-bottom: 20px;
}

.wp-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.wp-input,
.wp-select,
.wp-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #ffffff;
    color: #2c3338;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-input:focus,
.wp-select:focus,
.wp-textarea:focus {
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 1px var(--wp-blue);
    outline: 2px solid transparent;
}

.wp-input-password-wrap {
    position: relative;
}

.wp-input-password-wrap .wp-input {
    padding-right: 42px;
}

.wp-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #646970;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.15s ease;
}

.wp-pwd-toggle:hover {
    color: var(--wp-blue);
}

.wp-pwd-toggle svg {
    display: block;
    pointer-events: none;
}

.wp-login-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.wp-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--wp-text-muted);
    cursor: pointer;
}

.wp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wp-btn-primary {
    background: var(--wp-blue);
    color: #ffffff;
    border-color: var(--wp-blue);
}

.wp-btn-primary:hover {
    background: var(--wp-blue-hover);
    color: #ffffff;
    border-color: var(--wp-blue-hover);
}

.wp-btn-secondary {
    background: #f6f7f7;
    color: #2c3338;
    border-color: #8c8f94;
}

.wp-btn-secondary:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

.wp-btn-danger {
    background: #ffffff;
    color: var(--wp-danger);
    border-color: #e5a4a5;
}

.wp-btn-danger:hover {
    background: var(--wp-danger);
    color: #ffffff;
    border-color: var(--wp-danger);
}

.wp-btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.wp-login-links {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
}

.wp-login-links a {
    color: #646970;
}

.wp-login-links a:hover {
    color: var(--wp-blue);
}

/* ==========================================================================
   Admin Layout: Topbar, Sidebar, Main Content
   ========================================================================== */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Admin Top Bar */
.admin-topbar {
    height: 46px;
    background: var(--wp-dark);
    color: var(--wp-sidebar-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-topbar-left,
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.admin-brand-link:hover {
    color: #72aee6;
}

.admin-brand-badge {
    background: #2457ff;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-site-visit {
    color: #c3c4c7;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-site-visit:hover {
    color: #72aee6;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.admin-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2457ff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.admin-logout-link {
    color: #d63638;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(214, 54, 56, 0.1);
}

.admin-logout-link:hover {
    background: #d63638;
    color: #ffffff;
}

/* Admin Body & Sidebar */
.admin-container {
    display: flex;
    flex: 1;
}

.admin-sidebar {
    width: 220px;
    background: var(--wp-sidebar);
    color: var(--wp-sidebar-text);
    flex-shrink: 0;
    padding-top: 12px;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    margin-bottom: 2px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--wp-sidebar-text);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-menu-link:hover {
    background: #2c3338;
    color: #72aee6;
}

.admin-menu-item.active .admin-menu-link {
    background: var(--wp-blue);
    color: #ffffff;
    font-weight: 600;
}

.admin-menu-icon {
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: 0.9;
}

.admin-menu-sub {
    list-style: none;
    background: var(--wp-darker);
    padding: 4px 0;
}

.admin-menu-sub a {
    display: block;
    padding: 6px 16px 6px 46px;
    color: #c3c4c7;
    font-size: 12px;
}

.admin-menu-sub a:hover,
.admin-menu-sub .active a {
    color: #ffffff;
    font-weight: 600;
}

.admin-content {
    flex: 1;
    padding: 24px 32px 48px;
    max-width: 1380px;
    overflow-x: hidden;
}

/* ==========================================================================
   Page Headers & Action Bars
   ========================================================================== */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-page-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--wp-dark);
}

/* Metrics Cards */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    padding: 18px 20px;
    box-shadow: var(--wp-shadow);
}

.admin-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp-text-muted);
    margin-bottom: 6px;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--wp-dark);
}

/* Filter Bar */
.admin-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-status-filters {
    display: flex;
    gap: 12px;
    font-size: 13px;
    align-items: center;
}

.admin-status-filters a {
    color: #646970;
}

.admin-status-filters a.active {
    color: #000;
    font-weight: 700;
}

.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   WP Table Styles
   ========================================================================== */
.wp-table-wrap {
    background: #ffffff;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow);
    overflow: hidden;
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.wp-table th {
    background: #f6f7f7;
    color: #2c3338;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--wp-border);
}

.wp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.wp-table tr:hover td {
    background: #fbfbfb;
}

.post-thumb {
    width: 60px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    background: #e2e4e7;
    display: block;
}

.post-title-link {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    display: inline-block;
    margin-bottom: 4px;
}

.post-title-link:hover {
    color: var(--wp-blue);
}

.post-row-actions {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #8c8f94;
}

.post-row-actions a {
    color: var(--wp-blue);
}

.post-row-actions a.delete-link {
    color: var(--wp-danger);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-published {
    background: #d4edda;
    color: #155724;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.badge-category {
    background: #eef3ff;
    color: #2457ff;
}

.tag-pill {
    display: inline-block;
    background: #f0f0f1;
    color: #444;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
}

/* ==========================================================================
   Post Editor Layout (Gutenberg / Classic Side-by-Side)
   ========================================================================== */
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

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

.editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-card {
    background: #ffffff;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    padding: 20px;
    box-shadow: var(--wp-shadow);
}

.editor-card-header {
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--wp-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Title Input */
.title-input-wrap {
    margin-bottom: 12px;
}

.title-input {
    width: 100%;
    font-size: 24px;
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid var(--wp-border);
    border-radius: 4px;
    color: #1d2327;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.title-input:focus {
    outline: none;
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 1px var(--wp-blue);
}

/* Permalink Preview */
.permalink-preview {
    font-size: 12px;
    color: #646970;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f6f7f7;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
}

.permalink-preview strong {
    color: #2c3338;
}

.permalink-slug {
    color: var(--wp-blue);
    font-weight: 600;
}

/* Quill Editor Container */
.ql-toolbar.ql-snow {
    border-color: var(--wp-border) !important;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #fcfcfc;
}

.ql-container.ql-snow {
    border-color: var(--wp-border) !important;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    min-height: 380px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.7;
    background: #ffffff;
}

/* Featured Image Uploader */
.image-upload-dropzone {
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background: #f9f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.image-upload-dropzone:hover,
.image-upload-dropzone.dragover {
    border-color: var(--wp-blue);
    background: #f0f6fc;
}

.image-preview-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #dcdcde;
    max-height: 240px;
    background: #000;
}

.image-preview-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.image-remove-btn:hover {
    background: var(--wp-danger);
}

/* Google SERP Preview */
.serp-preview-box {
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.serp-preview-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c8f94;
    margin-bottom: 8px;
}

.serp-url {
    font-size: 12px;
    color: #202124;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.serp-url-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2457ff;
    display: inline-block;
}

.serp-title {
    font-size: 18px;
    color: #1a0dab;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 4px;
    cursor: pointer;
}

.serp-snippet {
    font-size: 13px;
    color: #4d5156;
    line-height: 1.5;
}

/* Character counters */
.char-counter {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #646970;
    margin-top: 4px;
}

.char-counter.limit-exceeded {
    color: var(--wp-danger);
    font-weight: 600;
}

/* Interactive Keywords Badges Input */
.keywords-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 6px 10px;
    background: #ffffff;
    min-height: 44px;
}

.keywords-input-wrapper:focus-within {
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 1px var(--wp-blue);
}

.keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef3ff;
    color: #2457ff;
    border: 1px solid #c7d8ff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 14px;
}

.keyword-badge-remove {
    background: none;
    border: none;
    color: #2457ff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
}

.keyword-badge-remove:hover {
    opacity: 1;
    color: var(--wp-danger);
}

.keywords-real-input {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    font-size: 13px;
    padding: 4px 0;
}

/* Category Management in Post Editor */
.category-checklist {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fafafa;
    margin-bottom: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f1;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    flex: 1;
}

.category-del-btn {
    background: none;
    border: none;
    color: #8c8f94;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.category-del-btn:hover {
    background: var(--wp-danger-bg);
    color: var(--wp-danger);
}

.add-category-box {
    padding-top: 10px;
    border-top: 1px solid #e2e4e7;
}

.add-category-trigger {
    color: var(--wp-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.add-category-form {
    display: none;
    margin-top: 10px;
    gap: 8px;
    flex-direction: column;
}

.add-category-form.open {
    display: flex;
}

/* ==========================================================================
   FAQ Accordion Builder in Post Editor
   ========================================================================== */
.faq-builder-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.faq-builder-item {
    background: #fafafa;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-builder-item:hover {
    border-color: #c3c4c7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.faq-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebebeb;
}

.faq-builder-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--wp-blue);
    background: #eef3ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.faq-builder-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-builder-remove {
    background: none;
    border: none;
    color: var(--wp-danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
}

.faq-builder-remove:hover {
    background: var(--wp-danger-bg);
}

.faq-builder-empty {
    text-align: center;
    padding: 28px;
    border: 2px dashed #dcdcde;
    border-radius: 6px;
    color: #646970;
    font-size: 13px;
    background: #fcfcfc;
}

/* ==========================================================================
   Summernote WYSIWYG Editor Styles
   ========================================================================== */
.note-editor.note-frame {
    border: 1px solid var(--wp-border) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.note-editor.note-frame:focus-within {
    border-color: var(--wp-blue) !important;
    box-shadow: 0 0 0 1px var(--wp-blue) !important;
}

.note-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--wp-border) !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
    padding: 8px 10px !important;
}

.note-btn {
    background: #ffffff !important;
    border: 1px solid #dcdcde !important;
    color: #2c3338 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
}

.note-btn:hover,
.note-btn.active {
    background: #eef3ff !important;
    color: #2457ff !important;
    border-color: #2457ff !important;
}

.note-editable {
    min-height: 420px !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #2c3338 !important;
    background: #ffffff !important;
    padding: 22px 24px !important;
}

.note-editable strong,
.note-editable b {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.note-editable a {
    color: #2457ff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.note-editable p {
    margin-bottom: 1em !important;
}

.note-editable h1,
.note-editable h2,
.note-editable h3,
.note-editable h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-top: 1.2em !important;
    margin-bottom: 0.5em !important;
}

.note-editable ul,
.note-editable ol {
    padding-left: 24px !important;
    margin-bottom: 1em !important;
}

.note-editable blockquote {
    border-left: 4px solid #2457ff !important;
    margin: 1.5em 0 !important;
    padding: 12px 18px !important;
    background: #f8fafc !important;
    color: #4b5563 !important;
    font-style: italic !important;
}

/* ==========================================================================
   Enhanced FAQ Done State & Interactive Card Styles
   ========================================================================== */
.faq-builder-item.is-done {
    background: #ffffff;
    border-color: #c3e6cb;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.08);
}

.faq-builder-item.is-done .faq-edit-fields {
    display: none;
}

.faq-builder-item:not(.is-done) .faq-done-summary {
    display: none;
}

.faq-done-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.faq-done-info {
    flex: 1;
}

.faq-done-q {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.faq-done-a {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.faq-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e2f0d9;
    color: #2b7a38;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.faq-btn-done {
    background: #008a20;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.faq-btn-done:hover {
    background: #006b19;
}

.faq-btn-edit {
    background: #f0f0f1;
    border: 1px solid #8c8f94;
    color: #2c3338;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.faq-btn-edit:hover {
    background: #e2e4e7;
    color: var(--wp-blue);
}

.faq-add-next-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px dashed #b5c7e0;
    border-radius: 6px;
    background: #f4f8fd;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--wp-blue);
    margin-top: 8px;
    transition: all 0.2s ease;
}

.faq-add-next-banner:hover {
    background: #eef5fc;
    border-color: var(--wp-blue);
}

/* ==========================================================================
   Responsive Admin Layout
   ========================================================================== */

/* ---- Hamburger button (hidden on desktop) ---- */
.admin-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #ffffff;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.admin-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ---- Sidebar overlay (mobile) ---- */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1099;
}

.admin-sidebar-overlay.active {
    display: block;
}

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-content {
        padding: 20px 24px 40px;
    }
    /* Shrink topbar links */
    .admin-site-visit {
        display: none;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {

    /* Show hamburger, hide normal topbar extras */
    .admin-hamburger {
        display: flex;
    }

    /* Sidebar becomes a slide-in drawer */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        width: 240px;
        height: 100vh;
        z-index: 1100;
        padding-top: 56px;
        transition: left 0.28s ease;
        overflow-y: auto;
    }

    .admin-sidebar.open {
        left: 0;
    }

    /* Topbar: wrap gracefully */
    .admin-topbar {
        height: auto;
        min-height: 46px;
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-topbar-left {
        gap: 10px;
    }

    .admin-topbar-right {
        gap: 8px;
    }

    /* Hide site links on mobile to save space */
    .admin-site-visit {
        display: none;
    }

    /* Shrink brand text */
    .admin-brand-link span:first-child {
        font-size: 12px;
    }

    /* Shrink user display name */
    .admin-user-menu > a > span:last-child {
        display: none;
    }

    /* Main content takes full width */
    .admin-content {
        padding: 16px 14px 40px;
        max-width: 100%;
    }

    /* ---- Profile Page Responsive ---- */
    /* Full-width wrapper */
    div[style*="max-width: 680px"] {
        max-width: 100% !important;
    }

    /* Reduce card padding */
    .editor-card[style*="padding: 28px 32px"] {
        padding: 20px 16px !important;
    }

    /* Avatar row — stack on very small screens */
    div[style*="display: flex; align-items: center; gap: 16px; margin-bottom: 24px"] {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Button row — stack vertically */
    div[style*="display: flex; gap: 12px; align-items: center; margin-top: 20px"] {
        flex-direction: column;
        align-items: stretch;
    }

    div[style*="display: flex; gap: 12px; align-items: center; margin-top: 20px"] .wp-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Current password box — reduce padding */
    div[style*="background: #f6f7f7"] {
        padding: 14px 14px !important;
    }

    /* Page header — stack title and action */
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Post list table — horizontal scroll */
    .posts-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .posts-table {
        min-width: 560px;
    }

    /* Editor meta panel — full width */
    .editor-meta-panel {
        width: 100%;
        min-width: 0;
    }

    /* Editor layout — stack */
    .editor-layout {
        flex-direction: column;
    }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
    .admin-topbar {
        padding: 6px 10px;
    }

    .admin-brand-badge {
        display: none;
    }

    .admin-user-menu .admin-logout-link {
        padding: 3px 6px;
        font-size: 11px;
    }

    .admin-content {
        padding: 12px 10px 32px;
    }

    /* Stack tabs/filters */
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

