/* ==========================================================================
   Quantum Technology Authentic Design System (Filament 5 Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&family=Tajawal:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --q-coral: #EF5350;
    --q-coral-hover: #E53935;
    --q-navy-950: #08090D;
    --q-navy-900: #12141F;
    --q-navy-850: #1B1E2E;
    --q-navy-800: #282C42;
    --q-muted: #8E95B4;
    --font-heading: 'El Messiri', sans-serif;
    --font-body: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-latin: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Global Font & Direction Rules */
html, body, .fi-body, .fi-sidebar, .fi-topbar, .fi-main {
    font-family: var(--font-body) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .fi-header-heading, .fi-modal-heading, .fi-section-header-heading {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}

/* RTL Layout Alignment */
html[dir="rtl"] {
    text-align: right;
}

/* Dark Mode Surfaces (Quantum Navy 950 / 900 / 850) */
.dark .fi-body,
.dark .fi-main {
    background-color: var(--q-navy-950) !important;
    color: #f1f5f9 !important;
}

.dark .fi-sidebar {
    background-color: var(--q-navy-900) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .fi-topbar {
    background-color: rgba(18, 20, 31, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.dark .fi-card,
.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-dropdown-panel,
.dark .fi-modal-window {
    background-color: var(--q-navy-900) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 0.85rem !important;
}

/* Navigation Items & Active Highlights */
.fi-sidebar-item-active .fi-sidebar-item-btn {
    background-color: rgba(239, 83, 80, 0.12) !important;
    color: var(--q-coral) !important;
    font-weight: 700 !important;
    border-radius: 0.6rem !important;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: var(--q-coral) !important;
}

.fi-sidebar-group-label {
    font-family: var(--font-heading) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--q-muted) !important;
}

/* Quantum Primary Button Styles */
.fi-btn-primary {
    background-color: var(--q-coral) !important;
    border-color: var(--q-coral) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 0.6rem !important;
    transition: all 0.2s ease !important;
}

.fi-btn-primary:hover {
    background-color: var(--q-coral-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 83, 80, 0.35) !important;
}

/* LTR Technical Fields */
.ltr-input,
input[name*="_en"],
textarea[name*="_en"],
input[name*="slug"],
input[name*="url"],
input[name*="email"],
input[name*="phone"],
input[type="url"],
input[type="email"],
code,
pre {
    direction: ltr !important;
    text-align: left !important;
    font-family: var(--font-latin), monospace !important;
}

/* ==========================================================================
   Widget Design System
   ========================================================================== */

/* KPI Grid */
.q-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    direction: rtl;
    text-align: right;
}

.q-card {
    background: #ffffff;
    padding: 1.15rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dark .q-card {
    background: var(--q-navy-900);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.q-card:hover {
    border-color: rgba(239, 83, 80, 0.4);
    transform: translateY(-2px);
}

.q-card-coral {
    border-color: rgba(239, 83, 80, 0.3);
}

.q-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.q-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--q-muted);
}

.q-card-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: inherit;
    line-height: 1.1;
}

.q-card-desc {
    font-size: 0.72rem;
    color: var(--q-muted);
    margin-top: 0.25rem;
}

.text-coral { color: var(--q-coral) !important; }
.text-green { color: #22c55e !important; }
.text-blue { color: #3b82f6 !important; }

.q-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-icon-box svg { width: 18px; height: 18px; }

.q-teal { background: rgba(20, 184, 166, 0.12); color: #14b8a6; }
.q-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.q-green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.q-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.q-coral { background: rgba(239, 83, 80, 0.15); color: var(--q-coral); }

/* SEO Panel */
.q-seo-panel {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    direction: rtl;
    text-align: right;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dark .q-seo-panel {
    background: var(--q-navy-900) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.q-seo-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dark .q-seo-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.q-seo-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.q-seo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EF5350, #E53935);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
}

.q-seo-icon svg { width: 22px; height: 22px; }

.q-seo-heading {
    font-family: var(--font-heading) !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

.q-seo-subheading {
    font-size: 0.75rem;
    color: var(--q-muted);
    margin: 0.2rem 0 0 0;
}

.q-seo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(239, 83, 80, 0.1);
    color: var(--q-coral);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.q-seo-btn svg { width: 14px; height: 14px; }
.q-seo-btn:hover { background: rgba(239, 83, 80, 0.2); }

.q-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.q-seo-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.dark .q-seo-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.q-seo-score-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: inherit;
}

.border-coral { border: 4px solid var(--q-coral); }
.border-green { border: 4px solid #22c55e; }
.border-blue { border: 4px solid #3b82f6; }
.bg-green-box { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.bg-green-box svg { width: 28px; height: 28px; }

.q-seo-card-label {
    font-size: 0.75rem;
    color: var(--q-muted);
    font-weight: 600;
}

.q-seo-card-status {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.q-seo-card-meta {
    font-size: 0.7rem;
    color: var(--q-muted);
}

/* Quick Actions Panel */
.q-actions-panel {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    height: 100%;
    direction: rtl;
    text-align: right;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dark .q-actions-panel {
    background: var(--q-navy-900);
    border-color: rgba(255, 255, 255, 0.08);
}

.q-actions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dark .q-actions-header { border-bottom-color: rgba(255, 255, 255, 0.06); }

.q-actions-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(239, 83, 80, 0.12);
    color: var(--q-coral);
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-actions-icon svg { width: 16px; height: 16px; }

.q-actions-heading {
    font-family: var(--font-heading) !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
    margin: 0;
}

.q-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.q-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.dark .q-action-item {
    background: rgba(255, 255, 255, 0.03);
}

.q-action-item:hover {
    border-color: rgba(239, 83, 80, 0.35);
    background: rgba(239, 83, 80, 0.05);
}

.q-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.q-action-icon svg { width: 16px; height: 16px; }

.q-action-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.q-action-desc {
    font-size: 0.68rem;
    color: var(--q-muted);
}

/* ==========================================================================
   Quantum Roles & Permissions Matrix Styles
   ========================================================================== */

.q-matrix-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    font-family: var(--font-body, system-ui, sans-serif);
}

.q-matrix-topbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dark .q-matrix-topbar {
    background: #0f1422;
    border-color: #1e2638;
    box-shadow: none;
}

.q-matrix-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.dark .q-matrix-header-row {
    border-color: #1e2638;
}

.q-matrix-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
}

.dark .q-matrix-title {
    color: #ffffff;
}

.q-matrix-subtitle {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.dark .q-matrix-subtitle {
    color: #94a3b8;
}

.q-matrix-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.q-matrix-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.dark .q-matrix-btn {
    border-color: #28334e;
    background: #151c2e;
    color: #cbd5e1;
}

.q-matrix-btn:hover {
    background: #edf2f7;
    color: #0f172a;
}

.dark .q-matrix-btn:hover {
    background: #1e293b;
    color: #ffffff;
}

.q-matrix-btn-primary {
    border-color: rgba(239, 83, 80, 0.4);
    background: rgba(239, 83, 80, 0.08);
    color: #ef5350;
}

.dark .q-matrix-btn-primary {
    border-color: rgba(239, 83, 80, 0.4);
    background: rgba(239, 83, 80, 0.12);
    color: #ff7675;
}

.q-matrix-btn-primary:hover {
    background: rgba(239, 83, 80, 0.2);
    color: #ffffff;
}

.q-matrix-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.q-matrix-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.dark .q-matrix-filter-tabs {
    background: #080c16;
    border-color: #1a2234;
}

.q-matrix-tab-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dark .q-matrix-tab-btn {
    color: #94a3b8;
}

.q-matrix-tab-btn.active {
    background: #ffffff;
    color: #ef5350;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dark .q-matrix-tab-btn.active {
    background: #182238;
    color: #ff7675;
    box-shadow: none;
}

.q-matrix-tab-badge {
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.dark .q-matrix-tab-badge {
    background: #202b42;
    color: #94a3b8;
}

.q-matrix-tab-btn.active .q-matrix-tab-badge {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

.dark .q-matrix-tab-btn.active .q-matrix-tab-badge {
    background: rgba(239, 83, 80, 0.25);
    color: #ff7675;
}

.q-matrix-search {
    position: relative;
    min-width: 240px;
}

.q-matrix-search input {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    outline: none;
}

.dark .q-matrix-search input {
    background: #080c16;
    border-color: #1e2638;
    color: #f1f5f9;
}

.q-matrix-search input:focus {
    border-color: #ef5350;
}

/* Group Section */
.q-matrix-group {
    margin-bottom: 2rem;
}

.q-matrix-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0.75rem;
}

.q-matrix-group-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .q-matrix-group-title {
    color: #f8fafc;
}

.q-matrix-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #ef5350;
}

/* Grid Layout (3 Columns Desktop, 2 Tablet, 1 Mobile) */
.q-matrix-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    align-items: start !important;
}

@media (max-width: 1100px) {
    .q-matrix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .q-matrix-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Module Card */
.q-matrix-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dark .q-matrix-card {
    background: #0d121f;
    border-color: #1e2638;
    box-shadow: none;
}

.q-matrix-card:hover {
    border-color: #cbd5e1;
}

.dark .q-matrix-card:hover {
    border-color: #2d3748;
}

/* Card Header */
.q-matrix-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #edf2f7;
}

.dark .q-matrix-card-header {
    border-color: #182236;
}

.q-matrix-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .q-matrix-card-title {
    color: #f1f5f9;
}

.q-matrix-card-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.dark .q-matrix-card-select-all {
    color: #94a3b8;
}

.q-matrix-card-select-all:hover {
    color: #ef5350;
}

.dark .q-matrix-card-select-all:hover {
    color: #ff7675;
}

/* Permissions Rows inside Card */
.q-matrix-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.q-matrix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.q-matrix-row:hover {
    background: #f8fafc;
}

.dark .q-matrix-row:hover {
    background: #141b2d;
}

.q-matrix-row.highlighted {
    background: #f1f5f9;
}

.dark .q-matrix-row.highlighted {
    background: #162035;
}

.q-matrix-label-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.q-matrix-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

.dark .q-matrix-label {
    color: #e2e8f0;
}

.q-matrix-key {
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    direction: ltr;
    text-align: right;
}

.dark .q-matrix-key {
    color: #64748b;
}

/* Custom Checkbox */
.q-matrix-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    accent-color: #ef5350;
    cursor: pointer;
    flex-shrink: 0;
}

.dark .q-matrix-checkbox {
    border-color: #334155;
    background: #080c16;
}

/* Tab Mini-Matrix Table */
.q-matrix-tabs-section {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #edf2f7;
}

.dark .q-matrix-tabs-section {
    border-color: #182236;
}

.q-matrix-tabs-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0 0.4rem 0.4rem;
}

.dark .q-matrix-tabs-heading {
    color: #64748b;
}

.q-matrix-tabs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.dark .q-matrix-tabs-table {
    border-color: #1e2638;
}

.q-matrix-tab-tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    transition: background 0.15s;
}

.dark .q-matrix-tab-tr {
    background: #0a0e18;
    border-color: #141b2a;
}

.q-matrix-tab-tr:last-child {
    border-bottom: none;
}

.q-matrix-tab-tr:hover {
    background: #f1f5f9;
}

.dark .q-matrix-tab-tr:hover {
    background: #111726;
}

.q-matrix-tab-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ==========================================================================
   Quantum SEO Audit Center Styles
   ========================================================================== */

.q-seo-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    font-family: var(--font-body, system-ui, sans-serif);
}

.q-seo-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 1100px) {
    .q-seo-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .q-seo-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

.q-seo-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.dark .q-seo-kpi-card {
    background: #0f1422;
    border-color: #1e2638;
    box-shadow: none;
}

.q-seo-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.q-seo-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dark .q-seo-kpi-label {
    color: #94a3b8;
}

.q-seo-kpi-score {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-heading, sans-serif);
}

.q-seo-score-ar {
    color: #10b981;
}

.q-seo-score-en {
    color: #3b82f6;
}

.q-seo-kpi-max {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

.q-seo-kpi-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.dark .q-seo-kpi-desc {
    color: #64748b;
}

.q-seo-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.q-seo-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.q-seo-pill-good {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.dark .q-seo-pill-good {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.q-seo-pill-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.dark .q-seo-pill-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.q-seo-pill-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.dark .q-seo-pill-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.q-seo-status-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #10b981;
    margin-top: 0.25rem;
}

.dark .q-seo-status-verified {
    color: #34d399;
}

/* Table Section Card */
.q-seo-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dark .q-seo-table-card {
    background: #0f1422;
    border-color: #1e2638;
    box-shadow: none;
}

.q-seo-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.dark .q-seo-table-header {
    background: #0d121f;
    border-color: #1a2234;
}

.q-seo-table-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dark .q-seo-table-title {
    color: #f1f5f9;
}

.q-seo-table-subtitle {
    font-size: 0.72rem;
    color: #64748b;
}

.dark .q-seo-table-subtitle {
    color: #94a3b8;
}

.q-seo-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.82rem;
}

.q-seo-th {
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
}

.dark .q-seo-th {
    background: #0a0e1a;
    border-color: #1a2234;
    color: #94a3b8;
}

.q-seo-td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.dark .q-seo-td {
    border-color: #141b2a;
}

.q-seo-tr:hover .q-seo-td {
    background: #f8fafc;
}

.dark .q-seo-tr:hover .q-seo-td {
    background: #141c2e;
}

.q-seo-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 9999px;
    font-family: var(--font-heading, sans-serif);
}

.q-seo-score-badge-high {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.dark .q-seo-score-badge-high {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.q-seo-score-badge-mid {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.dark .q-seo-score-badge-mid {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.q-seo-score-badge-low {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dark .q-seo-score-badge-low {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.q-seo-type-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    border: 1px solid #e2e8f0;
}

.dark .q-seo-type-tag {
    background: #141b2a;
    border-color: #202b40;
    color: #94a3b8;
}

.q-seo-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    color: #ef5350;
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark .q-seo-action-link {
    color: #ff7675;
    background: rgba(239, 83, 80, 0.12);
    border-color: rgba(239, 83, 80, 0.3);
}

.q-seo-action-link:hover {
    background: #ef5350;
    color: #ffffff;
    border-color: #ef5350;
    transform: translateY(-1px);
}

/* ==========================================================================
   Quantum AI Article Automation Styles
   ========================================================================== */

.q-ai-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    font-family: var(--font-body, system-ui, sans-serif);
}

.q-ai-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 1100px) {
    .q-ai-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .q-ai-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

.q-ai-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.dark .q-ai-kpi-card {
    background: #0f1422;
    border-color: #1e2638;
    box-shadow: none;
}

.q-ai-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.q-ai-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dark .q-ai-kpi-label {
    color: #94a3b8;
}

.q-ai-kpi-val {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-heading, sans-serif);
}

.q-ai-kpi-max {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

.q-ai-kpi-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.dark .q-ai-kpi-desc {
    color: #64748b;
}

.q-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.q-ai-badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.dark .q-ai-badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.q-ai-badge-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dark .q-ai-badge-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.q-ai-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: q-pulse 1.8s infinite;
}

@keyframes q-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.q-ai-dot-off {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
}

.q-ai-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
}

.dark .q-ai-action-bar {
    background: #0f1422;
    border-color: #1e2638;
}

.q-ai-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.q-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    outline: none;
}

.q-ai-btn-primary {
    background: #10b981;
    color: #ffffff;
}

.q-ai-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.q-ai-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.dark .q-ai-btn-secondary {
    background: #1e2638;
    color: #cbd5e1;
    border-color: #2e384d;
}

.q-ai-btn-secondary:hover {
    background: #e2e8f0;
}

.dark .q-ai-btn-secondary:hover {
    background: #28334a;
}

.q-ai-btn-accent {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
}

.q-ai-btn-accent:hover {
    box-shadow: 0 4px 14px rgba(239, 83, 80, 0.45);
    transform: translateY(-1px);
}

.q-ai-card-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dark .q-ai-card-section {
    background: #0f1422;
    border-color: #1e2638;
    box-shadow: none;
}

.q-ai-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.dark .q-ai-card-header {
    background: #0d121f;
    border-color: #1a2234;
}

.q-ai-card-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dark .q-ai-card-title {
    color: #f1f5f9;
}

.q-ai-card-subtitle {
    font-size: 0.72rem;
    color: #64748b;
}

.dark .q-ai-card-subtitle {
    color: #94a3b8;
}

.q-ai-topic-form {
    padding: 1.25rem 1.4rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dark .q-ai-topic-form {
    background: #0a0e18;
    border-color: #141b2a;
}

.q-ai-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .q-ai-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.q-ai-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.dark .q-ai-label {
    color: #94a3b8;
}

.q-ai-input, .q-ai-select {
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1e293b;
    outline: none;
}

.dark .q-ai-input, .dark .q-ai-select {
    background: #141b2a;
    border-color: #222d42;
    color: #f1f5f9;
}

.q-ai-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.82rem;
}

.q-ai-th {
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dark .q-ai-th {
    background: #0a0e1a;
    border-color: #1a2234;
    color: #94a3b8;
}

.q-ai-td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.dark .q-ai-td {
    border-color: #141b2a;
}

.q-ai-tr:hover .q-ai-td {
    background: #f8fafc;
}

.dark .q-ai-tr:hover .q-ai-td {
    background: #141c2e;
}

.q-ai-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0.35rem;
}

.q-ai-tag-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.dark .q-ai-tag-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.q-ai-tag-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.dark .q-ai-tag-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.q-ai-tag-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.dark .q-ai-tag-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.q-ai-tag-info {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.dark .q-ai-tag-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.q-ai-tag-muted {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.dark .q-ai-tag-muted {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.q-ai-btn-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 0.4rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.dark .q-ai-btn-sm {
    background: #141b2a;
    border-color: #222d42;
    color: #cbd5e1;
}

.q-ai-btn-sm-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.dark .q-ai-btn-sm-danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.q-ai-btn-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.65rem;
    color: #94a3b8;
    padding: 0.1rem 0.2rem;
}

.q-ai-btn-icon:hover {
    color: #ef5350;
}

.q-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ef5350;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
}

.q-ai-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   QUANTUM CONTENT PLAN & SEO STRATEGY STYLES
   ========================================================================== */

.q-plan-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: inherit;
}

.q-plan-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1024px) {
    .q-plan-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .q-plan-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.q-plan-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    min-height: 105px;
}

.dark .q-plan-kpi-card {
    background: #0d121f;
    border-color: #1e2638;
}

.q-plan-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.dark .q-plan-kpi-label {
    color: #94a3b8;
}

.q-plan-kpi-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.q-plan-kpi-max {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.q-plan-kpi-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}

/* Tabs Bar */
.q-plan-tabs-bar {
    display: flex;
    gap: 0.6rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.dark .q-plan-tabs-bar {
    border-color: #1e2638;
}

.q-plan-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dark .q-plan-tab-btn {
    color: #94a3b8;
}

.q-plan-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.dark .q-plan-tab-btn:hover {
    color: #ffffff;
    background: #1e2638;
}

.q-plan-tab-btn-active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.dark .q-plan-tab-btn-active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.q-plan-tab-badge {
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.7rem;
}

/* Card Section */
.q-plan-card-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dark .q-plan-card-section {
    background: #0d121f;
    border-color: #1e2638;
}

.q-plan-card-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark .q-plan-card-header {
    border-color: #1e2638;
}

.q-plan-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
}

.q-plan-card-subtitle {
    font-size: 0.72rem;
    color: #64748b;
}

.dark .q-plan-card-subtitle {
    color: #94a3b8;
}

.q-plan-form-body {
    padding: 1.25rem 1.4rem;
}

.q-plan-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.q-plan-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 900px) {
    .q-plan-grid-3, .q-plan-grid-4 {
        grid-template-columns: 1fr;
    }
}

.q-plan-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
}

.dark .q-plan-label {
    color: #cbd5e1;
}

.q-plan-input, .q-plan-select {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    border-radius: 0.55rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.dark .q-plan-input, .dark .q-plan-select {
    background: #141b2d;
    border-color: #2a3449;
    color: #ffffff;
}

.q-plan-input:focus, .q-plan-select:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Filters Box */
.q-plan-filters-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.q-plan-search-wrap {
    flex: 1;
    min-width: 240px;
}

.q-plan-filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.q-plan-filter-select {
    width: auto;
    min-width: 130px;
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
}

/* Table */
.q-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.q-plan-th {
    padding: 0.85rem 1.1rem;
    text-align: right;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dark .q-plan-th {
    background: #111726;
    color: #94a3b8;
    border-color: #1e2638;
}

.q-plan-tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.dark .q-plan-tr {
    border-color: #161f33;
}

.q-plan-tr:hover {
    background: #f8fafc;
}

.dark .q-plan-tr:hover {
    background: #131a29;
}

.q-plan-td {
    padding: 0.85rem 1.1rem;
    vertical-align: middle;
}

/* Tags & Badges */
.q-plan-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.q-plan-tag-cluster {
    background: #e0f2fe;
    color: #0369a1;
}

.dark .q-plan-tag-cluster {
    background: rgba(3, 105, 161, 0.2);
    color: #38bdf8;
}

.q-plan-tag-pillar {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.dark .q-plan-tag-pillar {
    background: rgba(29, 78, 216, 0.2);
    color: #60a5fa;
}

.q-plan-tag-supporting {
    background: #f1f5f9;
    color: #64748b;
}

.dark .q-plan-tag-supporting {
    background: #1e2638;
    color: #94a3b8;
}

.q-plan-tag-intent {
    background: #fef3c7;
    color: #92400e;
}

.dark .q-plan-tag-intent {
    background: rgba(217, 119, 6, 0.2);
    color: #fcd34d;
}

.q-plan-tag-priority-critical {
    background: #fee2e2;
    color: #b91c1c;
}

.dark .q-plan-tag-priority-critical {
    background: rgba(185, 28, 28, 0.2);
    color: #f87171;
}

.q-plan-tag-priority-high {
    background: #ffedd5;
    color: #c2410c;
}

.dark .q-plan-tag-priority-high {
    background: rgba(194, 65, 12, 0.2);
    color: #fb923c;
}

.q-plan-tag-priority-medium {
    background: #e0e7ff;
    color: #4338ca;
}

.dark .q-plan-tag-priority-medium {
    background: rgba(67, 56, 202, 0.2);
    color: #818cf8;
}

.q-plan-tag-priority-low {
    background: #f1f5f9;
    color: #64748b;
}

.dark .q-plan-tag-priority-low {
    background: #1e2638;
    color: #94a3b8;
}

.q-plan-tag-status-planned {
    background: #e0f2fe;
    color: #0369a1;
}

.q-plan-tag-status-queued {
    background: #fef3c7;
    color: #b45309;
}

.q-plan-tag-status-published {
    background: #dcfce7;
    color: #15803d;
}

.q-plan-tag-success {
    background: #dcfce7;
    color: #15803d;
}

.q-plan-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

.q-plan-tag-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Buttons */
.q-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.55rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.q-plan-btn-primary {
    background: #0284c7;
    color: #ffffff;
}

.q-plan-btn-primary:hover {
    background: #0369a1;
}

.q-plan-btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 0.4rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dark .q-plan-btn-sm {
    background: #141b2d;
    border-color: #2a3449;
    color: #cbd5e1;
}

.q-plan-btn-sm:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.q-plan-btn-sm-queue {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.dark .q-plan-btn-sm-queue {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.q-plan-btn-sm-danger {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

.dark .q-plan-btn-sm-danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.q-plan-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
}

.q-plan-link:hover {
    text-decoration: underline;
}