@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.home-page {
  min-height: 100vh;
  background: #f8fafc;
  font-family: 'Poppins', sans-serif;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-logo {
  margin-bottom: 40px;
}

.home-logo img {
  height: 48px;
}

.home-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.home-subtitle {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 48px;
  text-align: center;
}

.home-grid {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-section-title {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-left: 4px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #0f172a;
}

.home-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-card-icon .material-icons {
  font-size: 22px;
  color: #fff;
}

.home-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-card-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Cores por setor */
.home-card-icon--lab { background: linear-gradient(135deg, #226cc9, #177d95); }
.home-card-icon--comercial { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.home-card-icon--financeiro { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.home-card-icon--estoque { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.home-card-icon--compras { background: linear-gradient(135deg, #16a34a, #2e9d32); }
.home-card-icon--logistica { background: linear-gradient(135deg, #d97706, #f59e0b); }
.home-card-icon--field { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.home-card-icon--outros { background: linear-gradient(135deg, #475569, #64748b); }

.home-card:hover .home-card-icon--lab { box-shadow: 0 4px 12px rgba(34, 108, 201, 0.4); }
.home-card:hover .home-card-icon--comercial { box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }
.home-card:hover .home-card-icon--financeiro { box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4); }
.home-card:hover .home-card-icon--estoque { box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4); }
.home-card:hover .home-card-icon--compras { box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4); }
.home-card:hover .home-card-icon--logistica { box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4); }
.home-card:hover .home-card-icon--field { box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4); }
.home-card:hover .home-card-icon--outros { box-shadow: 0 4px 12px rgba(71, 85, 105, 0.4); }

@media (max-width: 768px) {
  .home-cards {
    grid-template-columns: 1fr;
  }
  .home-title {
    font-size: 22px;
  }
  .home-page {
    padding: 24px 16px;
  }
}
