/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #0b1120;
  color: #f8fafc;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b1120; 
}
::-webkit-scrollbar-thumb {
  background: #1e293b; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155; 
}

/* LAYOUT PRINCIPAL */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  background-color: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
}

.perfil-img {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.sidebar-header h2 {
  font-size: 1.3rem;
  color: #f8fafc;
  font-weight: 700;
}

.sidebar-header p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.redes-sociais {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.redes-sociais a {
  color: #94a3b8;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.redes-sociais a:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

.sidebar-filters h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 20px;
}

.filtros-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-filtro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  width: 100%;
}

.btn-filtro:hover {
  background-color: #1e293b;
  color: #e2e8f0;
}

/* O emblema de contagem numérico (Badge) */
.filtro-badge {
  background-color: rgba(255, 255, 255, 0.05);
  color: #64748b;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-filtro:hover .filtro-badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Estado ativo (clicado) do filtro */
.btn-filtro.ativo {
  background-color: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.2);
  font-weight: 600;
}

.btn-filtro.ativo .filtro-badge {
  background-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* ÁREA PRINCIPAL */
.content-area {
  padding: 50px 60px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-text h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.header-text p {
  color: #94a3b8;
}

/* BARRA DE BUSCA */
.search-box {
  display: flex;
  align-items: center;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 50px;
  padding: 12px 20px;
  width: 300px;
  transition: border-color 0.3s;
}

.search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.search-box i {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-right: 10px;
}

.search-box input {
  background: transparent;
  border: none;
  color: #f8fafc;
  width: 100%;
  outline: none;
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: #64748b;
}

/* ANIMAÇÃO DE ENTRADA (FADE UP) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GRADE DE CARTÕES */
.grid-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.card-template {
  background-color: #1e293b;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.6s ease backwards; 
}

.card-template:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-img-wrapper {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.card-template:hover .card-img {
  transform: scale(1.08);
}

.card-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-info h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-info p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.6;
}

.tags-container {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tag {
  background-color: rgba(255,255,255,0.03);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-acessar {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-acessar:hover {
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* EMPTY STATE */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
  animation: fadeUp 0.5s ease;
}

.empty-state i {
  font-size: 4rem;
  color: #334155;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* RESPONSIVO */
@media (max-width: 950px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
  }

  .filtros-lista {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box {
    width: 100%;
  }
}

.perfil-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden; /* Garante que a imagem respeite as bordas arredondadas */
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
  border: 2px solid #38bdf8;
}

.foto-usuario {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta a foto preenchendo o espaço sem distorcer */
}

/* --- BOTÃO DE VOLTAR --- */
.btn-voltar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.btn-voltar i {
  font-size: 1.2rem;
}

.btn-voltar:hover {
  color: #38bdf8;
  transform: translateX(-5px);
}