/* Reset geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
}

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #e0e0e0;
  color: #333;
  transition: background-color 0.5s, color 0.5s;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.profile-card {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 350px;
  transition: background-color 0.5s, color 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-card h1 {
  font-size: 2.5em;
  background: linear-gradient(135deg, #003366, #2491ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-card p {
  color: #333; /* Cor preta no modo claro */
}

#profile-card-wrap {
  display: flex;
  justify-content: space-between;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  margin: 5px 0;
}

.links a {
  text-decoration: none;
  color: #333;
  background-color: #d0d0d0;
  padding: 10px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 100px;
  text-align: center;
  width: 200px;
  margin: 10px 0px 20px 0px;
  transition: background-color 0.3s;
}

.links a:hover {
  background-color: #b0b0b0;
}

.icon-container {
  position: absolute;
  left: 0px;
  width: 50px;
  height: 50px;
  background-color: #000000; /* Preto no modo claro */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.icon-container img {
  width: 24px;
  height: 24px;
  filter: invert(1); /* Branco no modo claro */
}

/* Estilo do toggle */
.toggle-container {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

#toggle-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #444;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Modo Escuro */
.dark-mode {
  background-color: #222222;
  color: #f5f5f5;
}

.dark-mode .profile-card {
  background-color: #2e2e2e;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
}

.dark-mode .profile-card p {
  color: #f5f5f5; /* Cor branca no modo escuro */
}

.dark-mode .links a {
  background-color: #222222;
  color: #f5f5f5;
}

.dark-mode .icon-container {
  background-color: #ffffff; /* Branco no modo escuro */
}

.dark-mode .icon-container img {
  filter: invert(0); /* Preto no modo escuro */
}

.dark-mode #toggle-text {
  color: #f5f5f5;
}

.dark-mode .links a:hover {
  background-color: #333333; /* Efeito de hover no modo escuro */
}
