/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


.notification-container, .alert-container, .error-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;

  .notification {
    margin-bottom: 0;
    min-width: 300px;
    max-width: 600px;
    animation: slideIn 0.3s ease-out;
  }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.tippy-content {
  font-size: 10px;
}

.markdown-content {
  word-wrap: break-word;

  h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  a.markdown-link {
    text-decoration: underline;
  }

  a.markdown-link:hover {
    text-decoration: none;
  }

  p {
    margin-bottom: 1rem;
  }

  ul {
    margin-bottom: 1rem;
  }

  li {
    margin-left: 1rem;
    list-style: disc;
  }

  ol {
    margin-left: 1rem;
    margin-bottom: 1rem;
  }

  code {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 1rem;
  }

  pre {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: 0.25rem;
  }

  @media (prefers-color-scheme: dark) {
    pre {
      background-color: #1a1a1a;
    }
  }
}


.gantt {
  display: grid;
  border: 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  .gantt__row {
    display: grid;
    grid-template-columns: 150px 1fr;
    background-color: #fff;
  }

  .gantt__row--year {
    color: #fff;
    z-index: 10;
    background-color: var(--color-gray-800) !important;

    span {
      text-align: center;
      font-size: 15px;
      align-self: center;
      font-weight: bold;
      padding: 8px 0;
    }

    .gantt__row-first {
      border-top: 0 !important;
      background-color: var(--color-gray-800) !important;
    }
  }

  .gantt__row--months {
    color: #fff;
    z-index: 10;
    background-color: var(--color-gray-800) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    grid-template-columns: 150px repeat(12, 1fr);

    span {
      text-align: center;
      font-size: 13px;
      align-self: center;
      font-weight: bold;
      padding: 8px 0;
    }

    .gantt__row-first {
      border-top: 0 !important;
      background-color: var(--color-gray-800) !important;
    }
  }

  .gantt__row-first {
    background-color: #fff;
    border-width: 1px 0 0 0;
    border-color: rgba(0, 0, 0, 0.1);
    border-style: solid;
    padding: 15px 0;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
  }

  .gantt__row:nth-child(even) {
    background-color: #f5f5f5;
  }
  .gantt__row:nth-child(even) .gantt__row-first {
    background-color: #f5f5f5;
  }

  .gantt__row--lines {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: transparent;
    grid-template-columns: 150px repeat(12, 1fr);

    span {
      display: block;
      border-right: 1px solid rgba(0, 0, 0, 0.1);
      &.marker {
        background-color: rgba(10, 52, 68, 0.13);
        z-index: 2;
      }
    }
  }

  .gantt__row--lines:after {
    grid-row: 1;
    grid-column: 0;
    background-color: #1688b345;
    z-index: 2;
    height: 100%;
  }

  .gantt__row-bars {
    list-style: none;
    display: grid;
    padding: 9px 0;
    margin: 0;
    grid-template-columns: repeat(365, 1fr);
    grid-gap: 8px 0;
    border-top: 1px solid rgba(221, 221, 221, 0.8);

    li {
      font-weight: 500;
      text-align: left;
      font-size: 14px;
      min-height: 15px;
      background-color: #55de84;
      padding: 5px 12px;
      color: #fff;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      border-radius: 20px;
    }

    li:after, li:before {
      content: "";
      height: 100%;
      top: 0;
      z-index: 4;
      position: absolute;
      background-color: rgba(0, 0, 0, 0.3);
    }

    li:before {
      left: 0;
    }

    li:after {
      right: 0;
    }

    li.stripes {
      background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.1) 5px, rgba(255, 255, 255, 0.1) 12px);
    }
  }
}
