/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}
  /* Dark Mode Styles */
  body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
  }
  
#home header {
  display: flex;
  background-color: #24292e;
  color: white;
  overflow: hidden;
  padding: 10px 20px;
  font-size: 24px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
  /* Dark Mode Header */
  body.dark-mode #home header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
#home header h2 {
  margin: 0;
  align-self: center;
  margin-left: auto;
}
body.dark-mode #home header h2 {
  color: #fff;
  /* margin-right: auto; */
  font-weight: 600;
  background: linear-gradient(45deg, #FFD700, #FF8C00);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#home header #Downloads {
  margin: 0;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, 0.612);
  margin-left: 10%;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.3s ease;
}
  
body.dark-mode #home header #Downloads {
  background-color: rgba(255, 255, 255, 0.2);
}



#home header #Downloads:hover {
  margin-left: auto;
  background-color: rgb(255, 254, 254);
}
body.dark-mode #home header #Downloads:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode #home  header #Downloads svg {
  stroke: #fff;
}

#home header #profile-button {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}
body.dark-mode #home header #profile-button {
  border: 2px solid rgba(255, 255, 255, 0.15);
}

#home header #profile-button:hover {
  background-color: rgb(255, 254, 254);
  transform: scale(1.1);
}
  
body.dark-mode #home header #profile-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

#profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#home .container {
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
body.dark-mode #home .container {
  background: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#home ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#home li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px;
  border-bottom: 1px solid #e0e0e0;
}
 
body.dark-mode #home li {
  border-bottom: 1px solid #333;
}
#home li:last-child {
  border-bottom: none;
}
#home li:hover {
  background-color: #f9f9f9;
}
body.dark-mode #home li:hover {
  background-color: #2a2a2a;
}
#home .user-info {
  display: flex;
  align-items: center;
}
#home .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #d1d1d1;
  margin-right: 10px;
}
  
body.dark-mode #home .avatar {
  background-color: #444;
}
#home .username {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-transform: capitalize;
}
  
body.dark-mode #home .username {
  color: #e0e0e0;
}
#home .message-preview {
  color: #666;
  font-size: 14px;
}
body.dark-mode #home .message-preview {
  color: #aaa;
}
#home .time {
  font-size: 12px;
  color: #999;
}
body.dark-mode #home .time {
  color: #777;
}
#home #add {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #8f8f8f;
  background-color: #44ff44;
  box-shadow: 0 4px 15px rgba(0, 255, 98, 0.353);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode #home #add {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C00, #FFD700);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 5;
}
#add:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(38, 255, 0, 0.6);
}
body.dark-mode  #add:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}
#home .noview {
  position: relative;
  height: 15px;
  /* background: rgba(100 100 100 100); */
  border: 1px solid black;
  background-color: var(--color1);
  height: 30px;
  width: 30px;
  left: 0;
  border-radius: 50%;
  animation: noview_aniamtion 2s infinite linear;
}
body.dark-mode #home .noview {
  border: 1px solid #555;
}
#home #popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(5px);
}
#home #popup.active {
  display: flex;
}

#home #new-contact {
  /* display: none; */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
body.dark-mode #home #new-contact {
  background-color: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
#home #new-contact label {
  display: block;
  margin-bottom: 10px;
}
body.dark-mode #home #new-contact label {
  color: #e0e0e0;
}
#home #new-contact input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
body.dark-mode #home #new-contact input {
  background-color: #333;
  border-color: #444;
  color: #e0e0e0;
}

#home #new-contact input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
body.dark-mode #home #new-contact input:focus {
  border-color: #2d9c2d;
  box-shadow: 0 0 5px rgba(45, 156, 45, 0.5);
}

#home #new-contact #submit {
  width: 100%;
  padding: 15px;
  background-color: #60b263;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
body.dark-mode #home #new-contact #submit {
  background-color: #2d9c2d;
}
#home #new-contact #submit:hover {
  background-color: #45a049;
}
body.dark-mode #home #new-contact #submit:hover {
  background-color: #237023;
}





#home #new-contact #exit {
  position: relative;
  left: 80%;
  border: none;
  width: 60px;
  align-self: center;
  background-color: red;
  border-radius: 50%;
   cursor: pointer;
   transition: color 0.3s ease;
   color: #888;
}

body.dark-mode #home #new-contact #exit {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #aaa;
  width: 24px;
  height: 24px;
  transition: color 0.3s ease;
  /* background-color: #8b0000; */
}

#exit svg {
  width: 50px;
  height: auto; /* Mantém a proporção */
  color: rgb(255, 255, 255);
}
body.dark-mode #home #new-contact #exit {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #aaa;
  width: 24px;
  height: 24px;
  transition: color 0.3s ease;
}
#exit:hover {
  color: #fff;
}
body.dark-mode #home #new-contact #submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #FF8C00, #FFD700);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}


body.dark-mode #home label {
  display: block;
  margin-bottom: 8px;
  color: #ddd;
  font-size: 14px;
}


body.dark-mode #new-contact input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-size: 16px;
  transition: border-color 0.3s ease;
}
body.dark-mode #home #new-contact input::placeholder {
  color: #777;
}
body.dark-mode #home #new-contact input:focus {
  outline: none;
  border-color: #FFD700;
}
body.dark-mode #home #new-contact #submit:hover {
  transform: translateY(-2px);
}


@media screen and (max-width: 768px) {
  #home header {
    max-height: 80px;
  }
}


@property --color1 {
 syntax: '<color>'; 
 inherits: false; 
 initial-value: #37a437 ;
}
@property --color2 {
  syntax: '<color>';
  inherits: false;
  initial-value: white ;
}
@property --color3 {
  syntax: '<color>';
  inherits: false;
  initial-value: #aeeeae ;
}


body.dark-mode {
  --color1: #2d9c2d;
  --color2: #333;
  --color3: #1e5e1e;
}
@keyframes noview_aniamtion {
  0% {
    background-color: var(--color1);
    transform: scale(1);
  }
  50% {
    transform: scale(1);
    background-color: var(--color2);

  }
  100% {
    background-color:var(--color3);
    transform: scale(1);
  }
}
/* Animação para o popup */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#new-contact {
  animation: fadeIn 0.3s ease;
}

/* Estilo de scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 0, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 140, 0, 0.8);
}

















