/* ========================================================
   PinnacleMindz — Free Online Gantt Chart Maker Stylesheet
   Clean, compact, academic-grade design matching reference
   ======================================================== */

:root {
  --navy: #081c3d;
  --navy-dark: #051329;
  --blue: #0864e9;
  --blue-hover: #0650bd;
  --cyan: #14d6e8;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  
  /* Gantt Chart Color Palette */
  --chart-bg: #FFFFFF;
  --chart-header-bg: #F5F7FA;
  --chart-border: #E2E8F0;
  --chart-border-strong: #CBD5E1;
  --chart-text: #334155;
  --chart-text-muted: #64748B;
  --chart-bar-bg: #087CF0;
  --chart-bar-border: #0069D9;
  --chart-bar-hover: #0065cb;
  --chart-today-line: #EF4444;
  --chart-weekend-bg: #F8FAFC;
  
  /* Dimensions */
  --row-height: 40px;
  --header-height: 54px;
  --bar-height: 24px;
  --bar-radius: 4px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #F8FAFC;
  color: var(--chart-text);
  font: 14px/1.5 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, button, input, select {
  font-family: inherit;
}

/* ========================================================
   Header Navigation
   ======================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(8, 28, 61, 0.12);
}

.brand-name {
  font: 800 22px 'Outfit', sans-serif;
  letter-spacing: -0.8px;
  color: #0A2349;
}

.brand-name span {
  color: #0877E9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 13.5px;
  color: #4F637E;
}

.nav a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--blue);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0864DD !important;
  background: #EAF4FF;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid #D4E7FF;
  font-weight: 700;
  transition: all 0.2s;
}

.nav-drop-btn:hover {
  background: #D8EBFF;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid #DBE6F5;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(8, 28, 61, 0.12);
  z-index: 250;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  display: block;
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-drop-item:hover, .nav-drop-item.active {
  background: #F1F7FE;
}

.nav-drop-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EAF4FF;
  color: #0864DD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-drop-title {
  font-size: 13px;
  font-weight: 700;
  color: #0A2349;
}

.nav-drop-sub {
  font-size: 11px;
  color: #6D7B91;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-whatsapp-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8FAF0;
  border: 1px solid #B8EDD0;
  color: #0F8545;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 99px;
  transition: all 0.2s;
}

.btn-whatsapp-compact:hover {
  background: #DEF6E7;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}

/* ========================================================
   Main Application Container
   ======================================================== */
.gantt-app {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Page Intro & Privacy Notice */
.tool-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-title {
  font: 800 24px 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  color: #0A2349;
  margin: 0 0 2px;
}

.tool-subtitle {
  font-size: 13.5px;
  color: #556782;
  margin: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EAFDF3;
  border: 1px solid #C4F3D6;
  color: #0B7A3E;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px #D1FAE5;
}

/* Project Header Bar */
.project-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 16px;
}

.project-title-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.project-title-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.project-title-input {
  flex: 1;
  border: 1px solid transparent;
  background: #F8FAFC;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
}

.project-title-input:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.project-title-input:focus {
  background: #FFFFFF;
  border-color: #0864E9;
  box-shadow: 0 0 0 3px rgba(8, 100, 233, 0.15);
}

.timeline-summary {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================================
   Gantt Toolbar
   ======================================================== */
.gantt-toolbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: #E2E8F0;
  margin: 0 4px;
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Standard Buttons */
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tool-btn:hover {
  background: #EDF2F7;
  color: #0F172A;
  border-color: #94A3B8;
}

.tool-btn .icon {
  font-size: 14px;
  line-height: 1;
}

.tool-btn-primary {
  background: #087CF0;
  color: #FFFFFF;
  border-color: #0069D9;
  box-shadow: 0 2px 4px rgba(8, 124, 240, 0.2);
}

.tool-btn-primary:hover {
  background: #0069D9;
  border-color: #0050BD;
  color: #FFFFFF;
}

.tool-btn-outline {
  background: transparent;
  color: #64748B;
  border-color: #E2E8F0;
}

.tool-btn-outline:hover {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.tool-btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

.tool-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.tool-btn-icon:hover {
  background: #EDF2F7;
  color: #0F172A;
}

.tool-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.zoom-level-text {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  min-width: 42px;
  text-align: center;
}

/* Segmented View Controls */
.segmented-control {
  display: inline-flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  padding: 2px;
}

.segment-btn {
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}

.segment-btn:hover {
  color: #0F172A;
}

.segment-btn.active {
  background: #FFFFFF;
  color: #0864E9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Export PNG Button */
.export-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.export-quality-select {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  outline: none;
}

.tool-btn-export {
  background: #0F766E;
  color: #FFFFFF;
  border-color: #0D665F;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
  font-weight: 700;
  padding: 7px 15px;
}

.tool-btn-export:hover {
  background: #0D665F;
  color: #FFFFFF;
}

.tool-btn-export svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================================
   Gantt Workspace (Two Panels + Splitter)
   ======================================================== */
.gantt-workspace {
  position: relative;
  background: var(--chart-bg);
  border: 1px solid var(--chart-border);
  border-radius: 10px;
  display: flex;
  height: 600px;
  min-height: 480px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Left Panel: Task Table */
.gantt-panel-left {
  width: 320px;
  min-width: 200px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.task-table-header {
  height: var(--header-height);
  background: var(--chart-header-bg);
  border-bottom: 1px solid var(--chart-border);
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.col-id {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  border-right: 1px solid var(--chart-border);
  padding: 0 4px;
}

.col-name {
  flex: 1;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-actions {
  width: 90px;
  text-align: center;
  flex-shrink: 0;
  border-left: 1px solid var(--chart-border);
  padding: 0 6px;
}

.task-table-body {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  /* Hide scrollbar visually while retaining sync scroll */
  scrollbar-width: none;
}
.task-table-body::-webkit-scrollbar {
  display: none;
}

/* Task Table Row */
.task-row {
  height: var(--row-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--chart-border);
  font-size: 13px;
  color: var(--chart-text);
  background: #FFFFFF;
  transition: background 0.1s ease;
  cursor: pointer;
  position: relative;
}

.task-row:hover, .task-row.highlighted {
  background: #F8FAFC;
}

.task-row.dragging {
  opacity: 0.4;
  background: #E2E8F0;
}

.task-row.drag-over {
  border-top: 2px solid var(--blue);
}

.task-cell-id {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
  color: #64748B;
  border-right: 1px solid var(--chart-border);
  line-height: var(--row-height);
  font-size: 12px;
}

.task-cell-name {
  flex: 1;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #1E293B;
}

.task-cell-actions {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  border-left: 1px solid var(--chart-border);
  height: 100%;
}

.row-action-btn {
  background: transparent;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}

.row-action-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.row-action-btn.delete-btn:hover {
  background: #FEE2E2;
  color: #EF4444;
}

.row-action-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Splitter */
.gantt-splitter {
  width: 6px;
  background: #E2E8F0;
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
  position: relative;
  z-index: 10;
}

.gantt-splitter:hover, .gantt-splitter.active {
  background: #0864E9;
}

/* Right Panel: Timeline */
.gantt-panel-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

/* Timeline Header */
.timeline-header-container {
  height: var(--header-height);
  background: var(--chart-header-bg);
  border-bottom: 1px solid var(--chart-border);
  overflow-x: hidden;
  overflow-y: hidden;
  flex-shrink: 0;
  position: relative;
}

.timeline-header-canvas-wrap {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.timeline-header-tier {
  display: flex;
  position: relative;
}

.tier-year {
  height: 26px;
  border-bottom: 1px solid var(--chart-border);
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.tier-sub {
  height: 28px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.header-cell {
  border-right: 1px solid var(--chart-border);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  flex-shrink: 0;
}

.header-cell.weekend {
  background: rgba(241, 245, 249, 0.7);
  color: #94A3B8;
}

.header-cell.today {
  color: var(--blue);
  font-weight: 700;
}

/* Timeline Body */
.timeline-body-container {
  flex: 1;
  overflow: scroll;
  position: relative;
  background: #FFFFFF;
}

.timeline-content {
  position: relative;
  min-height: 100%;
}

/* Grid Lines Layer */
.timeline-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.grid-col {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px solid var(--chart-border);
}

.grid-col.weekend {
  background: rgba(248, 250, 252, 0.8);
}

.grid-col.today-line {
  border-left: 2px solid var(--chart-today-line);
  z-index: 2;
}

.grid-row-line {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row-height);
  border-bottom: 1px solid var(--chart-border);
}

.grid-row-line:hover, .grid-row-line.highlighted {
  background: #F8FAFC;
}

/* Task Bars Layer */
.timeline-bars-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.task-bar-item {
  position: absolute;
  height: var(--bar-height);
  background: var(--chart-bar-bg);
  border: 1px solid var(--chart-bar-border);
  border-radius: var(--bar-radius);
  cursor: grab;
  user-select: none;
  box-shadow: 0 1px 3px rgba(8, 124, 240, 0.25);
  display: flex;
  align-items: center;
  padding: 0 8px;
  transition: box-shadow 0.15s, background 0.15s;
  z-index: 3;
}

.task-bar-item:hover {
  background: var(--chart-bar-hover);
  box-shadow: 0 3px 8px rgba(8, 124, 240, 0.35);
  z-index: 5;
}

.task-bar-item.dragging {
  cursor: grabbing !important;
  opacity: 0.85;
  box-shadow: 0 6px 16px rgba(8, 124, 240, 0.4);
  z-index: 10;
}

.task-bar-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Resize Handles */
.bar-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 4;
}

.handle-left {
  left: 0;
  border-top-left-radius: var(--bar-radius);
  border-bottom-left-radius: var(--bar-radius);
}

.handle-right {
  right: 0;
  border-top-right-radius: var(--bar-radius);
  border-bottom-right-radius: var(--bar-radius);
}

.bar-resize-handle:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Empty State */
.empty-state {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  z-index: 20;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font: 700 20px 'Outfit', sans-serif;
  color: #0A2349;
  margin: 0 0 6px;
}

.empty-state p {
  color: #64748B;
  font-size: 14px;
  max-width: 440px;
  margin: 0 0 20px;
}

.empty-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Quick Tips inside chart container */
.chart-usage-hints {
  font-size: 12px;
  color: #64748B;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   Floating Tooltip
   ======================================================== */
.gantt-tooltip {
  position: fixed;
  background: #0B1F3D;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1000;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

.tooltip-title {
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 4px;
  font-size: 13px;
}

.tooltip-meta {
  color: #CBD5E1;
  font-size: 11.5px;
}

.tooltip-meta strong {
  color: #FFFFFF;
}

/* ========================================================
   Modal Dialog
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(8, 28, 61, 0.25);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font: 700 18px 'Outfit', sans-serif;
  color: #0A2349;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748B;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #0F172A;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.form-label .required {
  color: #EF4444;
}

.form-input {
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #0F172A;
  outline: none;
  transition: all 0.15s;
}

.form-input:focus {
  border-color: #0864E9;
  box-shadow: 0 0 0 3px rgba(8, 100, 233, 0.15);
}

.duration-display {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #475569;
}

.duration-display strong {
  color: #0864E9;
}

.form-error {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ========================================================
   Toast Notifications
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: #0B1F3D;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

/* ========================================================
   Footer
   ======================================================== */
.tool-footer {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 24px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #64748B;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.footer-right a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.footer-right a:hover {
  color: var(--blue);
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 900px) {
  .gantt-panel-left {
    width: 240px;
  }
  .export-group {
    width: 100%;
    justify-content: flex-end;
    margin-top: 6px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #E2E8F0;
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .gantt-app {
    padding: 14px 16px 24px;
  }
  .gantt-workspace {
    height: 520px;
  }
  .gantt-panel-left {
    width: 180px;
  }
  .col-actions, .task-cell-actions {
    width: 60px;
  }
  .move-btn {
    display: none;
  }
}
