/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ANIMAÇÕES GLOBAIS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.1); }
}

/* BODY & CONTAINER PRINCIPAL */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #160E2E;
  color: #E8DCF8;
  min-height: 100vh;
  animation: fadeInUp .8s ease-out;
  padding: 40px 20px;
}
.container {
  max-width: 1100px;
  margin: auto;
  background: rgba(22,14,46,0.85);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out both;
  text-align: center;
}

/* TITULOS */
h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: #D3BFF6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #B9A3E3;
  animation: fadeInUp 1.1s ease-out both;
}

/* GRID DE BOTÕES/CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* ESTILO GERAL DO CARD/BOTÃO */
.btn-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 14px;
  text-decoration: none;
  color: #FFF;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  animation: fadeInUp 1.2s ease-out both;
}
.btn-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0,0,0,0.8);
}

/* ÍCONE DO CARD */
.btn-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* TEXTO DO CARD */
.btn-text h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: #E8DCF8;
}
.btn-text p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* DEGRADÊS ROXOS POR TIPO */
.btn-purple {
  background: linear-gradient(135deg, #5E35B1, #8E24AA);
}
.btn-blue {
  background: linear-gradient(135deg, #512DA8, #7E57C2);
}
.btn-green {
  background: linear-gradient(135deg, #4527A0, #6A1B9A);
}
.btn-red {
  background: linear-gradient(135deg, #6A1B9A, #8E24AA);
}

/* BOTÃO DE LOGOUT */
.btn-logout {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  background: #311B92;
  color: #E8DCF8;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  transition: background .3s, transform .2s;
  animation: fadeInUp 1.4s ease-out both;
}
.btn-logout:hover {
  background: #4527A0;
  transform: translateY(-3px);
}

/* FORMULÁRIOS (common for filters/pages) */
form {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  margin-bottom: 32px;
  animation: fadeInUp 1.3s ease-out both;
}
form label {
  display: block;
  margin: 12px 0 6px;
  color: #C4A7E7;
  font-weight: 500;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: #E8DCF8;
  transition: border .3s, box-shadow .3s;
}
form input:focus,
form select:focus {
  outline: none;
  border-color: #AB47BC;
  box-shadow: 0 0 12px rgba(171,71,188,0.6);
}

/* BOTÕES GERAIS */
button, .btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  background: #7E57C2;
  color: #FFF;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  transition: background .3s, transform .2s, box-shadow .3s;
}
button:hover, .btn:hover {
  background: #9C27B0;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.75);
}

/* TABELAS */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  animation: fadeInUp 1.4s ease-out both;
}
th, td {
  padding: 14px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: left;
  color: #E8DCF8;
}
th {
  background: #6A1B9A;
  text-transform: uppercase;
}
tr:nth-child(even) { background: rgba(255,255,255,0.07); }
tr:hover { background: rgba(255,255,255,0.15); }

/* LINKS DE AÇÃO */
.action {
  color: #CE93D8;
  font-weight: 500;
  text-decoration: none;
  transition: color .3s;
}
.action:hover { color: #FFF; }

/* ALERTAS */
.alert, .success {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  animation: fadeInUp .8s ease-out both;
}
.alert   { background: #D32F2F; }
.success { background: #388E3C; }

/* RESPONSIVO */
@media(max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
  .btn-card { flex-direction: column; text-align: center; }
  .btn-icon { margin-top: 8px; }
  button, .btn, .btn-logout { width: 100%; }
}
