/* Apps Page Styles */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color, #1a56db);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.75;
}

.apps-section {
  padding-top: 1.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.app-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.app-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1a56db 0%, #0e3fa3 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.app-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.tag-ai {
  background: #ede9fe;
  color: #5b21b6;
}

.tag-finance {
  background: #dcfce7;
  color: #166534;
}

.tag-education {
  background: #dbeafe;
  color: #1e40af;
}

.tag-statistics {
  background: #fef9c3;
  color: #92400e;
}

.app-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.6rem;
}

.app-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-features li {
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.app-features li i {
  color: #16a34a;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.app-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.app-card-footer .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}