.gantt-container {
    display: none;
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  #gantt-container.visible {
    display: block !important;
  }
  
  .gantt-wrapper {
    overflow-x: auto;
    position: relative;
    background: #fff;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
  }

  
  .gantt-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
  }
  
  .gantt-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
  }

  .gantt-task-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px; /* ширина devLabel */
    right: 0;
    background-image: repeating-linear-gradient(
        to right,
        transparent,
        transparent 119px,
        rgba(0, 0, 0, 0.05) 120px
    );
    z-index: 0;
  }
  
  .gantt-day {
    width: 120px;
    height: 40px;
    flex-shrink: 0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #f2f2f2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    background-color: #f9f9f9;
    position: relative;
  }

  .gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: red;
    z-index: 20;
    transition: left 60s linear;
    animation: pulse-line 2s infinite ease-in-out;
  }
  
  @keyframes pulse-line {
    0%   { background-color: rgba(255, 0, 0, 0.3); }
    50%  { background-color: rgba(255, 0, 0, 1); }
    100% { background-color: rgba(255, 0, 0, 0.3); }
  }
  
  @media (max-width: 768px) {
    .gantt-day {
      flex: 0 0 30px;
      font-size: 10px;
    }
  
    .gantt-bar {
      font-size: 10px;
      padding: 1px 4px;
    }
  }
  
  .gantt-body {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Відступ між рядками задач */
  }
  
  .gantt-task-row {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 48px; /* можна зробити змінним значенням */
    height: auto;
    border-bottom: 1px solid #eee;
  }
  
  .gantt-bar {
    position: absolute;
    max-width: 100%;
    min-width: 20px;
    height: 22px;
    line-height: 20px;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: move;
    transition: all 0.2s ease;
  }

  .gantt-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    background: rgba(255, 255, 255, 0); /* прозорий фон */
    border-left: 2px dashed rgba(255, 255, 255, 0.3); /* декоративна границя */
    z-index: 2;
  }

  .gantt-bar:hover .gantt-resize-handle {
    background: rgba(255, 255, 255, 0.1); /* трохи видно при наведенні */
    border-left: 2px solid rgba(255, 255, 255, 0.4);
  }
  
  .gantt-placeholder {
    color: #888;
    font-style: italic;
    margin-top: 20px;
  }

  .gantt-bar.low {
    background-color: #2ecc71;
  }
  .gantt-bar.medium {
    background-color: #3498db;
  }
  .gantt-bar.high {
    background-color: #e74c3c;
  }

  .gantt-developer {
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: 4px;
    gap: 6px;
  }
  
  .gantt-developer-label {
    display: flex;
    align-items: center;
    padding: 8px;
    width: 120px;
    min-width: 120px;
    background-color: #f3f3f3;
    border-right: 1px solid #ddd;
    font-weight: bold;
    z-index: 10;
    position: relative;
  }

  .gantt-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #ccc;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin-right: 8px;
  }
  
  .gantt-bars-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
  }

  .gantt-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px 0 0 6px;
    z-index: 1;
    pointer-events: none;
    transition: width 0.4s ease;
  }
  
  .gantt-bar span {
    position: relative;
    z-index: 2;
    padding-left: 6px;
  }

  #manualProgressValue {
    display: inline-block;
    width: 40px;
    text-align: right;
  }

  .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
  }
  .toast.visible {
    opacity: 1;
    bottom: 50px;
  }

  body.dark input[type="range"] {
    background-color: #444;
  }
  
  body.dark input[type="range"]::-webkit-slider-thumb {
    background-color: #ddd;
  }
  
  body.dark input[type="range"]::-moz-range-thumb {
    background-color: #ddd;
  }

  body.dark .toast {
    background: #222;
    color: #ddd;
    border: 1px solid #444;
  }

  body.dark label,
body.dark #manualProgressValue {
  color: #ccc;
}

.gantt-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  background: #007acc;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
}