/* 
   EveryStep Community Support - Developer Specification Dashboard Styling
   Author: Antigravity Code Assistant
   Date: 25 June 2026
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Guidelines Colors */
  --color-primary: #1D3B8B;
  --color-primary-light: rgba(29, 59, 139, 0.06);
  --color-secondary: #0CB8C8;
  --color-accent: #5E2CA5;
  
  /* Light Trauma-Informed Palette */
  --color-bg-sidebar: #ffffff;
  --color-bg-content: #FAF8F5; /* Neutral Alabaster */
  --color-bg-card: #ffffff;
  --color-border: rgba(29, 59, 139, 0.08);
  
  --color-text-header: #1E1B3A;
  --color-text-body: #2E2D4D;
  --color-text-muted: #757494;
  --color-code-bg: #F6F4F0;
  --color-white: #ffffff;

  /* Shadows & Layouts */
  --shadow-glow: 0 4px 20px rgba(12, 184, 200, 0.15);
  --shadow-card: 0 8px 30px rgba(29, 59, 139, 0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg-content);
  color: var(--color-text-body);
  line-height: 1.6;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-text-header);
  line-height: 1.3;
}

/* Global Link Reset (Remove default decorations) */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal), opacity var(--transition-normal);
}

/* Split-Pane Shell Setup */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  padding: 60px 80px;
  max-width: calc(100vw - var(--sidebar-width));
}

/* Sidebar Logo & Menu */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--color-white);
  font-size: 16px;
}

.logo-label {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-header);
}

.logo-subtitle {
  font-size: 10px;
  color: var(--color-secondary);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-normal);
}

.menu-item a:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.menu-item.active a {
  color: var(--color-white);
  background-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(29, 59, 139, 0.15);
}

/* Sections Structure */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 800px;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.data-table th, .data-table td {
  padding: 16px 20px;
  text-align: left;
}

.data-table th {
  background-color: rgba(29, 59, 139, 0.03); /* Soft warm primary tint */
  color: var(--color-text-header);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.data-table td {
  border-bottom: 1px solid rgba(29, 59, 139, 0.04);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-key {
  font-weight: 600;
  color: var(--color-text-header);
  width: 30%;
}

/* Clipboard Button Component */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FAF8F5;
  border: 1px solid rgba(29, 59, 139, 0.15);
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-normal);
}

.btn-copy:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Swatch Color Cards */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.swatch-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
  cursor: pointer;
}

.swatch-card:hover {
  transform: translateY(-4px);
}

.swatch-preview {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
}

.swatch-copy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 59, 139, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.swatch-card:hover .swatch-copy-overlay {
  opacity: 1;
}

.swatch-details {
  padding: 16px 20px;
}

.swatch-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-header);
  margin-bottom: 4px;
}

.swatch-hex {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Code Blocks & JSON Explorer */
.code-container {
  margin-top: 24px;
  background-color: var(--color-code-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(29, 59, 139, 0.03);
  padding: 12px 24px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-header);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.code-block {
  padding: 24px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 13.5px;
  color: var(--color-text-body);
  white-space: pre;
}

/* Grid Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.matrix-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.matrix-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.matrix-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(12, 184, 200, 0.1);
  border-radius: 50%;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.matrix-card h3 {
  font-size: 20px;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13.5px;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.matrix-list li i {
  color: var(--color-secondary);
  margin-top: 4px;
}

/* Toast alert notification styling */
.toast-msg {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--color-secondary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Visual Sitemap Diagram */
.sitemap-visual {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 32px;
  font-family: 'Fira Code', monospace;
  font-size: 13.5px;
}

.sitemap-dir {
  color: var(--color-primary);
  font-weight: 600;
}

.sitemap-file {
  color: var(--color-text-muted);
}

.sitemap-indent {
  color: rgba(29, 59, 139, 0.2);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  :root {
    --sidebar-width: 80px;
  }
  .sidebar {
    width: 80px;
    padding: 24px 8px;
    align-items: center;
  }
  .sidebar-logo .logo-label, 
  .sidebar-logo .logo-subtitle,
  .menu-item span {
    display: none;
  }
  .main-content {
    margin-left: 80px;
    max-width: calc(100vw - 80px);
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none; /* Hide nav shell on mobile documents */
  }
  .main-content {
    margin-left: 0;
    max-width: 100vw;
    padding: 24px;
  }
}
