:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --primary: #2563eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --radius: 16px;
}

/* Dark mode support out of the box */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 600px;
}

.header {
  margin-bottom: 24px;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsive Grid with fixed min-size for touch targets */
.pwa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

/* Interactive Card Styling */
.pwa-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(150, 150, 150, 0.1);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  
  /* Reset default button styles */
  outline: none;
  color: inherit;
  font: inherit;
  width: 100%;
}

/* Hover, Active, and Focus States for UX */
.pwa-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pwa-card:active {
  transform: translateY(0) scale(0.97);
}

.pwa-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Icon Container */
.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  font-style: normal;
  font-size: 1.5rem;
}

.imageIcon{
  height: 48px;
  width: auto;
}

/* Typography */
.pwa-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
}