/* ==========================================================================
   BCMX Component Styles — Shared utility classes for Web Components
   ========================================================================== */

/* ---------- Status Badges ---------- */
.bcmx-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bcmx-badge-active,
.bcmx-badge-online  { background: var(--status-online-bg); color: var(--status-online-text); }
.bcmx-badge-inactive,
.bcmx-badge-offline  { background: var(--status-offline-bg); color: var(--status-offline-text); }
.bcmx-badge-pending  { background: #fff3cd; color: #856404; }

/* ---------- Cards ---------- */
.bcmx-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}
.bcmx-card-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* ---------- Buttons ---------- */
.bcmx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.bcmx-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bcmx-btn-primary { background: var(--btn-primary-bg); color: #fff; }
.bcmx-btn-primary:hover:not(:disabled) { background: var(--btn-primary-hover); }
.bcmx-btn-danger { background: var(--btn-danger-bg); color: #fff; }
.bcmx-btn-danger:hover:not(:disabled) { background: var(--btn-danger-hover); }
.bcmx-btn-neutral { background: var(--btn-neutral-bg); color: var(--btn-neutral-text); }
.bcmx-btn-neutral:hover:not(:disabled) { background: var(--btn-neutral-hover); }

/* ---------- Form Inputs ---------- */
.bcmx-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.4;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.bcmx-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---------- Empty State ---------- */
.bcmx-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.bcmx-empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.bcmx-empty-state p { font-size: 16px; margin: 0; color: var(--text-secondary); }

/* ---------- Screen Reader Only ---------- */
.bcmx-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive Table Wrapper ---------- */
.bcmx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
