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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  color: white;
  margin-bottom: 50px;
  padding: 40px 20px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

.loading {
  text-align: center;
  color: white;
  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  text-align: center;
  color: white;
  padding: 40px 20px;
  background: rgba(255, 0, 0, 0.2);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.no-apps {
  text-align: center;
  color: white;
  padding: 40px 20px;
  font-size: 1.2rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.app-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.app-card:hover::before {
  transform: scaleX(1);
}

.app-icon {
  font-size: 3rem;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-radius: 12px;
}

.app-content {
  flex: 1;
}

.app-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.app-description {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.5;
}

.app-arrow {
  font-size: 1.5rem;
  color: #667eea;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.app-card:hover .app-arrow {
  transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-card {
    padding: 20px;
  }

  .app-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
  }

  .app-name {
    font-size: 1.2rem;
  }

  .app-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .header {
    padding: 20px 10px;
    margin-bottom: 30px;
  }

  .app-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .app-arrow {
    transform: rotate(90deg);
  }

  .app-card:hover .app-arrow {
    transform: rotate(90deg) translateX(5px);
  }
}
