.fancyCustomComponent {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;

  .document {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    &:last-child {
      margin-bottom: 0;
    }

    &:empty {
      display: none;
    }

    .tag {
      display: inline-block;
      margin-bottom: 12px;
      padding: 5px 10px;
      background-color: #e0e0e0;
      color: #333;
      border-radius: 20px;
      font-size: 0.9em;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #d0d0d0;
      }
    }

    h2 {
      font-size: 24px;
      color: #2c3e50;
      margin-bottom: 15px;
      border-bottom: 2px solid #3498db;
      padding-bottom: 10px;
    }

    h3 {
      font-size: 20px;
      color: #34495e;
      margin-top: 20px;
      margin-bottom: 10px;
    }

    p {
      margin-bottom: 15px;
    }

    button {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #2980b9;
      }
    }

    ul {
      list-style-type: none;
      padding-left: 0;

      li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;

        &:last-child {
          border-bottom: none;
        }
      }
    }

    .message-box {
      margin-top: 20px;
      padding: 15px;
      background-color: #e8f6fe;
      border: 1px solid #b8e0f9;
      border-radius: 5px;
      color: #0c5460;
    }

    .chart-placeholder {
      margin-top: 20px;
      height: 200px;
      border: 1px solid #ccc;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f0f0f0;
      color: #666;
      font-style: italic;
    }
  }
}

// Animation for message appearance
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}
