/* Interfaz simple — legible y estable */

.monitor-app--light {
  background: #f1f5f9;
  color: #1e293b;
}

.monitor-app--light .monitor-header {
  background: #0a0a0a;
  border-bottom: 1px solid #1f1f1f;
}

.monitor-app--light .monitor-brand h1 {
  color: #fff;
}

.monitor-app--light .monitor-brand p {
  color: #a3a3a3;
}

.monitor-app--light .monitor-top-nav {
  background: #171717;
  border: 1px solid #2a2a2a;
}

.monitor-app--light .monitor-top-tab {
  color: #a3a3a3;
}

.monitor-app--light .monitor-top-tab:hover {
  color: #fff;
}

.monitor-app--light .monitor-top-tab--active {
  background: #262626;
  color: #fff;
}

.monitor-app--light .monitor-live-pill {
  color: #86efac;
  background: rgb(34 197 94 / 0.15);
  border-color: rgb(34 197 94 / 0.3);
}

.layout-simple {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .layout-simple {
    grid-template-columns: 1fr;
  }
}

.layout-simple-aside {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.layout-simple-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.layout-simple-aside-top h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.btn-refresh {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.btn-refresh:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.sector-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.sector-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

.sector-tab:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sector-tab--on {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.sector-tab-count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.08);
}

.sector-tab--on .sector-tab-count {
  background: rgb(255 255 255 / 0.25);
}

.layout-simple-search {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
}

.layout-simple-sources {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.src-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  font-size: 0.875rem;
  color: #334155;
}

.src-pick:hover {
  background: #f8fafc;
}

.src-pick--on {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 600;
}

.src-pick-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.src-pick-nets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.src-pick-net {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.src-pick-net svg {
  width: 12px;
  height: 12px;
}

.src-pick-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.source-nav-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
}

.src-pick--on .source-nav-count {
  background: #dbeafe;
  color: #1e40af;
}

.layout-simple-add {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px dashed #93c5fd;
  background: #f8fafc;
}

.layout-simple-add:hover {
  background: #eff6ff;
}

.layout-simple-empty {
  font-size: 0.8rem;
  color: #64748b;
}

.layout-simple-main {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}

.layout-simple-main-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.layout-simple-main-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.layout-simple-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.layout-simple-feed-wrap {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.layout-simple-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.layout-simple .monitor-feed {
  padding: 1rem 1.25rem;
}

.monitor-feed--accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.source-group-head-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.source-group-nets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.source-more-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.source-accordion[open] .source-more-badge {
  display: none;
}

.source-accordion > summary.source-group-head {
  cursor: pointer;
  border-bottom: none;
  margin-bottom: 0;
}

.source-group-head--flat {
  margin-bottom: 0.5rem;
}

.source-group--single {
  margin-bottom: 0.75rem;
}

.source-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
}

.source-group-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.source-group-count {
  font-size: 0.75rem;
  color: #64748b;
}

.post-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.post-card-body {
  padding: 0.75rem 1rem;
}

.post-yt-link {
  display: block;
  position: relative;
  background: #000;
}

.post-yt-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.post-yt-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
