html, body {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #181a20;
  color: #f5f6fa;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: #181a20;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}
.sidebar {
  width: 80px;
  background: #23242b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  justify-content: space-between;
  box-shadow: 2px 0 12px #0004;
}
.logo {
  width: 40px;
  height: 40px;
  background: #aefb2a;
  border-radius: 12px;
  margin-bottom: 32px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.sidebar-btn {
  width: 44px;
  height: 44px;
  background: #232b3e;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.7rem;
}
.sidebar-btn.active, .sidebar-btn:hover {
  background: #aefb2a;
}
.icon-instagram {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 70% 30%, #feda75 0%, #fa7e1e 40%, #d62976 60%, #962fbf 80%, #4f5bd5 100%);
  border-radius: 6px;
  display: block;
}
.icon-facebook {
  width: 24px;
  height: 24px;
  background: #1877f3;
  border-radius: 6px;
  display: block;
  position: relative;
}
.icon-facebook::after {
  content: "f";
  color: #fff;
  font-weight: bold;
  font-family: Arial, sans-serif;
  position: absolute;
  left: 7px;
  top: 1px;
  font-size: 18px;
}
.icon-tiktok {
  width: 24px;
  height: 24px;
  background: #000;
  border-radius: 6px;
  display: block;
  position: relative;
}
.icon-tiktok::after {
  content: "♪";
  color: #fff;
  font-size: 18px;
  position: absolute;
  left: 5px;
  top: 1px;
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.admin-btn {
  width: 60px;
  height: 40px;
  background: #aefb2a;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #222;
  font-size: 1.1rem;
  transition: background 0.2s;
  margin: 0;
}
.admin-btn:hover {
  background: #d4ff7f;
}
.main-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #181a20;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.greeting h2 {
  margin: 0 0 4px 0;
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
}
.greeting p {
  margin: 0;
  color: #b0b3b8;
  font-size: 1.1rem;
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.period-select, .search-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
}
.stats-section {
  display: flex;
  gap: 24px;
}
.stat-card, .activity-chart, .timeline-item {
  transition: box-shadow 0.25s, background 0.25s, transform 0.25s;
}
.stat-card:hover, .activity-chart:hover, .timeline-item:hover {
  background: #232b2f;
  transform: translateY(-4px) scale(1.02);
  cursor: pointer;
}
.stat-card {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 40px;
  font-size: 1.2rem;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  color: #f5f6fa;
  position: relative;
}
.stat-card span {
  font-size: 2.5rem;
  font-weight: bold;
  color: #aefb2a;
  margin-top: 8px;
}
.activity-section {
  display: flex;
  gap: 24px;
}
.activity-chart-group {
  display: flex;
  gap: 24px;
  width: 100%;
}
.activity-chart {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 40px;
  font-size: 1.2rem;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  color: #f5f6fa;
  position: relative;
  box-sizing: border-box;
  max-width: none;
}
.activity-chart h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #f5f6fa;
  font-weight: 500;
}
.activity-chart canvas {
  width: 100% !important;
  max-width: 360px;
  height: 120px !important;
}
.progress-card {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 220px;
}
.progress-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.progress-bar {
  width: 100%;
  height: 14px;
  background: #23242b;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 1px 4px #0004 inset;
}
.progress {
  height: 100%;
  background: #aefb2a;
  border-radius: 8px;
  transition: width 0.4s;
}
.content-section {
  margin-top: 12px;
}

.content-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.timeline-section {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 24px;
  flex: 2 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.featured-content-section {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 400px;
  overflow-x: hidden;
}
.timeline-section h3,
.featured-content-section h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 1.2rem;
}
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-content-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-content-item {
  background: #181a20;
  border-radius: 14px;
  padding: 16px;
  border-left: 4px solid #aefb2a;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.featured-content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #0004;
}

.featured-content-image {
  max-width: 100%;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
  background: #23242b;
}

.featured-content-title {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-content-date {
  color: #aefb2a;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.featured-content-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.featured-content-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #b0b3b8;
}

.featured-content-metric-value {
  color: #fff;
  font-weight: 600;
}

.featured-content-link {
  display: inline-block;
  color: #aefb2a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.featured-content-link:hover {
  color: #d4ff7f;
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: #23242b;
  border-radius: 14px;
  border-left: 4px solid #aefb2a;
  position: relative;
  box-shadow: 0 1px 4px #0003;
}
.timeline-date {
  font-weight: bold;
  color: #aefb2a;
  min-width: 80px;
  font-size: 1.1rem;
}
.timeline-metrics {
  display: flex;
  gap: 18px;
  flex: 1;
}
.timeline-metric {
  text-align: center;
}
.timeline-metric-label {
  font-size: 0.9rem;
  color: #b0b3b8;
  margin-bottom: 4px;
}
.timeline-metric-value {
  font-weight: bold;
  color: #f5f6fa;
  font-size: 1.1rem;
}
.timeline-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.timeline-actions button {
  padding: 7px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #23242b;
  color: #aefb2a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.timeline-actions button:hover {
  background: #aefb2a;
  color: #23242b;
}
.timeline-delta {
  display: block;
  text-align: center;
  font-size: 0.85em;
  margin-top: 2px;
  line-height: 1.1;
}
.bottom-section {
  display: flex;
  gap: 24px;
}
.profile-list, .calendar, .trending {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px;
  flex: 1;
}
.profile-list ul, .trending ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-list li, .trending li {
  margin-bottom: 8px;
}
.calendar {
  min-width: 180px;
}
@media (max-width: 1200px) {
  .stats-section, .activity-chart-group {
    gap: 12px;
  }
  .stat-card, .activity-chart {
    padding: 18px 8px 8px 8px;
    font-size: 1rem;
  }
  .activity-chart canvas {
    max-width: 260px;
    height: 90px !important;
  }
  
  .content-layout {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  
  .timeline-section,
  .featured-content-section {
    flex: none;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
}
@media (max-width: 900px) {
  .stats-section, .activity-chart-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-card, .activity-chart {
    min-width: 140px;
    flex: 1 1 45%;
  }
}
@media (max-width: 700px) {
  .stats-section, .activity-chart-group {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .stat-card, .activity-chart {
    max-width: 100vw;
    min-width: 0;
    width: 100%;
    padding: 8px 2vw 2px 2vw;
  }
  .activity-chart canvas {
    max-width: 100vw;
    height: 70px !important;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #23242b;
  border-radius: 28px;
  box-shadow: 0 8px 32px #0008;
  padding: 48px 36px 36px 36px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #f5f6fa;
  align-items: center;
}
#auth-modal h2#auth-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.5px;
}
#auth-modal input[type="email"],
#auth-modal input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: #181a20;
  color: #f5f6fa;
  font-size: 1.08rem;
  margin-bottom: 12px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
  box-shadow: 0 1px 4px #0003 inset;
}
#auth-modal input[type="email"]::placeholder,
#auth-modal input[type="password"]::placeholder {
  color: #b0b3b8;
  opacity: 1;
}
#auth-modal input[type="email"]:focus,
#auth-modal input[type="password"]:focus {
  border: 2px solid #aefb2a;
  box-shadow: 0 0 0 2px #aefb2a55;
  background: #181a20;
}
#auth-modal button[type="submit"],
#auth-modal button[type="button"] {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  background: #aefb2a;
  color: #23242b;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px #aefb2a22;
}
#auth-modal button[type="submit"]:hover,
#auth-modal button[type="button"]:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
}
#auth-modal .erro {
  color: #ff4d4d;
  font-size: 1rem;
  min-height: 20px;
  text-align: center;
  margin-top: 4px;
}
.choose-social-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.choose-social-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
.choose-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #232b3e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.choose-social-btn:hover {
  background: #aefb2a;
  color: #222;
}
#choose-social-cancelar {
  background: #eee;
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  margin-top: 8px;
}
.cliente-select, .rede-select {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background: #23242b;
  color: #f5f6fa;
  min-width: 180px;
  margin-left: 8px;
}
.cliente-select:focus, .rede-select:focus {
  outline: 2px solid #aefb2a;
}
.ok-btn {
  background: #aefb2a;
  color: #222;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.ok-btn:hover {
  background: #d4ff7f;
  color: #222;
}
#admin-panel .modal-content {
  background: #23242b;
  border-radius: 24px;
  box-shadow: 0 8px 32px #0008;
  padding: 30px 30px;
  min-width: 480px;
  max-width: 700px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #f5f6fa;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}
#admin-panel .modal-content form, #admin-panel .modal-content > *:not(h2) {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}
#admin-panel h2#admin-form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: 0.5px;
}
#admin-panel label {
  width: 100%;
  color: #f5f6fa;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#admin-panel input[type="text"],
#admin-panel input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: #181a20;
  color: #f5f6fa;
  font-size: 1rem;
  margin-bottom: 4px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
  box-shadow: 0 1px 4px #0003 inset;
}
#admin-panel input[type="text"]::placeholder,
#admin-panel input[type="number"]::placeholder {
  color: #b0b3b8;
  opacity: 1;
}
#admin-panel input[type="text"]:focus,
#admin-panel input[type="number"]:focus {
  border: 2px solid #aefb2a;
  box-shadow: 0 0 0 2px #aefb2a55;
  background: #181a20;
}
#admin-panel select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: #181a20;
  color: #f5f6fa;
  font-size: 1rem;
  margin-bottom: 4px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
  box-shadow: 0 1px 4px #0003 inset;
}
#admin-panel select:focus {
  border: 2px solid #aefb2a;
  box-shadow: 0 0 0 2px #aefb2a55;
  background: #181a20;
}
#admin-panel .form-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
}
#admin-panel button[type="submit"],
#admin-panel button[type="button"] {
  width: 160px;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  background: #aefb2a;
  color: #23242b;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px #aefb2a22;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#admin-panel button[type="submit"]:hover,
#admin-panel button[type="button"]:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
} 
.modal#modal-grafico-completo {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.modal#modal-grafico-completo.active {
  display: flex;
}
#modal-grafico-completo .modal-content {
  background: #23242b;
  border-radius: 22px;
  padding: 18px 32px 8px 32px;
  min-width: 320px;
  max-width: 98vw;
  width: 1400px;
  max-height: 90vh;
  height: 400px;
  box-shadow: 0 2px 24px #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: slideUpModal 0.3s;
  margin: 0;
  justify-content: flex-start;
}
#modal-grafico-completo h2 {
  color: #aefb2a;
  text-align: center;
  margin: 8px 0 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
#modal-grafico-completo canvas {
  width: 100% !important;
  max-width: 1360px;
  height: 220px !important;
  background: #181a20;
  border-radius: 12px;
  margin-bottom: 0;
  margin-top: 24px;
  box-shadow: 0 1px 8px #0004;
}
#fechar-modal-grafico {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #aefb2a;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 3000;
}
#fechar-modal-grafico:hover {
  color: #fff;
}
@media (max-width: 1500px) {
  #modal-grafico-completo .modal-content {
    width: 98vw;
    min-width: 0;
    padding: 8px 1vw;
    height: 320px;
    max-height: 90vh;
  }
  #modal-grafico-completo canvas {
    max-width: 96vw;
    height: 160px !important;
  }
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUpModal {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
} 
.seguidores-totais {
  display: flex;
  gap: 0px;
  align-items: center;
  margin-bottom: 16px;
}
.seguidores-totais span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seguidores-totais .icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 0;
}

#inputs-seguidores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-content {
  max-width: 400px;
  margin: auto;
}

/* Campos de seguidores específicos por rede social - controlados via JavaScript */
#admin-seguidores-instagram,
#admin-seguidores-facebook,
#admin-seguidores-tiktok {
  /* Visibilidade controlada via JavaScript */
}

/* Força ocultação dos campos de seguidores específicos quando necessário */
.hide-seguidores-fields #admin-seguidores-instagram,
.hide-seguidores-fields #admin-seguidores-facebook,
.hide-seguidores-fields #admin-seguidores-tiktok,
.hide-seguidores-fields label:has(input#admin-seguidores-instagram),
.hide-seguidores-fields label:has(input#admin-seguidores-facebook),
.hide-seguidores-fields label:has(input#admin-seguidores-tiktok) {
  display: none !important;
}

/* Estilos para o modal de conteúdo em destaque */
#modal-conteudo-destaque .modal-content {
  background: #23242b;
  border-radius: 24px;
  box-shadow: 0 8px 32px #0008;
  padding: 18px 36px 12px 36px;
  min-width: 340px;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f5f6fa;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}
#modal-conteudo-destaque form, #modal-conteudo-destaque .modal-content > *:not(h2) {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}
#modal-conteudo-destaque h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.5px;
}
#modal-conteudo-destaque label {
  width: 100%;
  color: #f5f6fa;
  font-size: 0.97rem;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#modal-conteudo-destaque input[type="text"],
#modal-conteudo-destaque input[type="number"],
#modal-conteudo-destaque input[type="url"],
#modal-conteudo-destaque input[type="date"],
#modal-conteudo-destaque select {
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  border: none;
  background: #181a20;
  color: #f5f6fa;
  font-size: 0.97rem;
  margin-bottom: 6px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
  box-shadow: 0 1px 4px #0003 inset;
}
#modal-conteudo-destaque input[type="text"]:focus,
#modal-conteudo-destaque input[type="number"]:focus,
#modal-conteudo-destaque input[type="url"]:focus,
#modal-conteudo-destaque input[type="date"]:focus,
#modal-conteudo-destaque select:focus {
  border: 2px solid #aefb2a;
  box-shadow: 0 0 0 2px #aefb2a55;
  background: #181a20;
}
#modal-conteudo-destaque input[type="text"]::placeholder,
#modal-conteudo-destaque input[type="number"]::placeholder,
#modal-conteudo-destaque input[type="url"]::placeholder {
  color: #b0b3b8;
  opacity: 1;
}
#modal-conteudo-destaque .form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
#modal-conteudo-destaque .form-row label {
  flex: 1;
  margin-bottom: 0;
}
#modal-conteudo-destaque .form-row label.visualizacoes-label {
  margin-right: 5px;
}
#modal-conteudo-destaque .form-row label.comentarios-label {
  margin-right: 5px;
}
#modal-conteudo-destaque button[type="submit"],
#modal-conteudo-destaque button[type="button"] {
  width: 160px;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  background: #aefb2a;
  color: #23242b;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px #aefb2a22;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#modal-conteudo-destaque button[type="submit"]:hover,
#modal-conteudo-destaque button[type="button"]:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
}
#modal-conteudo-destaque button[type="button"] {
  background: #aefb2a;
  color: #23242b;
  margin-top: 8px;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  #modal-conteudo-destaque .modal-content {
    min-width: 0;
    max-width: 98vw;
    padding: 8px 2vw;
  }
}

/* Botões de ação nos cards de conteúdo */
.featured-content-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.featured-content-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.featured-content-edit {
  background: #aefb2a;
  color: #23242b;
}

.featured-content-edit:hover {
  background: #d4ff7f;
}

.featured-content-delete {
  background: #ff4757;
  color: white;
}

.featured-content-delete:hover {
  background: #ff6b7a;
} 
#modal-conteudo-destaque input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
} 

/* Customização do flatpickr para combinar com o dashboard */
.flatpickr-calendar {
  background: #23242b;
  color: #fff;
  border-radius: 18px;
  border: 1.5px solid #333;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 8px 32px #0008;
}
.flatpickr-months, .flatpickr-weekdays {
  background: #23242b;
  color: #aefb2a;
}
.flatpickr-current-month, .flatpickr-weekday {
  color: #aefb2a;
}
.flatpickr-day {
  color: #fff;
  background: transparent;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.flatpickr-day:hover, .flatpickr-day:focus {
  background: #aefb2a33;
  color: #aefb2a;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected:focus {
  background: #aefb2a;
  color: #23242b;
  border-radius: 8px;
}
.flatpickr-day.today {
  border-color: #aefb2a;
}
.flatpickr-input[readonly] {
  background: #181a20;
  color: #fff;
  border-radius: 10px;
}
.flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year {
  background: #23242b;
  color: #aefb2a;
  border-radius: 8px;
}
.flatpickr-weekdays {
  border-bottom: 1px solid #333;
}
.flatpickr-time {
  background: #23242b;
  color: #fff;
}
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
  border-top-color: #23242b;
} 
.form-row-metricas {
  gap: 32px !important;
} 
.timeline-actions .featured-content-edit, .featured-content-edit {
  background: #aefb2a !important;
  color: #23242b !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px #aefb2a22 !important;
  border: none !important;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  display: inline-block;
}
.timeline-actions .featured-content-edit:hover, .featured-content-edit:hover {
  background: #d4ff7f !important;
  color: #181a20 !important;
  transform: translateY(-2px) scale(1.03);
}
.timeline-actions .featured-content-delete, .featured-content-delete {
  background: #ff4757 !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px #ff475722 !important;
  border: none !important;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  display: inline-block;
}
.timeline-actions .featured-content-delete:hover, .featured-content-delete:hover {
  background: #ff6b7a !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
} 
.timeline-actions .featured-content-edit, .timeline-actions .featured-content-delete {
  padding: 4px 12px !important;
  font-size: 0.92rem !important;
  border-radius: 8px !important;
  min-width: 64px;
  height: 32px;
} 
.featured-content-link.featured-content-edit {
  font-size: 0.92rem !important;
} 
.mt-link {
  margin-top: 18px !important;
} 
.file-upload-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 6px;
}
.file-btn {
  background: #aefb2a;
  color: #23242b !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 5px 12px;
  box-shadow: 0 2px 8px #aefb2a22;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  display: inline-block;
  text-align: center;
}
.file-btn:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
}
.file-name {
  color: #b0b3b8;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 
.btn-salvar {
  width: 90px;
  padding: 5px 0;
  border: none;
  border-radius: 8px;
  background: #aefb2a;
  color: #23242b !important;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px #aefb2a22;
  display: inline-block;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}
.btn-salvar:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
} 
.file-upload-title {
  color: #fff;
  font-size: 0.97rem;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 0;
  display: block;
} 
.file-upload-group .btn-salvar {
  width: 220px;
  display: block;
  margin-bottom: 2px;
  text-align: center;
} 
.btn-cancelar {
  background: #ff4757 !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 8px 18px !important;
  box-shadow: 0 2px 8px #ff475722 !important;
  border: none !important;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 18px;
}
.btn-cancelar:hover {
  background: #ff6b7a !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
} 
.trafego-pago-section {
  background: #23242b;
  border-radius: 22px;
  box-shadow: 0 2px 16px #0006;
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 400px;
  overflow-x: hidden;
  margin-left: 0;
}
.trafego-pago-section h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 1.2rem;
}
.trafego-pago-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Novos estilos para cards de Tráfego Pago */
.trafego-pago-card {
  background: #181a20;
  border-radius: 16px;
  padding: 20px;
  border-left: 4px solid #aefb2a;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.trafego-pago-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #0004;
}

.trafego-pago-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.trafego-pago-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #23242b;
}

.trafego-pago-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trafego-pago-info {
  flex: 1;
  min-width: 0;
}

.trafego-pago-title {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.trafego-pago-rede {
  color: #aefb2a;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.trafego-pago-periodo {
  margin-top: 4px;
}

.trafego-pago-date {
  color: #b0b3b8;
  font-size: 0.85rem;
}

.trafego-pago-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.trafego-pago-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #23242b;
  border-radius: 10px;
  transition: background 0.2s;
}

.trafego-pago-metric:hover {
  background: #2a2d35;
}

.trafego-pago-metric-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trafego-pago-metric-content {
  flex: 1;
  min-width: 0;
}

.trafego-pago-metric-label {
  font-size: 0.8rem;
  color: #b0b3b8;
  margin-bottom: 2px;
}

.trafego-pago-metric-value {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.trafego-pago-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #23242b;
  border-radius: 10px;
}

.trafego-pago-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.trafego-pago-detail-label {
  color: #b0b3b8;
  font-weight: 500;
  flex-shrink: 0;
}

.trafego-pago-detail-value {
  color: #fff;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.trafego-pago-actions {
  display: flex;
  justify-content: center;
}

.trafego-pago-edit-btn {
  background: #aefb2a;
  color: #23242b;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trafego-pago-edit-btn:hover {
  background: #d4ff7f;
  transform: translateY(-1px);
}

/* Responsividade para cards de Tráfego Pago */
@media (max-width: 1200px) {
  .trafego-pago-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .trafego-pago-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .trafego-pago-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .trafego-pago-card {
    padding: 16px;
  }
  
  .trafego-pago-metric {
    padding: 10px;
  }
  
  .trafego-pago-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .trafego-pago-detail-value {
    text-align: left;
  }
}
#modal-trafego-pago .modal-content {
  background: #23242b;
  border-radius: 24px;
  box-shadow: 0 8px 32px #0008;
  padding: 18px 36px 12px 36px;
  min-width: 340px;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f5f6fa;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}
#modal-trafego-pago form, #modal-trafego-pago .modal-content > *:not(h2) {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
}
#modal-trafego-pago h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.5px;
}
#modal-trafego-pago label {
  width: 100%;
  color: #f5f6fa;
  font-size: 0.97rem;
  margin-bottom: 0;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#modal-trafego-pago input[type="text"],
#modal-trafego-pago input[type="number"],
#modal-trafego-pago input[type="url"],
#modal-trafego-pago input[type="date"],
#modal-trafego-pago select {
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  border: none;
  background: #181a20;
  color: #f5f6fa;
  font-size: 0.97rem;
  margin-bottom: 6px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
  box-shadow: 0 1px 4px #0003 inset;
}
#modal-trafego-pago input[type="text"]:focus,
#modal-trafego-pago input[type="number"]:focus,
#modal-trafego-pago input[type="url"]:focus,
#modal-trafego-pago input[type="date"]:focus,
#modal-trafego-pago select:focus {
  border: 2px solid #aefb2a;
  box-shadow: 0 0 0 2px #aefb2a55;
  background: #181a20;
}
#modal-trafego-pago input[type="text"]::placeholder,
#modal-trafego-pago input[type="number"]::placeholder,
#modal-trafego-pago input[type="url"]::placeholder {
  color: #b0b3b8;
  opacity: 1;
}
#modal-trafego-pago button[type="submit"],
#modal-trafego-pago button[type="button"] {
  width: 160px;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  background: #aefb2a;
  color: #23242b;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px #aefb2a22;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#modal-trafego-pago button[type="submit"]:hover,
#modal-trafego-pago button[type="button"]:hover {
  background: #d4ff7f;
  color: #181a20;
  transform: translateY(-2px) scale(1.03);
}
#modal-trafego-pago button[type="button"] {
  background: #ff4757 !important;
  color: #fff !important;
  margin-top: 8px;
  margin-bottom: 18px;
}
#modal-trafego-pago .file-upload-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 6px;
}
#modal-trafego-pago .btn-salvar {
  width: 220px;
  display: block;
  margin-bottom: 2px;
  text-align: center;
}
#modal-trafego-pago .file-name {
  color: #b0b3b8;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 
/* Botão de alternar visualização */
.trafego-view-toggle-btn {
  background: #23242b;
  color: #aefb2a;
  border: 2px solid #aefb2a;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.trafego-view-toggle-btn:hover {
  background: #aefb2a;
  color: #23242b;
  transform: translateY(-1px);
}

/* Visualização compacta */
.trafego-pago-card.compact {
  padding: 12px;
}

.trafego-pago-compact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trafego-pago-compact-image {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #23242b;
  flex-shrink: 0;
}

.trafego-pago-compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trafego-pago-compact-info {
  flex: 1;
  min-width: 0;
}

.trafego-pago-compact-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
  line-height: 1.2;
}

.trafego-pago-compact-rede {
  color: #aefb2a;
  font-size: 0.8rem;
}

.trafego-pago-compact-actions {
  flex-shrink: 0;
}

.trafego-pago-edit-btn.compact {
  background: #23242b;
  color: #aefb2a;
  border: 1px solid #aefb2a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  min-width: auto;
}

.trafego-pago-edit-btn.compact:hover {
  background: #aefb2a;
  color: #23242b;
}

.trafego-pago-compact-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.trafego-pago-compact-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: #23242b;
  border-radius: 6px;
  text-align: center;
}

.trafego-pago-compact-metric-icon {
  font-size: 0.9rem;
}

.trafego-pago-compact-metric-value {
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
}

.trafego-pago-compact-periodo {
  text-align: center;
}

.trafego-pago-compact-date {
  color: #b0b3b8;
  font-size: 0.75rem;
}

/* Responsividade para visualização compacta */
@media (max-width: 1200px) {
  .trafego-pago-compact-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .trafego-pago-compact-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  
  .trafego-pago-compact-image {
    width: 80px;
    height: 50px;
  }
  
  .trafego-pago-compact-metrics {
    grid-template-columns: 1fr 1fr;
  }
} 