/* wfojb-admin-meta.css */

.wfojb-meta-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
    background: #fff;
    padding: 20px;
}

/* Section Styling */
.wfojb-meta-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.wfojb-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wfojb-section-title i {
    color: #4f46e5;
}

/* Grid Layout */
.wfojb-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.wfojb-col-12 {
    grid-column: span 12;
}

.wfojb-col-6 {
    grid-column: span 6;
}

.wfojb-col-4 {
    grid-column: span 4;
}

.wfojb-col-3 {
    grid-column: span 3;
}

/* Form Controls */
.wfojb-form-group {
    margin-bottom: 15px;
}

.wfojb-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 13px;
}

.wfojb-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s;
    box-sizing: border-box;
    height: 42px;
}

.wfojb-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.wfojb-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    height: 42px;
}

/* Specific Inputs */
.wfojb-input-lg {
    font-size: 16px;
    padding: 12px 15px;
    height: 48px;
}

/* Checkbox Toggle Style */
.wfojb-feature-toggle {
    display: flex;
    align-items: center;
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.wfojb-feature-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    accent-color: #4f46e5;
}

/* Application Method Card */
.wfojb-apply-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
}

.wfojb-helper-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

/* --- Visual Template Selector --- */
.wfojb-visual-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.wfojb-template-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    text-align: center;
}

.wfojb-template-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wfojb-template-card.active {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Hidden Radio Button */
.wfojb-template-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Preview Box (Fake Screenshot) */
.wfojb-template-preview {
    height: 80px;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme Vibe Colors */
.wfojb-preview-template1 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Minimalist */
.wfojb-preview-template2 {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
}

/* Cyberpunk */
.wfojb-preview-template3 {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border-bottom: 3px solid #000;
}

/* Magazine */
.wfojb-preview-template4 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

/* SaaS Blue */
.wfojb-preview-template5 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(4px);
}

/* Glass */
.wfojb-preview-template6 {
    background: #fee2e2;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
}

/* Neo Brutalism */


.wfojb-template-name {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.wfojb-template-card.active .wfojb-template-name {
    background: #eff6ff;
    color: #4f46e5;
}

/* Checkmark Badge */
.wfojb-check-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4f46e5;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wfojb-template-card.active .wfojb-check-icon {
    display: flex;
}

/* Shortcode Box Style */
.wfojb-shortcode-box {
    background: #1e293b;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wfojb-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.wfojb-copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- CORE WORDPRESS EDITOR STYLING --- */

/* 1. Modern Title Input */
#titlediv #title {
    padding: 15px 15px !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    height: auto !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    background: #fff !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

#titlediv #title:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* 2. Modern Content Editor Container */
#postdivrich {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 30px !important;
}

/* Hide standard "Add Title" label helper if visible */
#titlediv #title-prompt-text {
    display: none !important;
}

/* Style the Quicktags bar */
.wp-editor-tools {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 10px !important;
}

/* Customize Tabs (Visual/Text) */
.wp-core-ui .wp-switch-editor {
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #64748b !important;
}

.wp-core-ui .wp-switch-editor.html-active,
.wp-core-ui .wp-switch-editor.tmce-active {
    background: #4f46e5 !important;
    color: #fff !important;
    border-color: #4f46e5 !important;
}