
/* ===== ESTILOS PARA MODAIS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35); /* 🔹 preto bem mais leve */
  backdrop-filter: blur(3px);            /* 🔹 leve desfoque */
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(to bottom, #1a243a, #0f1725);
  margin: 5% auto;
  padding: 30px;
  border: 3px solid #b8860b;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
  font-family: 'MedievalSharp', cursive;
  color: #ffd700;
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid #b8860b;
  padding-bottom: 12px;
}

.close {
  color: #b8860b;
  float: right;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.close:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  transform: scale(1.1);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-content label {
  color: #ffd700;
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.modal-content input {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #8b4513;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.modal-content input:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.5);
  transform: translateY(-2px);
}

.modal-content input::placeholder {
  color: #a4c2f4;
  opacity: 0.7;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b8860b;
  cursor: pointer;
  font-size: 18px;
}

.toggle-password:hover {
  color: #ffd700;
}

.login-submit, .register-submit {
  background: linear-gradient(to bottom, #b8860b, #996515);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  font-family: 'MedievalSharp', cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.login-submit:hover, .register-submit:hover {
  background: linear-gradient(to bottom, #d4af37, #b8860b);
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(184, 134, 11, 0.4);
}

.login-submit:active, .register-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(184, 134, 11, 0.4);
}

/* Responsividade */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 95%;
    margin: 15% auto;
    padding: 25px 20px;
  }
  
  .modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .close {
    font-size: 28px;
    top: 12px;
    right: 15px;
  }
  
  .modal-content input {
    padding: 12px 14px;
  }
  
  .login-submit, .register-submit {
    padding: 14px;
    font-size: 16px;
  }
}

/* Animações adicionais */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.modal-content {
  animation: slideDown 0.4s ease, pulse 0.5s ease 0.4s;
}
#messageText {
    color: #fff;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Botão OK centralizado */
#messageModal .login-submit {
    display: block;
    margin: 0 auto;
    width: 50%;
}
/* DROPDOWN MENU */
.user-info-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: linear-gradient(45deg, #8b4513, #b8860b);
    color: white;
    border: 2px solid #ffd700;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.user-btn:hover {
    background: linear-gradient(45deg, #b8860b, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.user-sp {
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to bottom, #1a243a, #0f1725);
    border: 2px solid #b8860b;
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2d3748;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-label {
    color: #ffd700;
    font-weight: bold;
    flex: 1;
}

.dropdown-value {
    color: white;
    font-weight: bold;
}

.dropdown-item.link, .logout-link {
    color: #a4c2f4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    font-size: 14px;
}

.dropdown-item.link:hover, .logout-link:hover {
    color: #ffd700;
}

/* Ícones */
.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: #b8860b;
}

/* Responsivo */
@media screen and (max-width: 600px) {
    .user-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        right: -50%;
        min-width: 180px;
    }
}
#charList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.char-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.5);
  padding: 10px 15px;
  border: 1px solid #8b4513;
  border-radius: 6px;
  color: #fff;
}

.char-line button {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: 2px solid #ffd700;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  color: #111;
  transition: 0.3s;
}

.char-line button:hover {
  transform: scale(1.05);
  background: #ffd700;
}
