*::-webkit-scrollbar {
  display: none;
}

/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* Links de navegação */
.nav-links {
  margin-bottom: 30px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #ccc;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background-color: #333;
  color: #fff;
  transform: translateX(5px);
}

.nav-link.active {
  background-color: #555;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link i {
  font-size: 1.2em;
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.nav-link::before {
  content: attr(data-text);
  position: absolute;
  left: 50px;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Subitens dinâmicos */
.sidebar-subitems {
  border-top: 1px solid #444;
  padding-top: 20px;
}

.subitem-section {
  margin-bottom: 25px;
}

.subitem-title {
  color: #aaa;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 5px;
}

.subitem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subitem-card {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.subitem-card:hover {
  background-color: #333;
  border-color: #555;
  transform: translateX(3px);
}

.subitem-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid #444;
}

.subitem-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #ccc;
  font-size: 0.9em;
}

.subitem-info {
  flex: 1;
  min-width: 0;
}

.subitem-name {
  font-size: 0.9em;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subitem-role,
.subitem-status {
  font-size: 0.75em;
  color: #aaa;
}

.status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: #555;
  color: #fff;
}

.status-badge.completed {
  background-color: #666;
  color: #fff;
}

.status-badge.archived {
  background-color: #444;
  color: #ccc;
}

.subitem-more {
  text-align: center;
  padding: 8px;
  color: #888;
  font-size: 0.8em;
  font-style: italic;
}

/* Conteúdo principal */
.main-content {
  margin-left: 280px;
  padding: 30px;
  min-height: 100vh;
}

/* Botão de toggle para mobile */
.sidebar-toggle {
  display: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .sidebar-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 100%;
    max-width: 300px;
  }
  
  .main-content {
    padding: 15px;
  }
}

/* Seções gerais */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 15px;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.2em;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.project-card,
.developer-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.project-card:hover,
.developer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 3px solid #e9ecef;
}

.card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.card-subtitle {
  color: #666;
  font-size: 0.9em;
}

.card-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  background-color: #f8f9fa;
  color: #666;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  border: 1px solid #e9ecef;
}

.card-links {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #333;
  color: #fff;
}

.btn-primary:hover {
  background-color: #555;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: #333;
  border: 1px solid #333;
}

.btn-outline:hover {
  background-color: #333;
  color: #fff;
}

/* Estatísticas */
.stats-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.stat-number {
  font-size: 2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Formulário de contato */
.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Utilitários */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Loading states */
.loading {
  pointer-events: none;
}

/* Focus states para acessibilidade */
.nav-link:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* Página individual do desenvolvedor */
.developer-profile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.developer-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.developer-avatar img {
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.developer-avatar img:hover {
  transform: scale(1.05);
}

.availability-badge {
  margin: 15px 0;
}

.specialties-container,
.skills-container,
.projects-container,
.languages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.contact-info h6 {
  color: #495057;
  margin-bottom: 10px;
}

.contact-info p {
  margin-bottom: 5px;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Breadcrumb personalizado */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 30px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Página 404 */
.error-page {
  padding: 60px 0;
}

.error-page .display-1 {
  font-size: 8rem;
  font-weight: 300;
  color: #dee2e6;
  margin-bottom: 20px;
}

.error-actions {
  margin: 40px 0;
}

.available-pages {
  margin-top: 20px;
}

.available-pages .btn {
  margin: 5px;
}

/* Botão Voltar */
.back-button-container {
  position: fixed;
  top: 100px;
  left: 300px;
  z-index: 100;
  transition: all 0.3s ease;
}

.back-button-container .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button-container .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animações dos badges */
.badge.animate__animated {
  animation-duration: 0.6s;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Responsividade para o botão voltar */
@media (max-width: 768px) {
  .back-button-container {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 20px;
    text-align: center;
  }
}
