.dashboard {
  min-height: 100vh;
  background: url('../background-internal.jpg') center/cover no-repeat fixed;
  position: relative;
}

.dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);  /* REDUZI DE 0.85 PARA 0.4 */
  z-index: 0;
}

.dashboard-header {
  background: rgba(255, 255, 255, 0.95);  /* MAIS OPACO */
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #10b981;
  padding: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
}

.logout-button {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

.dashboard-main {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.welcome-section {
  background: rgba(255, 255, 255, 0.92);  /* MAIS OPACO */
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid #10b981;
}

.welcome-section h2 {
  margin: 0 0 1rem 0;
  color: #059669;
  font-size: 1.75rem;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.92);  /* MAIS OPACO */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

.stat-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #059669;
  margin: 0.25rem 0;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.main-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: rgba(255, 255, 255, 0.92);  /* MAIS OPACO */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

.area-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #059669;
}

.area-card p {
  color: #64748b;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.area-button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.area-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stats-grid,
  .main-areas {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    padding: 0 1rem;
  }
}

.admin-button {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}
