/* ============================================
   PARCEIROAÍ — Dashboard (Oceano OS) — Open Design Premium
   ============================================ */

/* ── Dashboard Layout ── */
.dashboard-main {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  position: relative;
}

/* Aura de fundo no dashboard */
.dashboard-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: -1;
}

.dashboard-main__header {
  margin-bottom: var(--space-8);
}

.dashboard-main__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.dashboard-main__title .text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-main__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ── Tabs Navigation — Premium Pills ── */
.dashboard-tabs {
  display: flex;
  gap: var(--space-1);
  background: rgba(14, 16, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn--active {
  color: white;
  background: var(--gradient-primary);
  box-shadow:
    0 4px 16px var(--color-primary-glow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: var(--weight-semibold);
}

.tab-btn--active:hover {
  color: white;
  background: var(--gradient-primary-hover);
}

.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
  animation: tab-fade-in var(--duration-slow) var(--ease-out);
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stats Cards Grid — Premium Glass ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}

/* Shimmer interno no hover */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-primary);
  box-shadow: var(--shadow-card-hover);
}

.stat-card__icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-4);
  color: var(--color-primary-lighter);
  position: relative;
  box-shadow: var(--shadow-neon-sm);
  transition: box-shadow var(--duration-normal);
}

.stat-card:hover .stat-card__icon-wrapper {
  box-shadow: var(--shadow-neon);
  background: var(--color-primary-subtle-hover);
}

.stat-card__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

/* ── Circular Flywheel Component — Premium ── */
.flywheel-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 992px) {
  .flywheel-section {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.flywheel-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Brilho de fundo no flywheel card */
.flywheel-card::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(4, 168, 125, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Dynamic SVG Flywheel */
.flywheel-svg-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
}

.flywheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flywheel-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  stroke-dasharray: 5,5;
  fill: none;
  animation: dash 25s linear infinite;
}

.flywheel-line--active {
  stroke: var(--color-primary);
  stroke-width: 2;
  opacity: 0.6;
}

.flywheel-node {
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.flywheel-node circle {
  fill: var(--color-surface-1);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
  transition: all var(--duration-normal) var(--ease-out);
}

.flywheel-node text.node-number {
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-bold);
  font-size: 11px;
  fill: var(--color-text-muted);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill var(--duration-normal);
}

.flywheel-node text.node-label {
  font-family: 'Inter', sans-serif;
  font-weight: var(--weight-medium);
  font-size: 9px;
  fill: var(--color-text-muted);
  text-anchor: middle;
  transition: fill var(--duration-normal);
}

/* Hover e Active states — neon verde */
.flywheel-node:hover circle {
  stroke: var(--color-primary);
  fill: var(--color-primary-subtle);
  filter: drop-shadow(0 0 8px rgba(4, 168, 125, 0.5));
}

.flywheel-node:hover text.node-number {
  fill: var(--color-primary-lighter);
}

.flywheel-node:hover text.node-label {
  fill: var(--color-text-secondary);
}

.flywheel-node--active circle {
  stroke: var(--color-primary-lighter);
  fill: var(--color-primary-subtle-hover);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(4, 168, 125, 0.6));
}

.flywheel-node--active text.node-number {
  fill: var(--color-primary-lighter);
  font-size: 12px;
}

.flywheel-node--active text.node-label {
  fill: var(--color-primary);
  font-weight: var(--weight-semibold);
}

/* Flywheel Info Panel */
.flywheel-info {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.flywheel-info__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.flywheel-info__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.flywheel-info__stage-num {
  background: var(--color-primary-subtle);
  color: var(--color-primary-lighter);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-primary);
  box-shadow: var(--shadow-neon-sm);
}

.flywheel-info__content {
  flex-grow: 1;
}

.flywheel-info__section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: var(--weight-semibold);
}

.flywheel-info__desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.flywheel-info__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
}

.flywheel-info__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(4, 168, 125, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(4, 168, 125, 0.08);
}

.flywheel-info__list-bullet {
  color: var(--color-primary-lighter);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* ── Weekly Routine (Calendar Grid) ── */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.routine-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.routine-card:hover {
  border-color: var(--color-border-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.routine-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.routine-card__day {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.routine-card__pilar {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-lighter);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-border-primary);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
}

.routine-card__time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-1_5);
}

.routine-card__time svg {
  width: 14px;
  height: 14px;
}

.routine-card__tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.routine-card__task-item {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
}

.routine-card__task-checkbox {
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
}

.routine-card__task-item:hover .routine-card__task-checkbox {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 8px var(--color-primary-glow-sm);
}

.routine-card__task-checkbox--checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-neon-sm);
}

.routine-card__task-checkbox--checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.routine-card__task-item--checked {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* ── Content Viewer Tab ── */
.contents-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .contents-layout {
    grid-template-columns: 260px 1fr;
  }
}

.contents-list-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  max-height: 700px;
  overflow-y: auto;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.contents-list-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: var(--weight-semibold);
  padding-left: var(--space-2);
}

.content-item-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  margin-bottom: var(--space-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.content-item-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
}

.content-item-btn--active {
  background: var(--color-primary-subtle);
  color: var(--color-primary-lighter);
  border: 1px solid var(--color-border-primary);
}

.content-item-btn__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.content-item-btn__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
}

.content-item-btn--active .content-item-btn__meta {
  color: var(--color-primary);
  opacity: 0.7;
}

.contents-viewer {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.viewer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.viewer-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
}

.viewer-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.viewer-tag {
  font-size: 11px;
  font-weight: var(--weight-medium);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.viewer-tag--primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-lighter);
  border-color: var(--color-border-primary);
}

.viewer-actions {
  display: flex;
  gap: var(--space-2);
}

.viewer-content-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
}

/* Slide Carousels Visualizer */
.slides-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.slide-card {
  background: rgba(14, 16, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: border-color var(--duration-fast);
}

.slide-card:hover {
  border-color: var(--color-border-primary);
}

.slide-card__num {
  font-size: 11px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  color: var(--color-primary-lighter);
  margin-bottom: var(--space-3);
  display: block;
  letter-spacing: var(--tracking-wider);
}

.slide-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.slide-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.slide-card__visual {
  font-size: 11px;
  color: var(--color-text-muted);
  background: rgba(4, 168, 125, 0.04);
  border-left: 2px solid var(--color-primary);
  padding: var(--space-2) var(--space-4);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Reels Scripts Tables */
.reels-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
}

.reels-table th,
.reels-table td {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-4);
  text-align: left;
  vertical-align: top;
}

.reels-table th {
  background: rgba(4, 168, 125, 0.06);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.reels-table td:first-child {
  width: 50%;
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.reels-table td:last-child {
  width: 50%;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Control/Action Panel Card ── */
.control-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.control-card__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.control-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.control-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.action-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--duration-normal) var(--ease-out);
}

.action-item:hover {
  border-color: var(--color-border-primary);
  background: var(--color-primary-subtle);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.action-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.action-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  flex-grow: 1;
}

/* ── Activity / Events Log ── */
.activity-card {
  background: var(--color-glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.activity-card__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.activity-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.activity-item {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  position: relative;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-item__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--color-primary-glow-sm);
}

.activity-item__dot--success {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success-glow);
}

.activity-item__dot--warning {
  background: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning-glow);
}

.activity-item__content {
  flex-grow: 1;
}

.activity-item__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
  line-height: var(--leading-normal);
}

.activity-item__text strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.activity-item__time {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ── Keyframes ── */
@keyframes dash {
  to { stroke-dashoffset: -100; }
}
