/* Fonte moderna e reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Corpo */
body {
  background-color: #f2f4f7;
  color: #333;
  line-height: 1.6;
}

/* Header e Footer */
header {
  background: #ffffff;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

footer {
  text-align: center;
  color: #888;
  font-size: 13px;
  padding: 30px 10px 10px 10px;
  border-top: 1px solid #e5e7eb;
}

/* Main */
main {
  background-color: #fff;
  width: 85%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 50px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  main {
    width: 95%;
    padding: 25px 20px;
  }
}

/* Títulos */
h1, h2, h3 {
  color: #213744;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Links */
a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #15803d;
  text-decoration: underline;
}

/* Botões */
button, .btn {
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background-color: #16a34a;
  color: #fff;
}

a.btn-primary:hover, .btn-primary:hover {
  background-color: #15803d;
  color: #fff;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #d1d5db;
  color: #111827;
}

/* Formulários */
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  border-color: #16a34a;
  outline: none;
}

/* Estilo de destaque e mensagens */
.highlight {
  background-color: #dcfce7;
  color: #166534;
  padding: 14px;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  margin-bottom: 20px;
}

.error-message {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
}

table, th, td {
  border: 1px solid #e5e7eb;
}

th, td {
  padding: 14px;
}

th {
  background-color: #16a34a;
  color: #fff;
}

/* USER CARD */
.user-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.user-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.user-info {
  flex: 1;
  font-size: 0.8rem;
  color: #374151;
}

.user-info p {
  margin: 0px 0;
}

/* GRID DE APLICAÇÕES */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 25px;
  align-items: stretch; /* <- importante para esticar todas as células */
}

.card {
  background-color: #16a34a;
  color: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* garante topo alinhado */
  height: 100%;                /* força altura igual no grid */
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, background-color 0.3s, color 0.3s;
}

.card i {
  margin-bottom: 15px;
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.card:hover {
  background-color: #f0fdf4;
  color: #14532d;
  transform: translateY(-4px);
  text-decoration: none;
  cursor: pointer;
}