/* ============================================================================
   MURAL DE AVISOS — banner global + admin
   ============================================================================ */

/* ----- Banner global ----- */
.cf-mural-banner {
  --mural-cor: #1E5BAA;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--mural-cor) 8%, var(--bg, #fff));
  border-bottom: 2px solid var(--mural-cor);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  position: relative;
  z-index: 50;
  animation: cfm-slide 250ms ease-out;
}
.cf-mural-banner.is-pin {
  background: color-mix(in srgb, var(--mural-cor) 14%, var(--bg, #fff));
}
@keyframes cfm-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cf-mural-banner .cfm-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--mural-cor);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-mural-banner .cfm-icon i { width: 18px; height: 18px; }
.cf-mural-banner .cfm-body { flex: 1; min-width: 0; }
.cf-mural-banner .cfm-title {
  font-weight: 600; font-size: 14px;
  color: var(--text, #1a2233);
  line-height: 1.3;
}
.cf-mural-banner .cfm-text {
  font-size: 12px;
  color: var(--t2, #5b6478);
  margin-top: 2px;
  line-height: 1.4;
}
.cf-mural-banner .cfm-close {
  background: transparent; border: 0;
  color: var(--t2, #5b6478);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.cf-mural-banner .cfm-close:hover { background: rgba(0,0,0,.05); }
.cf-mural-banner .cfm-close i { width: 16px; height: 16px; }

/* ----- Admin panel ----- */
.cf-mural-adm { padding: 24px; max-width: 100%; }
.cf-mural-adm > header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.cf-mural-adm h2 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400; font-size: 24px;
  margin: 0 0 4px;
  color: var(--text);
}
.cf-mural-adm h2 + p {
  font-size: 13px; color: var(--t2);
  margin: 0;
}

.cfm-list { display: flex; flex-direction: column; gap: 10px; }

.cfm-row {
  display: flex; gap: 14px;
  background: var(--s2, #f8fafc);
  padding: 14px 16px;
  border-radius: 12px;
  align-items: flex-start;
  transition: background 150ms;
}
.cfm-row:hover { background: var(--s1, #eef2f8); }
.cfm-row.is-expired { opacity: .55; }

.cfm-row-left {
  --c: #1E5BAA;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cfm-row-left i { width: 20px; height: 20px; }

.cfm-row-mid { flex: 1; min-width: 0; }
.cfm-row-title {
  font-weight: 600; font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.cfm-row-text {
  font-size: 12.5px;
  color: var(--t2);
  margin: 4px 0 6px;
  line-height: 1.5;
}
.cfm-row-meta {
  font-size: 11px;
  color: var(--t3, #94a3b8);
  font-family: 'IBM Plex Mono', monospace;
}

.badge-pin, .badge-exp {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-family: 'Inter', sans-serif;
}
.badge-pin { background: #fef3c7; color: #92400e; }
.badge-pin i { width: 10px; height: 10px; }
.badge-exp { background: #fee2e2; color: #991b1b; }

.cfm-row-right { display: flex; gap: 4px; flex-shrink: 0; }

/* ----- Modal editor ----- */
.cf-mural-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: cfm-fade 150ms;
}
@keyframes cfm-fade { from { opacity: 0; } to { opacity: 1; } }

.cf-mural-modal {
  background: var(--bg, #fff);
  border-radius: 14px;
  width: 90%; max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: cfm-pop 200ms;
}
@keyframes cfm-pop {
  from { transform: scale(.95) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cf-mural-modal header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.cf-mural-modal h3 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400; font-size: 18px;
  margin: 0;
}
.cf-mural-modal .btn-x {
  background: transparent; border: 0;
  cursor: pointer; padding: 4px;
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
}
.cf-mural-modal .btn-x:hover { color: var(--text); }

.cfm-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.cfm-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.cfm-form input[type="text"],
.cfm-form input[type="datetime-local"],
.cfm-form textarea {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg, #fff);
  color: var(--text);
}
.cfm-form input:focus,
.cfm-form textarea:focus {
  outline: 2px solid var(--brand, #1E5BAA);
  outline-offset: -1px;
  border-color: transparent;
}
.cfm-form input[type="color"] {
  width: 100%; height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.cfm-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfm-form .cb {
  flex-direction: row; align-items: center; gap: 8px;
  cursor: pointer;
  font-weight: 400;
}
.cfm-form .cb input { width: 16px; height: 16px; }

.cf-mural-modal footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
