:root {
  --primary-color: #2c3e50;
  --secondary-color: #1a252f;
  --accent-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #f5f7fa;
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--light-color);
  opacity: 0.8;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: var(--secondary-color);
}

.main-nav a.active {
  background-color: var(--accent-color);
  font-weight: 600;
}

.main-nav i {
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Main Content Styles */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 3rem;
}

.profile-section {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.position {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.institution {
  font-size: 1rem;
  color: var(--text-light);
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
}

.detail-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card p {
  color: var(--text-color);
  line-height: 1.7;
}

.detail-card a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.detail-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 280px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem;
  }
  
  .content {
    margin-left: 0;
    padding: 2rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  footer {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .profile-details {
    grid-template-columns: 1fr;
  }
  
  .content {
    padding: 1.5rem;
  }
}

/* Research Cards - Hover Expand */
.research-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.topic-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  max-height: 150px; /* Altura inicial compacta */
}

.topic-card:hover {
  max-height: 500px; /* Altura expandida */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.topic-summary {
  transition: all 0.3s ease;
}

.topic-card:hover .topic-summary {
  margin-bottom: 1.5rem;
}

.topic-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.topic-card:hover .topic-details {
  opacity: 1;
  max-height: 1000px; /* Valor suficiente para o conteúdo */
}

.topic-card h2 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.topic-summary p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.topic-details p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .topic-card {
    max-height: none; /* Remove o efeito hover em mobile */
  }
  
  .topic-details {
    opacity: 1;
    max-height: none;
  }
  
  .research-topics {
    grid-template-columns: 1fr;
  }
}

.der-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.entity-table {
  border: 2px solid #495057;
  border-radius: 5px;
  overflow: hidden;
  animation: table-highlight 6s infinite;
}

.table-header {
  background: #343a40;
  color: white;
  padding: 5px;
  text-align: center;
  font-weight: bold;
}

.table-row {
  padding: 3px 8px;
  border-top: 1px solid #dee2e6;
  background: white;
  animation: row-fade 3s infinite;
}

.relationship-line {
  width: 30px;
  height: 2px;
  background: #ff6b6b;
  position: relative;
}

.relationship-line::before {
  content: "1";
  position: absolute;
  left: -8px;
  top: -10px;
  background: #ff922b;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
}

.relationship-line::after {
  content: "N";
  position: absolute;
  right: -8px;
  top: -10px;
  background: #20c997;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
}

/* Disposição vertical para as áreas de pesquisa */
.research-section {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* Espaçamento entre os artigos */
}

/* Remove o grid e força os tópicos a ficarem em coluna */
.research-topics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  grid-template-columns: none; /* Remove a definição de grid */
}

/* Garante que os cards ocupem 100% da largura */
.topic-card {
  width: 100%;
  max-width: 100%; /* Remove restrições de largura */
}

@keyframes table-highlight {
  0%, 100% { transform: translateY(0); border-color: #495057; }
  50% { transform: translateY(-5px); border-color: #4dabf7; }
}

@keyframes row-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; background: #f8f9fa; }
}

