body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
}

header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.search-bar {
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.search-bar input {
  width: 100%;
  max-width: 600px;
  padding: 0.7rem;
  font-size: 1rem;
  border: 2px solid #cce5cc;
  border-radius: 5px;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 2rem;
}

.app-card {
  flex: 0 0 calc(20% - 1.2rem); /* 5 por linha */
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-logo {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.gray { background: #eee; color: #000; }
.orange { background: #ffcc99; color: #d96f00; }
.greenblue { background: #e1f5e7; color: #00aa88; }
.dark { background: #f3f3f3; color: #111; }

.app-info {
  padding: 1rem;
}

.app-info h3 {
  margin: 0 0 0.5rem;
}

.category {
  font-size: 0.9rem;
  color: #777;
}

.status {
  font-size: 0.85rem;
  color: #28a745;
}

.access-button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: white;
  text-align: center;
  padding: 0.7rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  font-weight: bold;
}

.app-card:hover .access-button {
  opacity: 1;
}

/* Responsivo */
@media (max-width: 1200px) {
  .app-card {
    flex: 0 0 calc(25% - 1.2rem); /* 4 por linha */
  }
}

@media (max-width: 992px) {
  .app-card {
    flex: 0 0 calc(33.33% - 1.2rem); /* 3 por linha */
  }
}

@media (max-width: 768px) {
  .app-card {
    flex: 0 0 calc(50% - 1.2rem); /* 2 por linha */
  }
}

@media (max-width: 480px) {
  .app-card {
    flex: 0 0 100%; /* 1 por linha */
  }
}
