:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
}

/* Sidebar */
.sidebar {
  width: 16rem;
  background: #020617; /* darker, almost black */
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
}
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1e293b;
  padding-left:5px;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-left: 15px;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
   margin-left: 15px;
}

.sidebar-nav {
  padding: 1rem;
  flex: 1;
}

.nav-link {
  width: 100%;
  background: transparent;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  cursor: pointer;
}

.nav-link:hover {
  background: #1e293b;
}

.nav-link.active {
  background: #1e293b;
}

/* Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #1e293b;
  font-size: 0.75rem;
  color: #64748b;
}

/* Topbar */
.topbar {
  height: 4rem;
  border-bottom: 1px solid #1e293b;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

.topbar-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.topbar-search {
  background: #0f172a;
  border: 1px solid #334155;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
}

.topbar-new {
  background: var(--primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.topbar-new:hover {
  background: var(--primary-hover);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #020617; /* slightly different from content area */
  margin-left: 240px;
}

body {
  background: #020617; /* page background */
}

.content {
  padding: 1.5rem;
  overflow-y: auto;
  background: #020617;
}

/* New: inner surface for pages */
.page-surface {
  background: #020617;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #111827;
}
/* Sections */
.section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Dashboard Cards */
.stat-card {
  background: #f9fafb;      /* solid white-ish card */
  color: #0f172a;           /* dark text */
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .stat-note {
    display: none;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;                 /* slate-500 */
}

.stat-value {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 0.25rem;
  color: #111827;                 /* near black */
}

.stat-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.task {
  background: #0b1120; /* slightly lighter than page background */
  border: 1px solid #1f2937; /* gives separation */
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
}

.task:hover {
  background: #fbebde;
  border-color: #1a1a1a;
  transition: 0.15s ease;
}

.task-priority {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.task-priority.high {
  background: rgba(255, 215, 0, 0.1);
  color: #fbbf24;
}

.task-priority.med {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.task-priority.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
/* Panels */
/* Base panels stay dark but separate from the page */
.panel {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

/* If you still want that “full bleed” look on big screens only */
@media (min-width: 1024px) {
  .panel {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    
  }
}

@media (max-width: 768px) {
  .panel-next {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0px;
  }
  
  .mt-6{
	padding: 0px;
	}

}

/* Next up strip – slightly lighter to separate from background */
.panel-next {
  background: #020617;
}

/* Each item in your "Next up" list */
.panel-next .next-item {
 background: #f9fafb;              /* white card */
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  color: #0f172a; 
}

/* Theme panel: tinted with your primary color */
.panel-theme {
  background: #020617;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.theme-card-title {
  color: var(--primary);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-link {
  font-size: 0.75rem;
  color: #818cf8;
}

/* Tasks */
.task-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task {
  display: flex;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.task-title {
  font-size: 0.9rem;
  font-weight: 600;
  Color: black;
}

.task-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.task-priority {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
}

.task-priority.high {
  color: #fbbf24;
}

.task-priority.med {
  color: #4ade80;
}

.task-priority.critical {
  color: #f87171;
}

/* Theme card */
.theme-card {
  background: #1e293b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #1a1a1F
}

.theme-title {
  font-weight: 600;
}

.theme-desc {
  font-size: 0.75rem;
  color: #94a3b8;
}
@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 80%;
    max-width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #020617;
    border-right: 1px solid #1e293b;
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    z-index: 40;
    order: 0;  /* not used now */
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    order: 1;
    margin-left: 0;
  }

  .content {
    padding: 1rem;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #020617;
  }
  
  .page-surface {
  padding: 0;
  border: 0px solid #111827;
}

  /* Hamburger visible only on mobile */
  .hamburger-btn {
    display: inline-flex;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }


  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1.2rem;
    margin-top: 0.1rem;
  }

  .stat-note {
    font-size: 0.65rem;
  }
}
/* Compact stat cards for mobile */
.stats-row .stat-card {
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.stats-row .stat-label {
  font-size: 0.65rem;
}

.stats-row .stat-value {
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.stats-row .stat-note {
  font-size: 0.65rem;
}

/* On larger screens, let them breathe a bit more */
@media (min-width: 768px) {
  .stats-row {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .stats-row .stat-card {
    padding: 1rem;
  }
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.hamburger-btn:hover {
  background: #111827;
}

.preppy-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: var(--primary);
  color: #e5e7eb;
  padding: 0.6rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  text-decoration: none;
  z-index: 50;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.preppy-fab:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.preppy-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  font-size: 1.1rem;
}

.preppy-label {
  white-space: nowrap;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .preppy-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .preppy-label {
    display: none; /* icon only on small screens */
  }
}


/* Preppy Chat Popup */
.preppy-chat {
  position: fixed;
  right: 1.5rem;
  bottom: 4.2rem;
  width: 360px;               /* slightly wider */
  max-width: calc(100% - 2rem);
  max-height: 520px;          /* taller window */
  background: #0f172a;
  display: flex;
  flex-direction: column;
  z-index: 60;
  border-radius: 0.9rem;
}

/* Messages area now taller */
.preppy-chat-messages {
  max-height: 400px;          /* increased height */
  padding-bottom: 0.5rem;
  overflow-y: auto;
}

/* Input area bigger */
.preppy-chat-input {
  background: #020617;
  padding: 0.75rem;           /* increased padding */
  border-top: 1px solid #1e293b;
}

/* Chat input field bigger */
#preppy-chat-text {
  padding: 0.6rem 0.75rem;    /* taller input */
  font-size: 12px;            /* slightly larger */
  height: 42px;               /* consistent height */
  border-radius: 0.5rem;
}

/* Send button bigger */
#preppy-chat-form button {
  padding: 0.55rem 0.9rem;
  font-size: 11px;
  border-radius: 0.5rem;
  background: var(--primary);
}

#preppy-chat-form button:hover {
  background: var(--primary-hover);
}

/* Mobile layout */
@media (max-width: 768px) {
  .preppy-chat {
    right: 0.5rem;
    bottom: 4rem;
    width: calc(100% - 1rem);
    max-height: 65vh;         /* more room on mobile */
  }
}

  .preppy-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.text-sm {
font-size: 1.2rem;
}

/* Ideas list – YouTube search style */
.idea-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid #111827;
  background: #020617;
  margin-bottom: 0.75rem;
}

.idea-row:hover {
  background: #020617;
  border-color: #1f2937;
}

.idea-thumb {
  flex: 0 0 220px;           /* large thumb */
  max-width: 220px;
}

.idea-thumb img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.idea-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.idea-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.idea-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.idea-title {
  font-size: 1rem;
  font-weight: 600;
}

.idea-description {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.idea-notes {
  font-size: 0.75rem;
  color: #9ca3af;
}

.idea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.idea-status-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.idea-status-select {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 0.375rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
}

/* 3-dot menu */
.idea-menu-wrapper {
  position: relative;
}

.idea-menu-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.idea-menu-btn:hover {
  background: #111827;
  color: #e5e7eb;
}

.idea-menu {
  position: absolute;
  top: 1.25rem;
  right: 0;
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  min-width: 140px;
  padding: 0.25rem 0;
  z-index: 40;
}

.idea-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  background: transparent;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
}

.idea-menu-item:hover {
  background: #111827;
}

.idea-menu-danger {
  color: #f97373;
}

#goal-month-subs{
color: black;
}

.latest-ideas-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 0.75rem;
  overflow-x: auto;              /* horizontal scroll if needed */
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.latest-idea-card {
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid #111827;
  padding: 0.5rem;
  flex: 0 0 260px;               /* fixed width card */
}

.latest-idea-thumb {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 16 / 9;
}

.latest-idea-thumb img {
  width: 100%;
  display: block;
}

.latest-idea-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.latest-idea-status {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Kanban layout */
.kanban-board {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  overflow-x: auto;
  padding: 0.75rem 0;
}

.kanban-column {
  flex: 1 0 230px;            /* column min width */
  background: #020617;        /* slate-950-ish */
  border: 1px solid #1f2937;  /* slate-800 */
  border-radius: 0.9rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  min-height: 500px;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.kanban-column-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb; /* slate-200 */
}

.kanban-column-count {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #111827; /* slate-900 */
  color: #9ca3af;      /* slate-400 */
}

.kanban-column-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.kanban-item {
  cursor: grab;
}

.kanban-card {
  border-radius: 0.9rem;
  padding: 0.75rem 0.7rem;
  background: #020617;
  border: 1px solid #111827;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.6);
  font-size: 0.75rem;
}

.kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.kanban-card-title {
  font-weight: 600;
  color: #e5e7eb;
}

.kanban-card-chip {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid #1e293b;
}

/* Subtext lines */
.kanban-card-meta {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* Soft status colors (like your reference board) */
.kanban-card--new-idea {
  background: #0b1120;
  border-color: #1d4ed8;
}

.kanban-card--scripting {
  background: #0b1220;
  border-color: #22c55e;
}

.kanban-card--ready-to-film {
  background: #111827;
  border-color: #f59e0b;
}

.kanban-card--editing {
  background: #111827;
  border-color: #6366f1;
}

.kanban-card--uploaded {
  background: #020617;
  border-color: #22d3ee;
  opacity: 0.95;

.kanban-card.dragging {
  opacity: 0.6;
}

.kanban-column-body.drag-over {
  outline: 2px dashed #4f46e5;
  outline-offset: -4px;
}

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.idea-channel-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* King Maurice – orange */
.channel-king-maurice {
  background: rgba(248, 163, 60, 0.16);
  color: #f97316;
}

/* Wondr – white */
.channel-wondr {
  background: rgba(249, 250, 251, 0.12);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Maurice Thee King – blue */
.channel-maurice-thee-king {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.goals-surface {
  padding: 1.75rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.goal-card {
  background: #020617;               /* dark slate */
  border-radius: 0.9rem;
  border: 1px solid #1f2937;
  padding: 1.25rem;
}

.goal-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.goal-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.goal-field label {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.goal-input {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  outline: none;
}

.goal-input:focus {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.goals-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* If you don't already have these button styles, you can add: */
.btn-primary {
  background: var(--primary, #6366f1);
  color: #f9fafb;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover, #4f46e5);
}

.btn-secondary {
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid #374151;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #111827;
}

/* Hide by default (desktop) */
.mobile-nav {
  display: none;
}

/* Mobile bottom nav bar */

/* ---------- Mobile bottom nav (pill bar + floating +) ---------- */

/* hide on desktop */
.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none; /* children get clicks */
  }

  .mobile-nav-bar {
    pointer-events: auto;
    width: 100%;
    max-width: 460px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;

    padding: 0.45rem 1.6rem;
    border-radius: 9999px;
    background: #020617;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  }

  .mobile-nav-item {
    flex: 1;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: #9ca3af;
    font-size: 0.7rem;
  }

  .mobile-nav-item span:first-child {
    font-size: 1.1rem; /* icon */
  }

  .mobile-nav-item.active {
    color: #f9fafb;
  }

  .mobile-nav-center-btn {
    pointer-events: auto;
    position: absolute;
    bottom: calc(1.7rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);

    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 4px solid #020617;

    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle at 30% 0%, #f97316, #6366f1);
    color: #f9fafb;
    font-size: 2rem;
    line-height: 1;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
  }

  .mobile-nav-center-btn:active {
    transform: translateX(-50%) scale(0.96);
  }

  /* make room so content doesn't hide behind nav */
  .content {
    padding-bottom: 6rem !important;
  }

  /* optional: hide text labels on very small phones */
  @media (max-width: 375px) {
    .mobile-nav-label {
      display: none;
    }
  }
}

@media (min-width: 1025px) {
  .mobile-nav {
    display: none !important;
  }
}