/* Dashboard */
.nafcorp-dash-wrap {
    max-width: 1200px;
    padding-right: 20px;
    box-sizing: border-box;
}

.nafcorp-dash-title {
    margin: 10px 0 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    letter-spacing: -0.02em;
}

.nafcorp-dash-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.nafcorp-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.nafcorp-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.nafcorp-muted {
    color: #667085;
    line-height: 1.7;
}

.nafcorp-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 10px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.nafcorp-kv:hover {
    border-color: #d3deea;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.nafcorp-kv:last-child {
    margin-bottom: 0;
}

.nafcorp-kv strong {
    font-weight: 600;
    color: #1f2937;
}

.nafcorp-kv > div:last-child,
.nafcorp-kv > span:last-child {
    color: #0f172a;
    font-weight: 600;
}

#wpfooter {
    position: relative !important;
    margin-top: 20px;
    clear: both;
}
.nafcorp-chatlogs-subtabs { display:flex; gap:8px; align-items:center; margin: 10px 0 14px; }
        .nafcorp-chatlogs-subtabs .nafcorp-subtab-btn { border:1px solid #c3c4c7; background:#f6f7f7; color:#1d2327; padding:6px 10px; border-radius:4px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
        .nafcorp-chatlogs-subtabs .nafcorp-subtab-btn.is-active { background:#fff; border-bottom-color:#fff; box-shadow: 0 1px 0 #fff inset; }
        .nafcorp-chatlogs-subtab-panels { border:1px solid #c3c4c7; background:#fff; padding: 14px 14px 6px; border-radius: 6px; }
        .nafcorp-chatlogs-panel { display:none; }
        .nafcorp-chatlogs-panel.is-active { display:block; }
        /* keep headings tight inside the panel */
        .nafcorp-chatlogs-panel h2 { margin-top: 0; }

/* ═══════════════════════════════════════════════
   Knowledge Base — redesigned UI
═══════════════════════════════════════════════ */

/* Page grid */
.nafcorp-kb-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 14px;
}
@media (min-width: 980px) {
    .nafcorp-kb-page { grid-template-columns: 320px 1fr; align-items: start; }
}

/* Generic card */
.nafcorp-kb-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.nafcorp-kb-card-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #50575e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nafcorp-kb-card-title .dashicons { color: #2271b1; font-size: 16px; }

/* ── Drag & drop zone ── */
.nafcorp-kb-dropzone {
    position: relative;
    border: 2px dashed #b5bece;
    border-radius: 8px;
    background: #f8f9fa;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 12px;
}
.nafcorp-kb-dropzone.is-over {
    border-color: #2271b1;
    background: #f0f5fd;
}
.nafcorp-kb-dropzone.has-file {
    border-color: #1a7f37;
    background: #f0faf3;
    cursor: default;
}
.nafcorp-kb-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.nafcorp-kb-drop-inner {
    text-align: center;
    pointer-events: none;
    padding: 10px;
    z-index: 1;
}
.nafcorp-kb-drop-icon { font-size: 32px; display: block; margin-bottom: 4px; }
.nafcorp-kb-drop-primary { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #1d2327; }
.nafcorp-kb-drop-sub { margin: 0 0 6px; font-size: 12px; color: #50575e; }
.nafcorp-kb-browse-link { color: #2271b1; text-decoration: underline; cursor: pointer; pointer-events: auto; }
.nafcorp-kb-drop-types { margin: 0; font-size: 11px; color: #8c8f94; letter-spacing: .02em; }

/* File preview inside drop zone */
.nafcorp-kb-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    width: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 3;
    position: relative;
}
.nafcorp-kb-preview-icon { font-size: 28px; flex-shrink: 0; }
.nafcorp-kb-preview-meta { flex: 1; min-width: 0; }
.nafcorp-kb-preview-name { display: block; font-size: 13px; font-weight: 600; color: #1d2327; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nafcorp-kb-preview-size { display: block; font-size: 11px; color: #50575e; margin-top: 2px; }
.nafcorp-kb-clear-btn {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #8c8f94;
    line-height: 1;
    padding: 4px;
    flex-shrink: 0;
    transition: color .15s;
    z-index: 4;
    position: relative;
}
.nafcorp-kb-clear-btn:hover { color: #b32d2e; }

/* Progress bar */
.nafcorp-kb-progress-wrap { margin-bottom: 12px; }
.nafcorp-kb-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.nafcorp-kb-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2271b1, #33c0ff);
    border-radius: 3px;
    transition: width .3s ease;
    animation: nafcorp-kb-shimmer 1.5s infinite;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, #2271b1 0%, #33c0ff 50%, #2271b1 100%);
}
@keyframes nafcorp-kb-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.nafcorp-kb-progress-label { font-size: 12px; color: #50575e; }

/* Upload button */
.nafcorp-kb-upload-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    margin-bottom: 10px;
}
.nafcorp-kb-upload-submit:hover:not(:disabled) { background: #135e96; }
.nafcorp-kb-upload-submit:disabled { opacity: .5; cursor: not-allowed; }
.nafcorp-kb-upload-submit .dashicons { font-size: 16px; }
.nafcorp-kb-hint { font-size: 11px; color: #8c8f94; margin: 0; line-height: 1.5; }

/* Toggle rows */
.nafcorp-kb-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f1;
    cursor: pointer;
}
.nafcorp-kb-toggle-row:last-of-type { border-bottom: none; }
.nafcorp-kb-toggle-label { display: flex; flex-direction: column; gap: 2px; }
.nafcorp-kb-toggle-label strong { font-size: 13px; color: #1d2327; }
.nafcorp-kb-toggle-desc { font-size: 11px; color: #8c8f94; }
.nafcorp-kb-toggle-chk { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: #2271b1; }

/* ── Stats bar ── */
.nafcorp-kb-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    flex-wrap: wrap;
    gap: 14px;
}
.nafcorp-kb-stat { display: flex; flex-direction: column; align-items: center; flex: 1 1 60px; }
.nafcorp-kb-stat-value { font-size: 18px; font-weight: 700; color: #2271b1; line-height: 1.1; }
.nafcorp-kb-stat-label { font-size: 11px; color: #8c8f94; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.nafcorp-kb-stat-vs { font-size: 11px; color: #8c8f94; margin-left: auto; }
.nafcorp-kb-stat-vs code { font-size: 10px; }

/* ── Files card toolbar ── */
.nafcorp-kb-files-card { padding: 0; overflow: hidden; }
.nafcorp-kb-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f1;
    flex-wrap: wrap;
}
.nafcorp-kb-card-toolbar .nafcorp-kb-card-title { margin: 0; }
.nafcorp-kb-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.nafcorp-kb-search {
    height: 30px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    color: #1d2327;
    width: 160px;
}
.nafcorp-kb-search:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.nafcorp-kb-btn-refresh {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    color: #1d2327;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.nafcorp-kb-btn-refresh:hover { background: #f0f0f1; border-color: #8c8f94; }
.nafcorp-kb-btn-refresh:disabled { opacity:.5; cursor:not-allowed; }
.nafcorp-kb-spin-icon { font-size:14px; line-height:1; }
.nafcorp-kb-btn-refresh.is-spinning .nafcorp-kb-spin-icon { animation: nafcorp-kb-spin 1s linear infinite; }
@keyframes nafcorp-kb-spin { to { transform:rotate(360deg); } }

/* ── File row list ── */
.nafcorp-kb-file-list { padding: 0 0 0; }
.nafcorp-kb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: #50575e;
    font-size: 13px;
}
.nafcorp-kb-spin-lg { font-size: 20px; animation: nafcorp-kb-spin 1s linear infinite; }
.nafcorp-kb-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8c8f94;
}
.nafcorp-kb-empty-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.nafcorp-kb-empty p { margin: 4px 0; font-size: 13px; color: #50575e; }
.nafcorp-kb-empty-sub { font-size: 12px; color: #8c8f94 !important; }

/* File row */
.nafcorp-kb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid #f6f6f7;
    transition: background .12s;
}
.nafcorp-kb-row:last-child { border-bottom: none; }
.nafcorp-kb-row:hover { background: #f8f9fa; }
.nafcorp-kb-row-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.nafcorp-kb-row-info { flex: 1; min-width: 0; }
.nafcorp-kb-row-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.nafcorp-kb-row-meta {
    font-size: 11px;
    color: #8c8f94;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nafcorp-kb-row-meta span::before { content: '·'; margin-right: 8px; color: #c3c4c7; }
.nafcorp-kb-row-meta span:first-child::before { display: none; }
.nafcorp-kb-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    flex-shrink: 0;
}
.nafcorp-kb-badge-rag        { background: #e8f5e9; color: #1a7f37; border: 1px solid #b8dfbf; }
.nafcorp-kb-badge-file       { background: #f0f5fd; color: #2271b1; border: 1px solid #c4d9f8; }
.nafcorp-kb-badge-processing { background: #fff8e1; color: #8a6d00; border: 1px solid #ffe082; }
.nafcorp-kb-badge-failed     { background: #fce8e8; color: #b32d2e; border: 1px solid #f5c2c2; }
.nafcorp-kb-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.nafcorp-kb-row-attach {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f5fd;
    border: 1px solid #c4d9f8;
    border-radius: 4px;
    color: #2271b1;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.nafcorp-kb-row-attach:hover { background: #dbeafe; border-color: #2271b1; }
.nafcorp-kb-row-attach:disabled { opacity: .4; cursor: not-allowed; }

.nafcorp-kb-row-detach {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    color: #8a6d00;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.nafcorp-kb-row-detach:hover { background: #fff3cd; border-color: #d4a800; color: #6d5800; }
.nafcorp-kb-row-detach:disabled { opacity: .4; cursor: not-allowed; }

.nafcorp-kb-row.is-in-vs {
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
}

.nafcorp-kb-show-all-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #50575e;
    cursor: pointer;
    margin-right: 10px;
    white-space: nowrap;
}
.nafcorp-kb-show-all-chk { margin: 0; }

/* ── Vector Store selector ── */
.nafcorp-kb-vs-card { padding-bottom: 14px; }
.nafcorp-kb-vs-selector-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.nafcorp-kb-vs-select {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    padding: 0 8px;
    color: #1d2327;
    background: #fff;
    cursor: pointer;
}
.nafcorp-kb-vs-select:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; }
.nafcorp-kb-vs-select:disabled { background: #f6f7f7; color: #8c8f94; cursor: not-allowed; }
.nafcorp-kb-vs-refresh {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2271b1;
    transition: background .15s;
}
.nafcorp-kb-vs-refresh:hover { background: #e2e4e7; }
.nafcorp-kb-vs-refresh.is-spinning .nafcorp-kb-spin-icon { animation: nafcorp-kb-spin 1s linear infinite; }
.nafcorp-kb-vs-info {
    margin-top: 8px;
    font-size: 11px;
    color: #646970;
    line-height: 1.5;
    word-break: break-all;
}
.nafcorp-kb-vs-info code { font-size: 10px; background: #f0f0f1; padding: 1px 4px; border-radius: 3px; }
.nafcorp-kb-vs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.nafcorp-kb-btn-use-vs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.nafcorp-kb-btn-use-vs:hover:not(:disabled) { background: #135e96; }
.nafcorp-kb-btn-use-vs:disabled { opacity: .45; cursor: not-allowed; }
.nafcorp-kb-btn-new-vs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.nafcorp-kb-btn-new-vs:hover { background: #e2e4e7; border-color: #8c8f94; }
.nafcorp-kb-vs-create-form {
    margin-top: 10px;
    border-top: 1px solid #f0f0f1;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nafcorp-kb-vs-new-name {
    width: 100%;
    height: 32px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 13px;
    padding: 0 8px;
    box-sizing: border-box;
}
.nafcorp-kb-vs-new-name:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; }
.nafcorp-kb-vs-create-btns { display: flex; align-items: center; gap: 6px; }
.nafcorp-kb-btn-cancel-vs {
    background: none;
    border: none;
    color: #646970;
    font-size: 12px;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: underline;
}
.nafcorp-kb-row-del {
    flex-shrink: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #8c8f94;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    line-height: 1;
    transition: background .15s, border-color .15s, color .15s;
}
.nafcorp-kb-row-del:hover { background: #fce8e8; border-color: #e74c3c; color: #b32d2e; }
.nafcorp-kb-row-del:disabled { opacity:.4; cursor:not-allowed; }

/* Footer */
.nafcorp-kb-file-footer {
    padding: 10px 18px;
    font-size: 11px;
    color: #8c8f94;
    border-top: 1px solid #f0f0f1;
    line-height: 1.5;
}

/* ── Toast ── */
.nafcorp-kb-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.nafcorp-kb-toast-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1d2327;
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    pointer-events: auto;
    max-width: 340px;
    animation: nafcorp-kb-toast-in .25s ease;
}
.nafcorp-kb-toast-item.is-error   { background: #b32d2e; }
.nafcorp-kb-toast-item.is-success { background: #1a7f37; }
.nafcorp-kb-toast-item.is-info    { background: #2271b1; }
.nafcorp-kb-toast-item.is-fade { animation: nafcorp-kb-toast-out .35s ease forwards; }
@keyframes nafcorp-kb-toast-in  { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes nafcorp-kb-toast-out { to{opacity:0;transform:translateY(8px)} }

/* =========================================
   SETTINGS PAGE ONLY (page=nafcorp-ai-intake-settings)
   Left Vertical Tabs like Integrations
   ========================================= */

/* hide top WP tabs ONLY on settings page */
body.toplevel_page_nafcorp-ai-intake-settings .nav-tab-wrapper{
  display:none !important;
}

/* two-column layout ONLY on settings page */
body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-settings-layout{
  display:flex;
  gap:18px;
  align-items:stretch;
  margin-top:14px;
}

/* left sidebar */
body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-settings-sidebar{
  width:220px;
  flex-shrink:0;
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:10px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* sidebar buttons */
body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-side-tab{
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:#f6f7f7;
  color:#1d2327;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:10px;
}

body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-side-tab:hover{
  background:#fff;
  border-color:#dcdcde;
}

/* active tab indicator (same feel as integrations) */
body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-side-tab.nav-tab-active{
  background:#fff;
  border-color:#dcdcde;
  box-shadow: inset 3px 0 0 #2271b1;
}

/* right content card */
body.toplevel_page_nafcorp-ai-intake-settings .nafcorp-settings-content{
  flex:1;
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:10px;
  padding:16px;
}

/* INTEGRATIONS TAB STYLES */
.nafcorp-integrations-wrapper { display: flex; gap: 30px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 20px; min-height: 500px; }
.nafcorp-int-sidebar { width: 220px; flex-shrink: 0; border-right: 1px solid #eee; padding-right: 20px; display: flex; flex-direction: column; gap: 8px; }
.nafcorp-int-nav-btn { text-align: left; padding: 12px 15px; border: none; background: transparent; cursor: pointer; border-radius: 6px; font-size: 14px; font-weight: 500; color: #3c434a; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.nafcorp-int-nav-btn:hover { background: #f0f0f1; color: #2271b1; }
.nafcorp-int-nav-btn.active { background: #e5e5e5; color: #000; font-weight: 600; box-shadow: inset 3px 0 0 #2271b1; }
.nafcorp-int-panels { flex: 1; padding-left: 10px; }
.nafcorp-int-panel { display: none; animation: fadeIn 0.3s ease; }
.nafcorp-int-panel.active { display: block; }
.nafcorp-wa-section { background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.nafcorp-wa-section h4 { margin-top: 0; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }

/* Existing Styles (Keep these) */
.nafcorp-settings-wrap { max-width: 900px; padding-bottom: 50px; }
.nafcorp-section-title { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #1DFF85; padding-bottom: 10px; margin-top: 30px; }
.usage-unlimited { font-size: 16px; color: #1DFF85; font-weight: 500; }
.usage-count { font-size: 14px; color: rgba(255, 255, 255, 0.7); display: block; margin-bottom: 8px; }
.usage-bar { width: 200px; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.usage-fill { height: 100%; background: linear-gradient(90deg, #1DFF85, #00c853); }
.nafcorp-key-wrapper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nafcorp-key-input { font-family: monospace; }
.nafcorp-error { color: #d63638; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.nafcorp-registered-badge { color: #00a32a; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.nafcorp-divider { margin: 30px 0; border-top: 1px solid #ddd; }
.nav-tab-wrapper { margin-bottom: 20px; }
.nav-tab { cursor: pointer; }
.nav-tab-active { background: #f0f0f1; border-bottom: 1px solid #f0f0f1; }
input[type="range"] { width: 200px; vertical-align: middle; }
.nafcorp-switch { position: relative; display: inline-block; width: 46px; height: 24px; vertical-align: middle; }
.nafcorp-switch input { opacity: 0; width: 0; height: 0; }
.nafcorp-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #c3c4c7; transition: .2s; border-radius: 999px; }
.nafcorp-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; transition: .2s; border-radius: 999px; }
.nafcorp-switch input:checked + .nafcorp-slider { background: #1DFF85; }
.nafcorp-switch input:checked + .nafcorp-slider:before { transform: translateX(22px); }
.nafcorp-wa-disabled { opacity: 0.85; }
.nafcorp-wa-disabled input:disabled, .nafcorp-wa-disabled select:disabled { opacity: 0.6; }
.range-val { font-weight: bold; margin-left: 10px; color: #1DFF85; }
.nafcorp-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nafcorp-toggle input[type="checkbox"] { display: none; }
.toggle-slider { width: 50px; height: 26px; background: #ccc; border-radius: 13px; position: relative; transition: background 0.3s; }
.toggle-slider::after { content: ''; position: absolute; width: 22px; height: 22px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.nafcorp-toggle input:checked + .toggle-slider { background: #1DFF85; }
.nafcorp-toggle input:checked + .toggle-slider::after { transform: translateX(24px); }
.toggle-label { font-weight: 500; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.nafcorp-tab-content { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }