/* release-planning.html — page-specific styles */

:root {
    --bg: #0c1015;
    --surface: #12171f;
    --surface2: #19202b;
    --surface3: #202a38;
    --border: #273445;
    --border2: #324157;
    --accent: #5ba3eb;
    --accent2: #2d89e5;
    --text: #d8e9fa;
    --text2: #8f9aa9;
    --text3: #8b96a6;
    --init-color: #8a98f6;
    --epic-color: #4898e8;
    --cap-color: #34d399;
    --feat-color: #8c99a8;
    --score-hi: #4ade80;
    --score-med: #fbbf24;
    --score-lo: #f87171;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--bg); color: var(--text); font-family: var(--sans); height: 100vh; overflow: hidden; }

  /* ── APP LAYOUT / SIDEBAR (from score-rank.html) ── */
  .app-container { display: flex; height: 100vh; }
  .sidebar {
    width: 280px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 24px 0;
    box-shadow: 2px 0 25px rgba(0,0,0,0.3); transition: all 0.3s ease; overflow-y: auto; flex-shrink: 0;
  }
  .sidebar.collapsed { width: 80px; }

  .sidebar .logo { display: flex; align-items: center; font-size: 20px; font-weight: 600; color: white; }
  .sidebar .logo img { height: 32px; }
  .nav-item {
    display: flex; align-items: center; padding: 12px 24px; cursor: pointer; transition: all 0.3s ease;
    border: none; background: none; color: white; width: 100%; text-align: left; position: relative;
    border-radius: 0 25px 25px 0; margin: 4px 0; font-size: 14px; font-family: inherit;
  }

  .nav-item.active-page {
    background: linear-gradient(135deg, rgba(43,139,230,0.3), rgba(84,104,242,0.3));
    border-left: 4px solid #5468f2; color: white; font-weight: 500; box-shadow: 0 4px 20px rgba(84,104,242,0.3);
  }
  .nav-item .material-icons { margin-right: 12px; font-size: 20px; flex-shrink: 0; color: inherit; }
  .sidebar.collapsed .nav-text { display: none; }
  .nav-text { flex: 1; white-space: nowrap; overflow: hidden; }
  .main-content { flex: 1; display: flex; flex-direction: column; background: rgba(255,255,255,0.02); min-width: 0; overflow: hidden; }
  .main-header {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  }
  .main-header .header-left { display: flex; align-items: center; gap: 16px; }
  .main-header .menu-btn { background: none; border: none; cursor: pointer; color: #f2f5f9; display: flex; }
  .main-header .header-title { font-size: 24px; font-weight: 700; background: linear-gradient(135deg, #ff6b00, #ff9933); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .header-stats { display: flex; gap: 18px; }

  .stat-val { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--accent); line-height: 1; }
  .stat-val.warn { color: var(--score-lo); }
  .next-step-btn { display:inline-flex; align-items:center; gap:5px; background:var(--accent2); border:1px solid var(--accent); color:#fff; font-weight:600; font-size:12px; border-radius:5px; padding:7px 13px; cursor:pointer; transition:all .15s; white-space:nowrap; }
  .next-step-btn:hover { background:var(--accent); }
  .next-step-btn .material-icons { font-size:16px; }
  .stat-label { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); }

  /* ── TOOLBAR ── */
  .toolbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
  .toolbar-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); white-space: nowrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 4px;
    border: 1px solid var(--border2); background: var(--surface2); color: var(--text2);
    font-family: var(--sans); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap;
  }
  .btn:hover { background: var(--surface3); border-color: var(--accent); color: var(--text); }
  .btn.active { background: var(--accent2); border-color: var(--accent); color: white; }
  .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
  .divider { width: 1px; height: 20px; background: var(--border2); margin: 0 4px; }

  /* ── MILESTONE TIMELINE ── */
  .timeline-wrap { flex-shrink: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px 10px; }
  .timeline { position: relative; height: 104px; }
  .tl-bands { position: absolute; left: 0; right: 0; top: 48px; height: 8px; display: flex; border-radius: 4px; overflow: hidden; }
  .tl-band { height: 100%; }
  .tl-axis { position: absolute; left: 0; right: 0; top: 52px; height: 0; }
  .tl-ms { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 150px; }
  .tl-ms .diamond {
    width: 13px; height: 13px; transform: rotate(45deg); border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px currentColor; flex-shrink: 0;
  }
  .tl-ms .ms-label { font-size: 9.5px; line-height: 1.25; text-align: center; color: var(--text2); margin-top: 2px; max-width: 150px; }
  .tl-ms .ms-date { font-family: var(--mono); font-size: 9px; color: var(--text3); }
  .tl-ms.up { flex-direction: column-reverse; }
  .tl-ms.up .ms-label, .tl-ms.up .ms-date { margin-top: 0; margin-bottom: 2px; }

  /* ── BOARD ── */
  .board-scroll { flex: 1; overflow: auto; padding: 18px 24px 28px; }
  .board { display: flex; gap: 18px; align-items: flex-start; min-height: 100%; }
  .release-col { flex: 0 0 320px; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; }
  .release-col.backlog { flex-basis: 280px; width: 280px; }
  .rel-head { padding: 14px 16px; border-bottom: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 10px 10px 0 0; }
  .rel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .rel-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .rel-id { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 5px; color: #e2e6ec; font-weight: 700; }
  .rel-theme { font-size: 12px; color: var(--text2); margin-top: 2px; }
  .rel-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .meta-chip { font-family: var(--mono); font-size: 9.5px; padding: 2px 7px; border-radius: 4px; background: var(--surface3); color: var(--text2); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 4px; }
  .meta-chip.risk { color: var(--score-lo); border-color: rgba(248,113,113,.4); }
  .rel-body { padding: 10px 12px 14px; }
  .inc-group { margin-bottom: 12px; }
  .inc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px; margin-bottom: 6px; border-bottom: 1px dashed var(--border2); }
  .inc-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text); display: flex; align-items: center; gap: 6px; }
  .inc-name .material-icons { font-size: 14px; color: var(--accent); }
  .inc-dates { font-family: var(--mono); font-size: 9px; color: var(--text3); white-space: nowrap; }
  .card {
    background: var(--surface2); border: 1px solid var(--border2); border-left-width: 3px;
    border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; transition: opacity .2s, transform .12s, border-color .12s; cursor: default;
  }
  .card:hover { transform: translateX(2px); border-color: var(--accent); }
  .card.dim { opacity: .16; }
  .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
  .card-name { font-size: 12.5px; font-weight: 500; color: var(--text); line-height: 1.3; }
  .card-init { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-top: 3px; }
  .card-score { font-family: var(--mono); font-size: 14px; font-weight: 600; flex-shrink: 0; }
  .card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
  .chip { font-family: var(--mono); font-size: 9px; padding: 2px 6px; border-radius: 3px; background: var(--surface3); color: var(--text2); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 3px; }
  .chip .material-icons { font-size: 11px; }
  .chip.risk { color: var(--score-lo); border-color: rgba(248,113,113,.35); margin-left: auto; }
  .empty-note { color: var(--text3); font-size: 11px; text-align: center; padding: 10px; }

  /* ── SIDE PANEL: milestones ── */
  .ms-panel { width: 290px; flex-shrink: 0; background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
  .ms-panel-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
  .ms-panel-head h3 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
  .ms-panel-head h3 .material-icons { font-size: 17px; color: var(--accent); }
  .ms-panel-head p { font-size: 11px; color: var(--text3); margin-top: 4px; line-height: 1.5; }
  .ms-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
  .ms-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
  .ms-row:hover { border-color: var(--accent); background: var(--surface3); }
  .ms-ico { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ms-ico .material-icons { font-size: 16px; }
  .ms-main { flex: 1; min-width: 0; }
  .ms-name { font-size: 12px; color: var(--text); line-height: 1.3; }
  .ms-sub { font-family: var(--mono); font-size: 9.5px; color: var(--text3); margin-top: 3px; }

  /* tooltip */
  #tip { position: fixed; pointer-events: none; z-index: 999; display: none; background: var(--surface3); border: 1px solid var(--border2); border-radius: 6px; padding: 9px 11px; font-size: 11px; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: 260px; }
  #tip .tt { font-family: var(--mono); font-weight: 600; margin-bottom: 6px; font-size: 12px; }
  #tip .tr { display: flex; justify-content: space-between; gap: 16px; color: var(--text2); line-height: 1.7; }
  #tip .tr b { color: var(--text); font-family: var(--mono); }

  /* d-pad scroll controls */
  .scroll-pad {
    position: absolute; left: 18px; bottom: 18px; z-index: 30;
    display: grid; grid-template-columns: repeat(3,34px); grid-template-rows: repeat(3,34px); gap: 4px;
  }
  .scroll-btn {
    border: 1px solid var(--border2); background: rgba(32,42,56,.94); color: var(--text2);
    border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s; box-shadow: 0 2px 8px rgba(0,0,0,.45);
  }
  .scroll-btn:hover { background: var(--accent2); border-color: var(--accent); color: #fff; }
  .scroll-btn:active { transform: scale(.92); }
  .scroll-btn .material-icons { font-size: 20px; }

  @media (max-width: 1024px){ .ms-panel { display: none; } }
  @media (max-width: 768px){ .sidebar{ width: 80px; } .sidebar .nav-text{ display: none; } }

/* PROCESS-SUBMENU-CSS */
  .nav-item.section-header { background: rgba(43,139,230,0.2); border-left:4px solid #2b8be6; color:#cdd4df; font-weight:600; margin:8px 0 4px 0; box-shadow:0 4px 15px rgba(43,139,230,0.2); }
  .expand-icon { margin-left:auto; transition:transform .3s ease; font-size:18px; flex-shrink:0; }
  .nav-item.section-header.expanded .expand-icon { transform: rotate(90deg); }
  .nav-subitems { max-height:0; overflow:hidden; transition:max-height .3s ease; }
  .nav-subitems.expanded { max-height:1400px; }
  .sidebar.collapsed .nav-subitems { display:none; }
  .sidebar.collapsed .expand-icon { display:none; }
  .nav-subitems .nav-item { padding-left:46px; font-weight:400; margin:2px 0; font-size:13px; }
  .nav-subitems .nav-item .material-icons { font-size:18px; }
  .nav-subitems .nav-item:hover { background:rgba(255,255,255,0.1); transform:translateX(8px); }
  .nav-subitems .nav-item.active-page { background:rgba(84,104,242,0.2); border-left:3px solid #5468f2; box-shadow:none; }

  .process-progress-pct { color:#fff; font-weight:600; background:linear-gradient(135deg,#2b8be6,#5468f2); padding:3px 10px; border-radius:20px; }

  .process-step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:9px; flex:1; cursor:pointer; background:none; border:none; font-family:inherit; padding:0; }
