/* Dinnup Dark Theme - Estilo Blackhat Ads */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Cores principais */
  --bg-primary: #000000;
  --bg-secondary: #0B0F19;
  --bg-card: #1A1F2E;
  --bg-hover: #2A2F3E;
  
  /* Cores de destaque */
  --green-full: #05777B;
  --green-neon: #3DC6B4;
  --purple-accent: #8A4FFF;
  --blue-accent: #3B82F6;
  
  /* Textos */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  
  /* Bordas e separadores */
  --border-color: #2A2F3E;
  --border-hover: #3DC6B4;
  
  /* Efeitos */
  --glow-green: 0 0 20px rgba(61, 198, 180, 0.3);
  --glow-purple: 0 0 20px rgba(138, 79, 255, 0.3);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Sidebar Fixa */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-neon), var(--purple-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-green);
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-left-color: var(--green-neon);
}

.nav-item.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-left-color: var(--green-neon);
  box-shadow: var(--glow-green);
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-text {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Conteúdo Principal */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

.content-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.content-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.content-body {
  padding: 2rem;
}

/* Cards do Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-neon), var(--purple-accent));
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
  border-color: var(--green-neon);
}

.dashboard-card.green::before {
  background: linear-gradient(90deg, var(--green-full), var(--green-neon));
}

.dashboard-card.purple::before {
  background: linear-gradient(90deg, var(--purple-accent), #B794F6);
}

.dashboard-card.blue::before {
  background: linear-gradient(90deg, var(--blue-accent), #60A5FA);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-icon.green {
  background: linear-gradient(135deg, var(--green-full), var(--green-neon));
  color: white;
  box-shadow: var(--glow-green);
}

.card-icon.purple {
  background: linear-gradient(135deg, var(--purple-accent), #B794F6);
  color: white;
  box-shadow: var(--glow-purple);
}

.card-icon.blue {
  background: linear-gradient(135deg, var(--blue-accent), #60A5FA);
  color: white;
  box-shadow: var(--glow-blue);
}

.card-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-neon), var(--green-full));
  color: white;
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(61, 198, 180, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--green-neon);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-accent), #B794F6);
  color: white;
  box-shadow: var(--glow-purple);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(138, 79, 255, 0.4);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(61, 198, 180, 0.1);
  color: var(--green-neon);
  border: 1px solid var(--green-neon);
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
  border: 1px solid #FFC107;
}

.status-badge.member {
  background: rgba(138, 79, 255, 0.1);
  color: var(--purple-accent);
  border: 1px solid var(--purple-accent);
}

/* Tabelas */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.table tr:hover {
  background: var(--bg-hover);
}

/* Formulários */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-neon);
  box-shadow: var(--glow-green);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modal */
.modal,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.modal.hidden,
.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--card-bg);
  color: var(--text-primary);
}

/* Responsividade */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes glow {
  0%, 100% { box-shadow: var(--glow-green); }
  50% { box-shadow: 0 0 30px rgba(61, 198, 180, 0.5); }
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-neon);
}

/* Produtos Campeões */
.elite-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--purple-accent) 0%, #6B46C1 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--glow-purple);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--green-full) 0%, var(--green-neon) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.filters-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.filters-header h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.filter-toggle {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filters-content {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: var(--glow-green);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-green);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-badge.featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-content {
  padding: 1.5rem;
}

.product-header {
  margin-bottom: 1rem;
}

.product-name {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-category {
  color: var(--green-neon);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-value.price {
  color: var(--text-primary);
}

.stat-value.profit {
  color: var(--green-neon);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.competition-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.trend-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green-neon);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.product-actions .btn-primary {
  background: linear-gradient(135deg, var(--green-full) 0%, var(--green-neon) 100%);
  color: white;
}

.product-actions .btn-primary:hover {
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.product-actions .btn-secondary {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.product-actions .btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Banners Compactos - Mobile First */
.banner-compact {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.banner-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  min-height: 80px;
}

.banner-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
  min-width: 0;
}

.banner-text h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.banner-price {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

.banner-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.banner-stats span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.banner-actions .btn-primary,
.banner-actions .btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.banner-actions .btn-primary {
  background: white;
  color: #000;
}

.banner-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.banner-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Cores dos Banners */
.banner-green {
  background: linear-gradient(135deg, #05777B 0%, #3DC6B4 100%);
  border: 1px solid #3DC6B4;
  box-shadow: 0 0 15px rgba(5, 119, 123, 0.2);
}

.banner-green .banner-icon {
  background: rgba(255, 255, 255, 0.2);
}

.banner-green .banner-actions .btn-primary {
  color: #05777B;
}

.banner-purple {
  background: linear-gradient(135deg, #8A4FFF 0%, #6B46C1 100%);
  border: 1px solid #8A4FFF;
  box-shadow: 0 0 15px rgba(138, 79, 255, 0.2);
}

.banner-purple .banner-icon {
  background: rgba(255, 255, 255, 0.2);
}

.banner-purple .banner-actions .btn-primary {
  color: #8A4FFF;
}

.banner-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.banner-orange .banner-icon {
  background: rgba(255, 255, 255, 0.2);
}

.banner-orange .banner-actions .btn-primary {
  color: #f59e0b;
}

/* Responsividade para Produtos Campeões */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-content {
    grid-template-columns: 1fr;
  }
  
  .product-actions {
    flex-direction: column;
  }
}

/* Responsividade dos Banners Compactos */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  
  .banner-text {
    order: 2;
  }
  
  .banner-icon {
    order: 1;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .banner-actions {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .banner-stats {
    justify-content: center;
  }
  
  .banner-text h3 {
    font-size: 1.2rem;
  }
  
  .banner-text p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .banner-actions .btn-primary,
  .banner-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
  
  .banner-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .banner-stats span {
    width: fit-content;
  }
}

