/* =====================================================
   COMMON STYLES — shared across all pages
   ===================================================== */

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background: #eef2f7;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(66,165,245,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(38,166,154,0.08) 0%, transparent 60%);
}

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

h1 {
  color: #333;
  margin-bottom: 5px;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
}

.nav-link {
  color: #2196F3;
  text-decoration: none;
  margin-bottom: 20px;
  display: inline-block;
}
.nav-link:hover {
  text-decoration: underline;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card h2 {
  margin-top: 0;
  color: #333;
  font-size: 18px;
}

.hidden {
  display: none !important;
}

/* Loading spinner (shared by viewer, assets) */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: #2196F3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
