/**
 * GeistM Adnet — Admin Styles
 *
 * @package Geistm_AI_Discovery
 */

.geistm-admin-wrap {
    max-width: 900px;
}

.geistm-admin-wrap h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1d2327;
}

.geistm-subtitle {
    font-size: 14px;
    color: #646970;
    margin: -8px 0 16px;
}

.geistm-info-box {
    background: #f0f6fc;
    border: 1px solid #c3d9f0;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 20px 0;
    max-width: 700px;
}

.geistm-info-box h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1d2327;
}

.geistm-info-box p {
    margin: 4px 0;
    font-size: 13px;
    color: #50575e;
}

.geistm-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #dcdcde;
    color: #646970;
    font-size: 13px;
}

.geistm-footer a {
    color: #2271b1;
    text-decoration: none;
}

.geistm-footer a:hover {
    text-decoration: underline;
}

/* ── AI Data Viewer Styles ─────────────────────────────────────────── */

.geistm-viewer-intro {
    margin-bottom: 20px;
}

.geistm-viewer-intro h2 {
    font-size: 1.4em;
    margin: 0 0 8px;
}

.geistm-viewer-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 16px 0;
    max-width: 860px;
}

.geistm-viewer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.geistm-viewer-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.geistm-viewer-icon {
    margin-right: 6px;
}

.geistm-viewer-endpoint code {
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #50575e;
}

.geistm-viewer-explain {
    font-size: 13px;
    color: #646970;
    margin: 0 0 12px;
    font-style: italic;
}

.geistm-viewer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.geistm-viewer-table th {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 2px solid #dcdcde;
    color: #50575e;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geistm-viewer-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.geistm-viewer-table tbody tr:hover {
    background: #f9f9f9;
}

.geistm-viewer-label {
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
    width: 140px;
}

.geistm-viewer-summary {
    color: #646970;
    max-width: 400px;
}

.geistm-viewer-text-block {
    background: #f6f7f7;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #50575e;
    margin-bottom: 12px;
    line-height: 1.5;
}

.geistm-viewer-count {
    display: inline-block;
    background: #dcdcde;
    color: #50575e;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.geistm-viewer-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    background: #f0f0f1;
    color: #50575e;
    margin-right: 4px;
}

.geistm-tag-green {
    background: #edfaef;
    color: #00a32a;
}

.geistm-tag-red {
    background: #fcf0f1;
    color: #d63638;
}

.geistm-viewer-more {
    font-size: 12px;
    color: #646970;
    font-style: italic;
    margin: 4px 0 0 10px;
}

.geistm-viewer-hint {
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    padding: 8px 14px;
    margin: 12px 0;
    font-size: 13px;
    color: #50575e;
    border-radius: 2px;
}

.geistm-viewer-json {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.5;
    max-height: 400px;
    margin-top: 8px;
}

.geistm-viewer-raw details summary {
    cursor: pointer;
    font-size: 13px;
    color: #2271b1;
    padding: 4px 0;
}

.geistm-viewer-raw details summary:hover {
    text-decoration: underline;
}

.geistm-viewer-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #1d2327;
}

/* ── Account & Wallet Styles ──────────────────────────────────────── */

.geistm-status-connected {
    color: #00a32a;
    font-size: 13px;
    font-weight: 500;
}

.geistm-status-disconnected {
    color: #996800;
    font-size: 13px;
    font-weight: 500;
}

/* ── Help Tooltips ────────────────────────────────────────────────── */

.geistm-help-toggle {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #2271b1;
    background: #f0f6fc;
    border: 1px solid #c3d9f0;
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0;
}

.geistm-help-toggle:hover,
.geistm-help-toggle:focus {
    background: #2271b1;
    color: #fff;
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.geistm-help-tip {
    display: none;
    background: #f0f6fc;
    border: 1px solid #c3d9f0;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 8px 0 4px;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
    max-width: 500px;
}

.geistm-help-tip.geistm-help-visible {
    display: block;
}

.geistm-help-tip strong {
    color: #1d2327;
}

/* ── Quick Start Guide ────────────────────────────────────────────── */

.geistm-quickstart {
    background: linear-gradient(135deg, #f0faf0 0%, #fff 100%);
    border: 1px solid #b8e6be;
    border-left: 4px solid #00a32a;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 16px 0;
    max-width: 860px;
}

.geistm-quickstart h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.geistm-quickstart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ── Setup Flow ────────────────────────────────────────────────────── */

.geistm-setup-intro {
    font-size: 14px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 14px;
}

.geistm-setup-line {
    margin: 0 0 16px;
    color: #50575e;
}

.geistm-flash {
    max-width: 680px;
    padding: 10px 14px;
    margin: 0 0 12px;
    border-radius: 4px;
    border-left: 4px solid;
    font-size: 13px;
    line-height: 1.6;
}

.geistm-flash-green {
    border-left-color: #00a32a;
    background: #f0faf0;
}

.geistm-flash-amber {
    border-left-color: #dba617;
    background: #fff8e5;
}

.geistm-flash-red {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.geistm-dot-green {
    color: #00a32a;
}

.geistm-dot-amber {
    color: #dba617;
}

.geistm-dot-muted {
    color: #a7aaad;
}

.geistm-setup-step {
    max-width: 680px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    padding: 14px 16px;
    margin: 0 0 8px;
}

.geistm-setup-step h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #1d2327;
}

.geistm-setup-step p {
    font-size: 13px;
    line-height: 1.6;
    color: #3c434a;
    margin: 0 0 10px;
    max-width: 620px;
}

.geistm-setup-step.is-active {
    border-left: 4px solid #2271b1;
}

.geistm-setup-step.is-locked {
    background: #f6f7f7;
    opacity: 0.65;
}

.geistm-setup-step.is-locked h4 {
    color: #646970;
    font-weight: 500;
}

.geistm-setup-step.is-locked p {
    margin: 0;
}

.geistm-setup-step.is-blocked {
    border-left: 4px solid #dba617;
    background: #fffbf0;
}

.geistm-setup-step.is-done {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    background: #fafafa;
    font-size: 13px;
    color: #50575e;
}

.geistm-setup-step.is-done > span:last-of-type {
    flex: 1;
}

.geistm-setup-step.is-done a {
    white-space: nowrap;
}

.geistm-quiet-summary {
    cursor: pointer;
    font-size: 13px;
    color: #2271b1;
}

.geistm-describe-form {
    margin-top: 8px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 4px;
}

.geistm-note-amber {
    color: #996800;
}

/* Wallet: ID + Credit panels */

.geistm-wallet-panels {
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
    max-width: 620px;
}

.geistm-wallet-panel {
    flex: 1;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fafafa;
    padding: 10px 14px;
}

.geistm-wallet-panel h5 {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
}

.geistm-wallet-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #3c434a;
}

/* Format tiles */

.geistm-format-tiles {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.geistm-format-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 14px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-width: 92px;
}

.geistm-format-tile:hover {
    border-color: #2271b1;
}

.geistm-format-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.geistm-format-tile:has(input:checked) {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    background: #f0f6fc;
}

.geistm-tile-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.geistm-tile-hint {
    font-size: 11px;
    color: #646970;
}

.geistm-tile-preview {
    display: block;
    background: #c3c4c7;
    border-radius: 2px;
}

.geistm-tile-preview-banner {
    width: 64px;
    height: 14px;
    margin: 13px 0;
}

.geistm-tile-preview-square {
    width: 40px;
    height: 40px;
}

.geistm-tile-preview-card {
    width: 34px;
    height: 40px;
    background:
        linear-gradient(#c3c4c7 0 55%, transparent 55%),
        repeating-linear-gradient(#f0f0f1 0 3px, #c3c4c7 3px 5px, #f0f0f1 5px 8px);
    background-color: #f0f0f1;
    border: 1px solid #c3c4c7;
}

.geistm-tile-preview-qr {
    width: 40px;
    height: 40px;
    background:
        repeating-linear-gradient(90deg, #50575e 0 4px, transparent 4px 8px),
        repeating-linear-gradient(#50575e 0 4px, #f0f0f1 4px 8px);
}

/* Snippet copy box */

.geistm-snippet-box {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    padding: 8px 10px;
    background: #f0f0f1;
    border-radius: 4px;
    margin: 0 0 14px;
}

.geistm-snippet-box code {
    flex: 1;
    background: none;
    font-size: 13px;
    word-break: break-all;
}

.geistm-manual-panel {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 4px;
    max-width: 620px;
}

.geistm-paste-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 13px;
    color: #3c434a;
    margin: 0 0 10px;
}

.geistm-paste-list li {
    margin-bottom: 4px;
}
