body {
  margin: 0;
  font-family: sans-serif;
  background: #f4f6fb;
}

/* LOGIN */
/* FUNDO TECH */
#login {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* CAIXA */
.login-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 15px;
  width: 300px;
  text-align: center;
  color: white;
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
}

/* TÍTULO */
.login-box h1 {
  margin-bottom: 10px;
}

.login-box p {
  font-size: 14px;
  color: #ccc;
}

/* INPUT MODERNO */
.input-group {
  position: relative;
  margin: 30px 0;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 2px solid #aaa;
  color: white;
  font-size: 16px;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #aaa;
  transition: 0.3s;
}

/* ANIMAÇÃO INPUT */
.input-group input:focus + label,
.input-group input:valid + label {
  top: -10px;
  font-size: 12px;
  color: #6C63FF;
}

/* BOTÃO */
.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(45deg,#6C63FF,#FF6584);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.login-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #6C63FF;
}


/* ERRO */
#erro {
  display: block;
  margin-top: 15px;
  color: #ff6b6b;
  font-size: 14px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: linear-gradient(45deg, #6C63FF, #FF6584);
  color: white;
  font-size: 18px;

  cursor: pointer;
  display: none; /* começa escondido */

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: linear-gradient(45deg, #6C63FF, #FF6584);
  color: white;
  font-size: 18px;

  cursor: pointer;
  display: none;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;

  z-index: 9999; /* 🔥 ISSO RESOLVE O PROBLEMA */
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}


/* APP */
.hidden {
  display: none;
}

header {
  background: linear-gradient(45deg,#6C63FF,#FF6584);
  color: white;
  padding: 30px;
  text-align: center;
}
.user-name {
  margin-top: 10px;
  font-size: 14px;
  color: #FFD700;
  font-weight: bold;
}

.header-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.logout-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #cc0000;
}

nav {
  display: flex;
  justify-content: space-around;
  background: #222;
}

nav a {
  color: white;
  padding: 15px;
  text-decoration: none;
}

section {
  padding: 20px;
}

.card {
  background: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 10px;
}

.btn {
  background: #6C63FF;
  color: white;
  padding: 10px;
  display: inline-block;
  border-radius: 8px;
}

.material-card {
  padding: 20px;
}

.material-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  background: #6C63FF;
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.material-desc {
  font-size: 14px;
  color: #555;
  margin: 10px 0 15px;
}

/* BOTÕES */
.material-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(45deg,#6C63FF,#FF6584);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-secondary {
  background: #eee;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
}





/* ANIMAÇÃO DOS CARDS */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* BOTÃO CLIQUE */
.clicked {
  transform: scale(0.95);
}

/* DESTAQUE AULA DO DIA */
.highlight-today {
  border: 2px solid #6C63FF;
  box-shadow: 0 0 15px rgba(108,99,255,0.5);
}

/* TEMA ESCURO */
body.dark {
  background: #121212;
  color: white;
}

body.dark .card {
  background: #1e1e1e;
}

body.dark nav {
  background: #000;
}

#mural h3 {
  margin-top: 30px;
  color: #6C63FF;
}

.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.mural-item {
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  transition: 0.3s;
}

.mural-item:hover {
  transform: scale(1.03);
}

.img-frame {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.mural-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.mural-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mural-item img,
.mural-item video {
  width: 100%;
  display: block;
}

.mural-item p {
  padding: 10px;
  font-size: 14px;
}

.footer {
  background: #111;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content a {
  color: #6C63FF;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}


.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6C63FF;
  text-decoration: none;
  margin-top: 10px;
}

.social-link:hover {
  color: #FF6584;
}

/* MOBILE */
@media (max-width:600px){
  nav {
    flex-direction: column;
  }
}


/* COMENTÁRIOS */
textarea {
  width: 100%;
  height: 80px;
}

#lista-comentarios {
  margin-top: 20px;
}