@use "../../../styles/abstracts/variables" as *;
@use "../../../styles/abstracts/mixins" as *;

.overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr; // Optionally left-right split for wider screens
  }

  .left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    &Text {
      .top {
        border-bottom: 1px solid #d1fae5;
        padding-bottom: 0.5rem;

        .header {
          display: flex;
          align-items: center;
          gap: 15px;

          h1 {
            font-size: 1.6rem;
            font-weight: 700;
            color: #065f46;
          }

          span {
            padding: 0.25rem 0.7rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
          }

          .ongoing {
            background: #f0fdf4;
            color: #2eab5b;
          }

          .completed {
            background: #d1fae5;
            color: #065f46;
          }

          .pending {
            background: #fef3f2;
            color: #b91c1c;
          }
        }

        .meta {
          display: flex;
          gap: 20px;
          padding-top: 0.5rem;

          .metaItem {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #52796f;
            font-size: 0.88rem;
            font-weight: 500;
          }
        }
      }

      p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-top: 1rem;
        color: #334d4d;
      }
    }

    .buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;

      div {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s ease;
        svg {
          margin-left: 0.3rem;
        }
      }

      .update {
        background: #2eab5b;
        color: #ffffff;
        &:hover {
          background: #1f7f44;
        }
      }

      .delete {
        background: #b91c1c;
        color: #ffffff;
        &:hover {
          background: #7f1212;
        }
      }
    }
  }

  @media (max-width: 768px) {
    padding: 1.5rem;
    gap: 1.5rem;

    .left {
      .buttons {
        flex-direction: column;
        gap: 0.75rem;
      }
    }
  }
}
