/* Variáveis de cor */
:root {
  --primary-color: #4a6bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --sidebar-width: 280px;
  --header-height: 70px;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset e base */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.verification-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 13px;
}

.verification-item i {
  font-size: 14px;
}
h3 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
}

.box {
  background: white;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

/* Títulos dentro de box */
.box h3 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #1a1f36;
  margin-bottom: 5px;
}

/* Layout principal */
.dashboard-container {
  display: flex;
  align-items: flex-start; /* Alinha no topo e evita esticar verticalmente */
  gap: 20px;
  padding: 30px;
  margin-top: var(--header-height);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Coluna Esquerda */
.dashboard-sidebar {
  width: 260px;
  flex-shrink: 0; /* Impede que a sidebar diminua */
  padding: 15px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  position: sticky;
  top: var(--header-height);
  align-self: flex-start; /* Garante que ela não cresça junto com a direita */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Conteúdo à direita */
.dashboard-content {
  flex: 1; /* Ocupa o restante do espaço */
  min-width: 0;
}

.badge {
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.badge::before {
  content: "🎮";
  font-size: 16px;
}

/* Cartão de perfil */
.profile-card {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 15px;
  font-size: 0.9rem;
}

.profile-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-card p {
  font-weight: 600;
  margin: 4px 0;
  font-size: 0.88rem;
}

.profile-card button,
.profile-card .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-warning {
  background-color: #ffc107;
  color: black;
}
.btn-warning:hover {
  background-color: #e0a800;
}


/* Contador */
#contasVendidas {
  font-size: 2rem;
  font-weight: bold;
  color: #27ae60;
  text-align: center;
}

/* Conteúdo principal */
.dashboard-content {
  flex: 1;
  min-width: 0;
}

/* Tabela estilizada */
.styled-table {
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  font-size: 0.9rem;
}

/* Estilo para o topo das tabelas */
#tabela-anuncios thead {
  background-color: #ffcc00; /* amarelo para Anúncios */
  color: black;
}

#tabela-desejos thead {
  background-color: #0066cc; /* azul para Lista de Desejos */
  color: white;
}

.badge {
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.badge::before {
  content: "🎮";
  font-size: 16px;
}

.badge.low {
  background-color: #007bff; /* azul */
  color: white;
}

.badge.middle {
  background-color: #ffc107; /* amarelo */
  color: black;
}

.badge.high {
  background-color: #dc3545; /* vermelho */
  color: white;
}


.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
}

.modal-content .form-group {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 45%;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.btn-cancel {
  background-color: #ffc107; /* amarelo */
  color: #000; /* texto preto */
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel:hover {
  background-color: #e0a800;
}


.btn-confirm {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal .close {
  color: red;
  font-weight: bold;
  font-size: 24px;
  cursor: pointer;
}


.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.modal-content button {
  width: 100%;
  background-color: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.modal-content button:hover {
  background-color: #218838;
}


.styled-table th,
.styled-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.styled-table tr:nth-child(even) {
  background: #f9f9f9;
}

.styled-table tr:hover {
  background: #f2f2f2;
}

.styled-table td {
  color: var(--dark-color);
}

.styled-table th {
  text-transform: uppercase;
  font-weight: 700;
}

.styled-table td a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.styled-table td a:hover {
  color: #3a56d4;
}

/* Botões de ações */
.styled-table .actions button {
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.styled-table .actions button:hover {
  background: #45a049;
}

.styled-table .actions .delete-btn {
  background: #e74c3c;
}

.styled-table .actions .delete-btn:hover {
  background: #c0392b;
}

/* Botões personalizados */
.botoes-coluna {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.botao-acao {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.botao-acao.renovar {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.botao-acao.renovar:hover {
  background-color: #219150;
}

.botao-acao.excluir {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.botao-acao.excluir:hover {
  background-color: #c0392b;
}

.botao-acao .emoji {
  font-size: 1rem;
}

/* Título com botão */
.titulo-com-botao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-exportar {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-exportar:hover {
  background-color: #374bcf;
}

/* Estilo base para todos os botões de ação */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  white-space: nowrap;
}

/* Detalhes */
.btn-primary {
  background-color: #4a6bff;
  color: #fff;
}
.btn-primary:hover {
  background-color: #324de2;
}

/* Excluir */
.btn-danger {
  background-color: #e74c3c;
  color: #fff;
}
.btn-danger:hover {
  background-color: #c0392b;
}

/* Vendida */
.btn-success {
  background-color: #27ae60;
  color: #fff;
}
.btn-success:hover {
  background-color: #219150;
}

/* Espaçamento e layout do grupo */
.botoes-acao {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* Cards de produto */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 10px;
}

.card-product {
  width: 48%;
  max-width: 600px;
  background-color: white;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  align-self: flex-start;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  color: white;
}


.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card-text {
  font-size: 0.9rem;
  margin: 0;
}

.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: black;
  margin-top: 0.5rem;
}

.card-body .btn {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.limites-plano {
  margin: 15px 0;
  text-align: left;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.limite-item {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.limite-item span:first-child {
  color: #ccc;
}

.limite-item span:last-child {
  font-weight: bold;
}

/* Responsividade */
@media (max-width: 992px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    flex-basis: 100%;
    position: static;
  }

  .dashboard-content {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .styled-table thead {
    display: none;
  }

  .styled-table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }

  .styled-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 0.8rem;
    border: none;
  }

  .styled-table td::before {
    content: attr(data-label);
    flex: 1;
    font-weight: bold;
    color: var(--dark-color);
  }
}
