/* ============================================================
   Tela /admin/broadcasts — CSS global (não usa CSS isolation).
   Classes .bc-* extraídas do mockup broadcasts-mockup.html.
   Sem colisão com .tn-* (tenants) nem com classes existentes.
   ============================================================ */

/* === Page === */
.bc-page { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.bc-page-title { font-size: 22px; font-weight: 700; margin: 0; color: #1a1a2e; }
.bc-page-subtitle { font-size: 13px; color: #888; margin: 4px 0 20px; line-height: 1.5; }

/* === Composer card === */
.bc-composer { background: #fff; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 24px; }
.bc-composer-header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px; }
.bc-composer-header-icon { width: 32px; height: 32px; border-radius: 8px; background: #e8eaf6; color: #5c6bc0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.bc-composer-header-text { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.bc-composer-body { padding: 20px; }

/* === Form layout === */
.bc-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.bc-row > * { flex: 1; }
.bc-row > .bc-shrink { flex: 0 0 260px; }

.bc-field { display: flex; flex-direction: column; }
.bc-field-label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.bc-field-input,
.bc-field-select,
.bc-field-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
    color: #1a1a2e;
}
.bc-field-input:focus,
.bc-field-select:focus,
.bc-field-textarea:focus { border-color: #5c6bc0; }
.bc-field-textarea { resize: vertical; line-height: 1.6; min-height: 120px; font-family: inherit; }
.bc-field-hint { font-size: 11px; color: #bbb; margin-top: 4px; }
.bc-field-counter { font-size: 11px; color: #bbb; margin-top: 4px; text-align: right; }
.bc-field-counter-row { display: flex; justify-content: space-between; align-items: center; }

/* === Editor + preview side by side === */
.bc-editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .bc-editor-row { grid-template-columns: 1fr; } }

.bc-preview { border: 1.5px solid #f0f0f0; border-radius: 8px; padding: 16px; min-height: 120px; background: #fafafa; }
.bc-preview-label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.bc-preview-title { font-size: 15px; font-weight: 700; color: #5c6bc0; margin-bottom: 6px; }
.bc-preview-title-warning { color: #e65100; }
.bc-preview-title-critical { color: #b71c1c; }
.bc-preview-body { font-size: 13px; color: #555; line-height: 1.6; word-wrap: break-word; }
.bc-preview-body p { margin-bottom: 8px; }
.bc-preview-body a { color: #5c6bc0; }
.bc-preview-body strong { color: #1a1a2e; }
.bc-preview-empty { font-size: 12px; color: #ccc; font-style: italic; }

/* === Severity pills === */
.bc-severity-group { display: flex; gap: 6px; flex-wrap: wrap; }
.bc-severity-pill {
    padding: 7px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    font-family: inherit;
    color: #555;
}
.bc-severity-pill:hover { border-color: #bbb; }
.bc-severity-pill.active-info     { background: #e8eaf6; border-color: #5c6bc0; color: #3949ab; }
.bc-severity-pill.active-atencao  { background: #fff8e1; border-color: #f9a825; color: #e65100; }
.bc-severity-pill.active-critico  { background: #ffebee; border-color: #e53935; color: #b71c1c; }
.bc-severity-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.bc-severity-dot.info     { background: #5c6bc0; }
.bc-severity-dot.atencao  { background: #f9a825; }
.bc-severity-dot.critico  { background: #e53935; }

/* === Composer footer === */
.bc-composer-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bc-footer-left { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.bc-footer-meta { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; padding-bottom: 6px; }
.bc-footer-meta .dot { color: #4caf50; font-size: 8px; }
.bc-btn-send {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    background: #5c6bc0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(92,107,192,0.3);
    transition: all 0.15s;
}
.bc-btn-send:hover:not(:disabled) { background: #4a5ab9; box-shadow: 0 4px 12px rgba(92,107,192,0.4); }
.bc-btn-send:disabled { background: #c5cae9; cursor: not-allowed; box-shadow: none; }

/* === Recent broadcasts === */
.bc-recent-title { font-size: 14px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.bc-recent-empty { background: #fff; border: 1px dashed #ddd; border-radius: 10px; padding: 24px; text-align: center; font-size: 13px; color: #888; }
.bc-recent-card { background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 14px 18px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.bc-recent-severity { width: 4px; border-radius: 2px; min-height: 40px; flex-shrink: 0; align-self: stretch; }
.bc-recent-severity.info     { background: #5c6bc0; }
.bc-recent-severity.atencao  { background: #f9a825; }
.bc-recent-severity.critico  { background: #e53935; }
.bc-recent-body { flex: 1; min-width: 0; }
.bc-recent-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.bc-recent-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.bc-recent-meta { font-size: 11px; color: #aaa; display: flex; align-items: center; gap: 8px; }
.bc-recent-scope { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #f0f0f0; color: #888; }
.bc-recent-text { font-size: 13px; color: #666; line-height: 1.5; margin-top: 2px; word-wrap: break-word; }
.bc-recent-expired { opacity: 0.55; }
.bc-recent-tag { font-size: 10px; color: #e53935; font-weight: 600; margin-left: 8px; }
.bc-recent-stats { font-size: 11px; color: #aaa; }
