
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

html, body {
  height: 100%;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  color: #202124;
  background: #f1f3f4;
  -webkit-font-smoothing: antialiased;
}

/* ── Shell ── */
.dash-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.dash-sidebar {
  width: 220px; min-width: 220px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  display: flex; flex-direction: column;
  padding: 12px 0;
  overflow-y: auto;
  transition: width 0.2s, min-width 0.2s;
  flex-shrink: 0;
}
.dash-sidebar.collapsed { width: 56px; min-width: 56px; }
.dash-sidebar.collapsed .nav-label,
.dash-sidebar.collapsed .sidebar-brand-text,
.dash-sidebar.collapsed .nav-section { display: none; }
.dash-sidebar.collapsed .nav-item { justify-content: center; padding: 10px; border-radius: 50%; margin: 2px 8px; }

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 8px 16px 20px; text-decoration: none; }
.brand-icon { width: 30px; height: 30px; min-width: 30px; background: #0099E8; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.brand-icon svg { width: 16px; height: 16px; }
.sidebar-brand-text { display: flex; flex-direction: column; gap: 0; line-height: 1; }

.nav-section {
  font-family: 'Oxanium', sans-serif;
  font-size: 10px; font-weight: 600; color: #80868b;
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 10px 16px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: #5f6368;
  border-radius: 0 24px 24px 0;
  margin-right: 8px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-item:hover { background: #f1f3f4; color: #202124; text-decoration: none; }
.nav-item.active { background: #E8F0FE; color: #1967D2; font-weight: 500; }
.nav-item svg { width: 17px; height: 17px; min-width: 17px; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge {
  font-family: 'Oxanium', sans-serif;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 8px;
  background: #E6F4EA; color: #137333;
  flex-shrink: 0; letter-spacing: 0.03em;
}
.nav-badge.soon { background: #FEF7E0; color: #A06000; }
.nav-spacer { flex: 1; }
.nav-divider { height: 1px; background: #e0e0e0; margin: 8px 16px; }

/* ── Main ── */
.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* ── Topbar ── */
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
}
.topbar-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  border-radius: 50%; color: #5f6368;
  transition: background 0.12s;
  flex-shrink: 0;
}
.topbar-toggle:hover { background: #f1f3f4; }
.topbar-page-title { font-family: 'Oxanium', sans-serif; font-size: 15px; font-weight: 600; color: #202124; letter-spacing: 0.01em; }
.topbar-divider { width: 1px; height: 24px; background: #e0e0e0; margin: 0 2px; flex-shrink: 0; }
.topbar-chip {
  padding: 4px 10px; border: 1px solid #dadce0;
  border-radius: 14px; font-size: 11px; color: #5f6368;
  white-space: nowrap;
}
.topbar-spacer { flex: 1; }
.topbar-url { font-size: 11px; color: #80868b; white-space: nowrap; }

/* ── Content ── */
.dash-content { flex: 1; overflow-y: auto; padding: 24px; }
.page-title { font-family: 'Oxanium', sans-serif; font-size: 22px; font-weight: 600; color: #202124; margin-bottom: 6px; letter-spacing: 0; }
.page-subtitle { font-size: 13px; color: #5f6368; margin-bottom: 24px; }

/* ── Homepage tool cards ── */
.tools-section-label {
  font-family: 'Oxanium', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #80868b; margin: 0 0 10px;
}
.tools-section-label + .tools-section-label { margin-top: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tool-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.12s;
  cursor: pointer;
}
.tool-card:hover {
  border-color: #b3cef5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  text-decoration: none;
}
.tool-card.disabled { opacity: 0.55; pointer-events: none; }
.tool-card-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: #E8F0FE; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #1A73E8;
}
.tool-card-icon.muted { background: #f1f3f4; color: #80868b; }
.tool-card-icon svg { width: 20px; height: 20px; }
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-name { font-family: 'Oxanium', sans-serif; font-size: 13px; font-weight: 600; color: #202124; letter-spacing: 0.01em; }
.tool-card-desc { font-size: 12px; color: #5f6368; margin-top: 2px; line-height: 1.4; }
.tool-card-badge {
  font-family: 'Oxanium', sans-serif;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 8px;
  background: #E6F4EA; color: #137333;
  flex-shrink: 0; letter-spacing: 0.03em;
}
.tool-card-badge.soon { background: #FEF7E0; color: #A06000; }

/* ── Tool page header ── */
.tool-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 24px;
  flex-shrink: 0;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #80868b; margin-bottom: 6px; }
.breadcrumb a { color: #80868b; text-decoration: none; }
.breadcrumb a:hover { color: #1A73E8; }
.tool-header h1 { font-family: 'Oxanium', sans-serif; font-size: 20px; font-weight: 600; color: #202124; letter-spacing: 0; }
.tool-header p { font-size: 13px; color: #5f6368; margin-top: 3px; }

/* ── Tool content ── */
.tool-body { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash-sidebar { width: 56px; min-width: 56px; }
  .dash-sidebar .nav-label,
  .dash-sidebar .sidebar-brand-text,
  .dash-sidebar .nav-section,
  .dash-sidebar .nav-badge { display: none; }
  .dash-sidebar .nav-item { justify-content: center; padding: 10px; border-radius: 50%; margin: 2px 8px; }
  .topbar-chip { display: none; }
  .topbar-url { display: none; }
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .dash-content { padding: 16px; }
  .tool-body { padding: 16px; }
}
