/* AgencyBoost Lite v2.0  Admin CSS */
/* Brand: #FDFBF7 bg, #FAF6EC section, #B8973A gold, #1A1714 dark, #A8A09A muted */

:root {
    --ab-bg:      #FDFBF7;
    --ab-section: #FAF6EC;
    --ab-gold:    #B8973A;
    --ab-gold-mid:#D4AF5A;
    --ab-border:  #E8D99A;
    --ab-dark:    #8B6E20;
    --ab-text:    #1A1714;
    --ab-muted:   #A8A09A;
    --ab-hint:    #C8BFB8;
    --ab-off:     #F5F2EA;
    --ab-white:   #FFFFFF;
    --ab-green:   #2E7D32;
    --ab-sidebar: 220px;
}

/*  Layout  */
.ab-page-wrap {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 32px);
    margin: -8px -20px -20px -2px;
    background: var(--ab-bg);
}

.ab-sidebar-nav {
    width: var(--ab-sidebar);
    min-width: var(--ab-sidebar);
    background: var(--ab-text);
    padding: 0;
    border-right: 1px solid rgba(184,151,58,0.15);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ab-main-content {
    flex: 1;
    padding: 24px 28px;
    overflow-x: hidden;
    background: var(--ab-bg);
}

/*  Sidebar  */
.ab-sidebar-logo {
    padding: 24px 18px 20px;
    border-bottom: 1px solid rgba(184,151,58,0.15);
}

.ab-sidebar-logo-name {
    display: block;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #B8973A;
    letter-spacing: 0.02em;
}

.ab-sidebar-logo-by {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.ab-sidebar-section {
    padding: 16px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ab-sidebar-section-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0 18px 6px;
}

.ab-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.ab-sidebar-link:hover {
    color: var(--ab-gold-mid);
    background: rgba(184,151,58,0.08);
}

.ab-sidebar-link.active {
    color: var(--ab-gold);
    background: rgba(184,151,58,0.12);
    border-left-color: var(--ab-gold);
}

.ab-nav-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.ab-sidebar-version {
    margin-top: auto;
    padding: 12px 18px;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/*  Page header  */
.ab-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ab-h1 {
    font-family: Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    color: var(--ab-text) !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
}

.ab-sub {
    font-size: 13px;
    color: var(--ab-muted);
    margin: 0;
}

.ab-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ab-gold-divider {
    height: 1px;
    background: linear-gradient(to right, var(--ab-gold), transparent);
    margin-bottom: 18px;
    opacity: 0.5;
}

/*  Cards  */
.ab-card {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 14px;
}

.ab-card-title {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--ab-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ab-card-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ab-gold);
    flex-shrink: 0;
}

.ab-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/*  Metrics  */
.ab-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ab-metric-card {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
}

.ab-metric-label {
    font-size: 11px;
    color: var(--ab-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.ab-metric-value {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--ab-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.ab-metric-delta {
    font-size: 11px;
    color: var(--ab-hint);
}

/*  Buttons  */
.ab-btn-gold {
    background: var(--ab-gold);
    color: var(--ab-white) !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
    font-family: inherit;
}

.ab-btn-gold:hover {
    background: var(--ab-dark);
    color: var(--ab-white) !important;
}

.ab-btn-ghost {
    background: transparent;
    color: var(--ab-gold) !important;
    border: 1px solid var(--ab-gold);
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ab-btn-ghost:hover {
    background: var(--ab-section);
}

/*  Pills  */
.ab-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-pill-gold {
    background: var(--ab-gold);
    color: var(--ab-white);
}

.ab-pill-green {
    background: #E8F5E9;
    color: var(--ab-green);
}

/*  Form elements  */
.ab-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ab-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ab-text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.ab-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--ab-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ab-text);
    background: var(--ab-section);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ab-input:focus {
    border-color: var(--ab-gold);
    background: var(--ab-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184,151,58,0.1);
}

.ab-section-note {
    font-size: 13px;
    color: var(--ab-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--ab-section);
    border-radius: 6px;
    border-left: 3px solid var(--ab-gold);
}

/*  Links  */
.ab-link {
    color: var(--ab-gold);
    text-decoration: none;
    font-weight: 500;
}

.ab-link:hover {
    color: var(--ab-dark);
    text-decoration: underline;
}

/*  Table  */
.ab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ab-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ab-muted);
    border-bottom: 2px solid var(--ab-border);
    white-space: nowrap;
}

.ab-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--ab-off);
    vertical-align: middle;
}

.ab-table tr:last-child td { border-bottom: none; }
.ab-table tr:hover td { background: var(--ab-section); }

/*  Score badge  */
.ab-score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ab-score-high {
    background: #E8F5E9;
    color: var(--ab-green);
}

.ab-score-low {
    background: #FFF3E0;
    color: #E65100;
}

/*  Action list  */
.ab-action-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ab-action-btn {
    display: block;
    padding: 10px 14px;
    background: var(--ab-section);
    border: 1px solid var(--ab-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ab-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ab-action-btn:hover {
    background: var(--ab-white);
    border-color: var(--ab-gold);
    color: var(--ab-gold);
}

/*  SEO Meta Box  */
.agenli-mb-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.agenli-snippet {
    background: var(--ab-section);
    border: 1px solid var(--ab-border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.agenli-snippet-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ab-muted);
    margin-bottom: 10px;
}

.agenli-snippet-url {
    font-size: 12px;
    color: #006621;
    margin-bottom: 3px;
}

.agenli-snippet-title {
    font-size: 18px;
    color: #1a0dab;
    text-decoration: underline;
    margin-bottom: 4px;
    font-family: Georgia, serif;
    cursor: pointer;
    word-break: break-word;
}

.agenli-snippet-desc {
    font-size: 13px;
    color: #545454;
    line-height: 1.5;
}

.agenli-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ab-border);
    margin-bottom: 20px;
}

.agenli-tab {
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ab-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    user-select: none;
    transition: color 0.15s;
}

.agenli-tab:hover { color: var(--ab-gold); }
.agenli-tab.active { color: var(--ab-gold); border-bottom-color: var(--ab-gold); }

.agenli-panel { display: none; }
.agenli-panel.active { display: block; }

.agenli-field {
    margin-bottom: 16px;
}

.agenli-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ab-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.agenli-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--ab-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ab-text);
    background: var(--ab-section);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.agenli-input:focus {
    border-color: var(--ab-gold);
    background: var(--ab-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184,151,58,0.1);
}

.agenli-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ab-muted);
    margin-top: 5px;
}

.agenli-ok   { color: #2E7D32; font-weight: 600; }
.agenli-warn { color: #E65100; font-weight: 600; }
.agenli-err  { color: #c0392b; font-weight: 600; }
.agenli-muted{ color: var(--ab-muted); }

.agenli-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agenli-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--ab-text);
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid var(--ab-border);
    border-radius: 6px;
    background: var(--ab-section);
    transition: border-color 0.15s;
}

.agenli-radio:hover { border-color: var(--ab-gold); }

.agenli-radio input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--ab-gold);
    flex-shrink: 0;
}

.agenli-radio span {
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.agenli-radio small {
    display: block;
    font-size: 11px;
    color: var(--ab-muted);
    font-weight: 400;
}

.agenli-section-note {
    font-size: 13px;
    color: var(--ab-muted);
    padding: 10px 14px;
    background: var(--ab-section);
    border-radius: 6px;
    border-left: 3px solid var(--ab-gold);
    margin-bottom: 16px;
}

/*  Lead popup  */
#ab-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#ab-popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 440px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#ab-popup-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #A8A09A;
    line-height: 1;
    padding: 0;
}

#ab-popup-close:hover { color: #1A1714; }

#ab-popup-title {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 300;
    color: #1A1714;
    margin: 0 0 8px;
}

#ab-popup-sub {
    font-size: 13px;
    color: #A8A09A;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ab-popup-input {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 10px;
    border: 1px solid #E8D99A;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}

.ab-popup-input:focus {
    border-color: #B8973A;
    outline: none;
}

#ab-popup-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s;
    font-family: inherit;
}

#ab-popup-submit:hover { opacity: 0.9; }
#ab-popup-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ab-popup-privacy {
    text-align: center;
    font-size: 11px;
    color: #C8BFB8;
    margin: 10px 0 0;
}

#ab-popup-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}
