/* StitchX Velo — shared dashboard styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  background: linear-gradient(to bottom, #f8faff, #e8eeff);
  background-attachment: fixed;
  color: #1a1a2e;
  min-height: 100vh;
}

.stripe-bar {
  height: 5px;
  background: linear-gradient(to right, #0066CC 0%, #00D4FF 100%);
}

/* ---- Header ---- */
header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.logo-area { display: flex; align-items: center; gap: 14px; }

.logo-stripe {
  width: 6px;
  height: 44px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #0066CC 0%, #00D4FF 100%);
}

header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.6px;
}

header h1 span { color: #0066CC; }

/* ---- Nav buttons ---- */
.nav-btn {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: #2d3a4e;
  color: #fff;
  border: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-btn:hover { background: #3d4e66; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,102,204,0.3); }

/* ---- Hamburger menu ---- */
.menu-container { position: relative; }

.menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 6px 0;
  z-index: 200;
}

.menu-dropdown.open { display: block; }

.menu-item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  text-transform: none;
  letter-spacing: normal;
}

.menu-item:hover { background: #eef4ff; color: #0066CC; }
.menu-item.active { color: #0066CC; }

.menu-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 4px 0;
}

/* ---- Org badge ---- */
.org-badge {
  display: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f0fe;
  color: #1a56db;
  white-space: nowrap;
}

/* ---- Page header ---- */
.page-header {
  padding: 24px 36px 0;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

.page-header p {
  font-size: 13px;
  color: #8892a4;
  margin-top: 4px;
}

.page-sep {
  color: #c0c8d4;
  font-weight: 400;
  margin: 0 4px;
}

.page-link {
  font-size: 14px;
  font-weight: 600;
  color: #0066CC;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.page-link:hover { color: #004a99; }

/* ---- Common UI ---- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-frame { background: #e8f0fe; color: #1a56db; }
.badge-fork  { background: #def7ec; color: #03724a; }
.badge-other { background: #fde8e8; color: #c0001a; }
.badge-pass  { background: #def7ec; color: #03724a; }
.badge-fail  { background: #fde8e8; color: #c0001a; }

.loading { text-align: center; padding: 80px; color: #8892a4; }

.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid rgba(0,0,0,0.06);
  border-top-color: #0066CC;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 14px;
}

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

/* ---- Responsive ---- */
@media (max-width: 600px) {
  header { padding: 12px 16px; }
  header h1 { font-size: 18px; }
  header img { height: 32px; }
  .logo-area { gap: 10px; }
  .page-header { padding: 16px 16px 0; }
}
