/* ==========================================================================
   ROARINK dashboard — Template-Specific Stylesheet (15 Pages)
   File:        dashboard/dashboard.css
   Author:      Mixing Theme
   Version:     1.0.0
   Description: Creator Studio sidebar, KPI cards, analytics charts, release
                tables, Storyboard Lab, Translation Studio, and Royalty Splits.

   TABLE OF CONTENTS:
   01. Dashboard Workspace Shell & Sticky Studio Sidebar (.roar-dash-sidebar)
   02. KPI Metric Cards & Accent Variants (.roar-dash-kpi-card)
   03. Panels, Weekly Readership Bar Chart & Progress Tracks (.roar-dash-chart)
   04. Responsive Studio Tables, Thumbnails & Status Tags (.roar-dash-table)
   05. Page 13: Storyboard & Panel Layout Lab (.roar-storyboard-canvas)
   06. Page 14: Translation & Lettering Studio (.roar-loc-stage)
   07. Page 15: Team & Royalty Splits Calculator (.roar-split-bar)
   08. Dark Mode Overrides & Responsive Breakpoints
   ========================================================================== */

/* 15. Creator & Studio Dashboard (dashboard.html & dashboard-*.html) */
.roar-dash-shell {
  padding: 2.5rem 0 4.5rem;
}

.roar-dash-sidebar {
  background-color: var(--roar-surface);
  border: 2.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  box-shadow: var(--roar-shadow-comic);
  padding: 1.25rem;
  position: sticky;
  top: 92px;
}

.roar-dash-studio-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--roar-border-color);
}

.roar-dash-studio-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--roar-radius-sm);
  border: 2px solid var(--roar-navy);
  object-fit: cover;
  flex-shrink: 0;
}

.roar-dash-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roar-dash-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--roar-radius-xs);
  border: 1.5px solid transparent;
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--roar-ink);
  text-decoration: none;
  transition: background-color var(--roar-duration) var(--roar-ease), border-color var(--roar-duration) var(--roar-ease);
}

.roar-dash-nav-link:hover,
.roar-dash-nav-link:focus-visible {
  background-color: var(--roar-lime-soft);
  color: var(--roar-navy);
  border-color: var(--roar-navy);
}

.roar-dash-nav-link.is-active,
.roar-dash-nav-link[aria-current="page"] {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
  border-color: var(--roar-navy);
  box-shadow: var(--roar-shadow-comic-sm);
}

.roar-dash-kpi-card {
  background-color: var(--roar-surface);
  border: 2.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  box-shadow: var(--roar-shadow-comic);
  padding: 1.25rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roar-dash-kpi-card.is-accent-lime {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
}

.roar-dash-kpi-card.is-accent-turquoise {
  background-color: var(--roar-turquoise-light);
  color: var(--roar-navy);
}

.roar-dash-kpi-value {
  font-family: var(--roar-font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0.35rem 0;
}

.roar-dash-panel {
  background-color: var(--roar-surface);
  border: 2.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  box-shadow: var(--roar-shadow-comic);
  padding: 1.5rem;
}

.roar-dash-table-wrap {
  overflow-x: auto;
}

.roar-dash-table {
  width: 100%;
  border-collapse: collapse;
}

.roar-dash-table th {
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--roar-ink-muted);
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid var(--roar-navy);
  text-align: left;
  white-space: nowrap;
}

.roar-dash-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--roar-border-color);
  vertical-align: middle;
}

.roar-dash-table tr:last-child td {
  border-bottom: 0;
}

.roar-dash-thumb {
  width: 46px;
  height: 60px;
  object-fit: cover;
  border: 1.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  flex-shrink: 0;
}

.roar-dash-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  align-items: end;
  height: 210px;
  padding: 1.25rem 0.75rem 0.5rem;
  background-color: var(--roar-ivory-alt);
  border: 1.5px solid var(--roar-border-color);
  border-radius: var(--roar-radius-xs);
}

.roar-dash-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.45rem;
}

.roar-dash-chart-bar {
  width: 100%;
  max-width: 42px;
  background-color: var(--roar-turquoise);
  border: 2px solid var(--roar-navy);
  border-radius: 3px 3px 0 0;
  box-shadow: 2px 2px 0 var(--roar-navy);
  transition: height 240ms var(--roar-ease), background-color 200ms var(--roar-ease);
}

.roar-dash-chart-bar.is-peak {
  background-color: var(--roar-lime);
}

.roar-dash-chart-bar:hover {
  background-color: var(--roar-orange);
}

.h-pct-35 { height: 35%; }
.h-pct-45 { height: 45%; }
.h-pct-55 { height: 55%; }
.h-pct-65 { height: 65%; }
.h-pct-75 { height: 75%; }
.h-pct-85 { height: 85%; }
.h-pct-95 { height: 95%; }

@media (max-width: 991.98px) {
  .roar-dash-sidebar {
    position: static;
  }
}

/* ==========================================================================
   Pages 13–15: Storyboard Lab, Translation Studio & Team Royalty Splits
   ========================================================================== */
.roar-sb-canvas {
  display: grid;
  gap: 0.85rem;
  background-color: #0b1320;
  border: 3.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  padding: 0.9rem;
  min-height: 430px;
  box-shadow: 6px 6px 0 #050911;
}

.roar-sb-canvas.is-manga-4 {
  grid-template-columns: repeat(2, 1fr);
}

.roar-sb-canvas.is-manga-4 .is-extra-panel {
  display: none;
}

.roar-sb-canvas.is-spread-5 {
  grid-template-columns: repeat(6, 1fr);
}

.roar-sb-canvas.is-spread-5 .roar-sb-cell:nth-child(1),
.roar-sb-canvas.is-spread-5 .roar-sb-cell:nth-child(2) {
  grid-column: span 3;
}

.roar-sb-canvas.is-spread-5 .roar-sb-cell:nth-child(3),
.roar-sb-canvas.is-spread-5 .roar-sb-cell:nth-child(4),
.roar-sb-canvas.is-spread-5 .roar-sb-cell:nth-child(5) {
  grid-column: span 2;
}

.roar-sb-canvas.is-webtoon-3 {
  grid-template-columns: 1fr;
}

.roar-sb-canvas.is-webtoon-3 .roar-sb-cell:nth-child(4),
.roar-sb-canvas.is-webtoon-3 .roar-sb-cell:nth-child(5) {
  display: none;
}

.roar-sb-canvas.is-splash-2 {
  grid-template-columns: 1.4fr 1fr;
}

.roar-sb-canvas.is-splash-2 .roar-sb-cell:nth-child(3),
.roar-sb-canvas.is-splash-2 .roar-sb-cell:nth-child(4),
.roar-sb-canvas.is-splash-2 .roar-sb-cell:nth-child(5) {
  display: none;
}

.roar-sb-cell {
  position: relative;
  min-height: 195px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background-color: #162032;
  transition: transform 160ms var(--roar-ease), border-color 160ms var(--roar-ease), box-shadow 160ms var(--roar-ease);
}

.roar-sb-cell:hover,
.roar-sb-cell:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--roar-lime);
}

.roar-sb-cell.is-selected {
  border-color: var(--roar-lime);
  box-shadow: 0 0 0 3px var(--roar-lime);
}

.roar-sb-cell-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 260ms var(--roar-ease), opacity 200ms var(--roar-ease);
}

.roar-sb-cell:hover .roar-sb-cell-img {
  transform: scale(1.04);
  opacity: 0.86;
}

.roar-sb-cell-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.72) 0%, rgba(11, 19, 32, 0.2) 45%, rgba(11, 19, 32, 0.85) 100%);
}

.roar-sb-cell-num {
  background-color: var(--roar-navy);
  color: var(--roar-lime);
  border: 1.5px solid var(--roar-lime);
  padding: 0.1rem 0.45rem;
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 0.74rem;
  border-radius: 2px;
}

.roar-sb-cell-cam {
  background-color: rgba(11, 19, 32, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 2px;
}

.roar-sb-sfx-stamp {
  align-self: flex-end;
  font-family: var(--roar-font-display);
  font-size: 1.35rem;
  color: var(--roar-lime);
  text-shadow: 2px 2px 0 #050911;
  transform: rotate(-6deg);
}

.roar-sb-balloon {
  background-color: #ffffff;
  color: #0b1320;
  border: 2px solid #0b1320;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 2px 2px 0 #0b1320;
}

/* Localization & Lettering Stage (Page 14) */
.roar-loc-stage {
  position: relative;
  min-height: 390px;
  border: 3.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  overflow: hidden;
  background-color: #0b1320;
  box-shadow: 6px 6px 0 #050911;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roar-loc-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.roar-loc-sfx-badge {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  background-color: var(--roar-orange);
  color: #ffffff;
  border: 2.5px solid #0b1320;
  box-shadow: 4px 4px 0 #0b1320;
  padding: 0.25rem 0.75rem;
  font-family: var(--roar-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  transform: rotate(-5deg);
}

.roar-loc-bubble {
  position: relative;
  z-index: 2;
  max-width: 78%;
  background-color: #ffffff;
  color: #0b1320;
  border: 2.5px solid #0b1320;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 #0b1320;
  margin-bottom: 0.65rem;
}

.roar-loc-bubble.is-secondary {
  align-self: flex-end;
  background-color: var(--roar-lime);
  color: #0b1320;
}

.roar-loc-bubble.is-style-shout {
  border-radius: 4px;
  border-width: 3px;
  transform: skewX(-4deg);
}

.roar-loc-bubble.is-style-whisper {
  border-style: dashed;
  background-color: #f8fafc;
}

.roar-loc-bubble.is-style-caption {
  border-radius: 2px;
  background-color: #fef08a;
}

.roar-loc-speaker {
  display: block;
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--roar-turquoise-dark);
  margin-bottom: 0.15rem;
}

/* Team & Royalty Split Bar (Page 15) */
.roar-split-bar {
  display: flex;
  height: 36px;
  border: 2.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--roar-navy);
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 0.8rem;
}

.roar-split-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  transition: width 180ms var(--roar-ease);
}

.roar-split-seg.is-writer {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
}

.roar-split-seg.is-inker {
  background-color: var(--roar-turquoise-light);
  color: var(--roar-navy);
}

.roar-split-seg.is-colorist {
  background-color: var(--roar-orange);
  color: #ffffff;
}

.roar-split-seg.is-letterer {
  background-color: var(--roar-navy);
  color: #ffffff;
}

.roar-team-split-box {
  background-color: var(--roar-ivory-alt);
  border: 2px solid var(--roar-border-color);
  border-radius: var(--roar-radius-xs);
  padding: 0.85rem 1rem;
  height: 100%;
}

[data-theme="dark"] .roar-team-split-box {
  background-color: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

