.magic-elements-addnew-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    overflow: auto;
  
    .magic-elements-addnew-content {
      background-color: #fff;
      padding: 20px;
      border-radius: 10px;
      width: 90%;
      max-width: 700px;
      margin: 100px auto; // centers element horizontally and provides vertical margin
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      animation: fadeIn 0.3s;
      min-height: 400px;
      position: relative;

      &.loading{
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .magic-elements-close-popup {
        position: absolute;
        left: 100%;
        top: 0;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
        border: 1px solid #fff;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .magic-elements-addnew-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
  
        h2 {
          margin: 0;
          font-size: 1.5rem;
        }
      }
  
      form {
        .magic-elements-form-group {
          margin-bottom: 15px;
  
          label {
            display: block;
            font-weight: bold;
            margin-bottom: 5px;
          }
  
          input[type="text"],
          select {
            width: calc(100% - 20px);
            padding: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            font-size: 1rem;
  
            &:focus {
              border-color: #007acc;
              outline: none;
            }
          }
        }
  
        .magic-elements-form-actions {
          display: flex;
          gap: 10px;
          justify-content: flex-end;
  
          .button-primary {
            background-color: #007acc;
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
  
            &:hover {
              background-color: #005ea1;
            }
          }
        }
      }
    }
  
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: scale(0.9);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }
  }
  .magic-elements-form-group{
    margin-top: 10px;
    .button.button-secondary{
      background-color: #a50000;
      color: #fff;
      border: 0;
      border-radius: 5px;
      padding: 5px 20px;
      &:focus{
        outline: none;
      }
    }
  }
 .remove-condition{
  background: transparent;
  border: 0;
  color: #a50000;
  font-size: 1.2rem;
  cursor: pointer;
  &:focus{
    outline: none;
  }
 }
 .add-new-template + button{
  background: transparent;
  border: 0;
  color: #a50000;
  font-size: 1.2rem;
  cursor: pointer;
  &:focus{
    outline: none;
  }
 }
 .preview-item-actions{
  a:not(:nth-child(2)){
    &:hover{
      color: #fff;
    }
  }
 }
  // Flex properties
  .d-flex { display: flex !important; }
  .d-inline-flex { display: inline-flex !important; }
  .d-none { display: none !important; }

  // Flex direction
  .flex-row { flex-direction: row !important; }
  .flex-column { flex-direction: column !important; }
  .flex-row-reverse { flex-direction: row-reverse !important; }
  .flex-column-reverse { flex-direction: column-reverse !important; }

  // Flex wrap
  .flex-wrap { flex-wrap: wrap !important; }
  .flex-nowrap { flex-wrap: nowrap !important; }
  .flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

  // Justify content
  .justify-content-start { justify-content: flex-start !important; }
  .justify-content-end { justify-content: flex-end !important; }
  .justify-content-center { justify-content: center !important; }
  .justify-content-between { justify-content: space-between !important; }
  .justify-content-around { justify-content: space-around !important; }
  .justify-content-evenly { justify-content: space-evenly !important; }

  // Align items
  .align-items-start { align-items: flex-start !important; }
  .align-items-end { align-items: flex-end !important; }
  .align-items-center { align-items: center !important; }
  .align-items-baseline { align-items: baseline !important; }
  .align-items-stretch { align-items: stretch !important; }

  // Align content
  .align-content-start { align-content: flex-start !important; }
  .align-content-end { align-content: flex-end !important; }
  .align-content-center { align-content: center !important; }
  .align-content-between { align-content: space-between !important; }
  .align-content-around { align-content: space-around !important; }
  .align-content-stretch { align-content: stretch !important; }

  // Align self
  .align-self-auto { align-self: auto !important; }
  .align-self-start { align-self: flex-start !important; }
  .align-self-end { align-self: flex-end !important; }
  .align-self-center { align-self: center !important; }
  .align-self-baseline { align-self: baseline !important; }
  .align-self-stretch { align-self: stretch !important; }

  // Flex grow and shrink
  .flex-grow-0 { flex-grow: 0 !important; }
  .flex-grow-1 { flex-grow: 1 !important; }
  .flex-shrink-0 { flex-shrink: 0 !important; }
  .flex-shrink-1 { flex-shrink: 1 !important; }

  // Responsive breakpoints
  @media (min-width: 576px) {
    .d-sm-flex { display: flex !important; }
    .d-sm-inline-flex { display: inline-flex !important; }
    .d-sm-none { display: none !important; }
    // Add other responsive classes as needed
  }

  @media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
    .d-md-none { display: none !important; }
    // Add other responsive classes as needed
  }

  @media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
    .d-lg-none { display: none !important; }
    // Add other responsive classes as needed
  }

  @media (min-width: 1200px) {
    .d-xl-flex { display: flex !important; }
    .d-xl-inline-flex { display: inline-flex !important; }
    .d-xl-none { display: none !important; }
    // Add other responsive classes as needed
  }

  @media (min-width: 1400px) {
    .d-xxl-flex { display: flex !important; }
    .d-xxl-inline-flex { display: inline-flex !important; }
    .d-xxl-none { display: none !important; }
    // Add other responsive classes as needed
  }
  