/* plugins/blockchain_core/assets/style.css */

.bc-core-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    color: #e6e8ec; /* base text readable on dark */
}

.bc-core-wrap h1 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #f4f6f8;
}

/* Top info banner (master pass hash / status) */
.bc-core-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #1e2329;          /* dark-friendly surface */
    border: 1px solid #343a40;
    color: #cfd4da;               /* readable light text */
    font-size: .85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.bc-core-banner strong {
    color: #f4f6f8;
}

/* Registry table */
.bc-core-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    color: #e6e8ec;
}

.bc-core-table th,
.bc-core-table td {
    text-align: left;
    padding: .6rem .75rem;
    border-bottom: 1px solid #2b3036;
    vertical-align: middle;
}

/* Header row — clearly visible on dark theme */
.bc-core-table thead th {
    background: #20262d;
    color: #f4f6f8;            /* bright, readable headings */
    font-weight: 600;
    border-bottom: 2px solid #3a414a;
    white-space: nowrap;
}

.bc-core-table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

/* Plugin id cell */
.bc-core-pid {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #d6dbe1;
}

/* Version cell */
.bc-core-ver {
    color: #f1c40f;            /* matches the yellow versions in screenshot */
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Active status dot + label */
.bc-core-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.bc-core-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    display: inline-block;
    background: #6c757d;       /* default: off */
    flex: 0 0 auto;
}

.bc-core-dot.is-on {
    background: #2ecc71;       /* green: active */
    box-shadow: 0 0 0 2px rgba(46, 204, 113, .2);
}

.bc-core-status.is-on  { color: #d6f5e3; }
.bc-core-status.is-off { color: #aeb4ba; }

/* Empty / muted cell */
.bc-core-muted {
    color: #6c757d;
    text-align: center;
}

/* Alerts */
.bc-core-alert {
    padding: .7rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.bc-core-alert.bc-core-success {
    background: #16331f;
    color: #9ae6b4;
    border: 1px solid #245c34;
}

.bc-core-alert.bc-core-error {
    background: #3a1d1d;
    color: #f5b5b5;
    border: 1px solid #6e2b2b;
}

/* Toolbar / buttons */
.bc-core-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bc-core-btn {
    background: #2b6cb0;
    color: #fff;
    border: 0;
    padding: .5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.bc-core-btn:hover { opacity: .92; }

.bc-core-btn-secondary {
    background: #495057;
}