.dnxte-enhance-project-posts.dnext-pe-wrapper {
  margin: 0;

  .dnext-ee-wrapper {
    border: 0;
    box-shadow: none;
  }

  .dnext-align-inline {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dnext-ee-admin-header-title {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;

    h1 {
      color: #222c39;
      font-size: 12px;
      font-weight: 500;
      line-height: 18px;
      padding: 0;
    }
  }

  .dnext-ee-admin-header-sub-title {
    padding: 10px 16px;
    border-bottom: 1px solid #E5E7EB;

    p {
      color: #222c39;
      font-size: 12px;
      font-weight: 500;
      line-height: 14px;
      margin: 0;
    }
  }

  .dnext-ee-admin-content {
    padding: 24px 17px;
    position: relative;
  }

  .dnext-ee-general-item .dnext-ee-row+.dnext-ee-row {
    margin-top: 20px;
  }

  .dnext-ee-row label {
    color: #586892;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  &.alt {
    margin-bottom: 60px;
  }

  .toggle {
    >span {
      min-width: 220px;
    }

    cursor: pointer;
    display: inline-flex;
    align-items: center;
  }

  .toggle-switch {
    display: inline-block;
    background: #ccc;
    border-radius: 16px;
    width: 44px;
    height: 22px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;

    &:before,
    &:after {
      content: "";
    }

    &:before {
      display: block;
      background: #fff;
      border-radius: 50%;
      box-shadow: none;
      width: 16px;
      height: 16px;
      position: absolute;
      top: 3px;
      left: 4px;
      transition: left 0.25s;
    }
  }

  .toggle-checkbox {
    &:checked+.toggle-switch {
      background: #7a5af8;

      &:before {
        left: 24px;
      }
    }

    position: absolute;
    visibility: hidden;
  }

  .dnxte-tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    margin-right: 20px;
    box-sizing: border-box;

    .tooltip-text {
      visibility: hidden;
      background-color: black;
      color: #fff;
      text-align: center;
      padding: 6px 10px;
      border-radius: 4px;
      position: absolute;
      z-index: 10;
      bottom: 10px;
      left: 50%;
      transform: translate(-50%, -10%);
      opacity: 0;
      font-size: 13px;
      width: 200px;
      box-sizing: border-box;
      transition: all 0.15s ease;
      pointer-events: none;
    }

    &:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, -45%);
      width: 200px;
      height: auto;
    }

    .tooltip-text::before {
      right: 0;
      display: block;
      position: absolute;
      bottom: 1px;
      left: 50%;
      width: 0;
      height: 0;
      content: "";
      border: solid;
      border-width: 10px 10px 0 10px;
      border-color: transparent;
      transform: translate(-50%, 100%);
      border-top-color: #000;
      box-sizing: border-box;
    }
  }

  .dnext-ee-items {
    position: relative;
  }

  .dnext-ee-item {
    +.dnext-ee-item {
      margin-top: 24px;
    }

    background: #fff;
    border-radius: 2px 2px 0px 0px;
    border: 1px solid #e5e7eb;
  }

  .dnext-ee-rows.dnext-ee-template-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    a.dnxte-ee-row-footer-btn {
      border-radius: 4px;
      border: 1px solid #E5E7EB;
      color: #222C39;
      text-align: center;
      font-size: 12px;
      font-style: normal;
      font-weight: 600;
      line-height: 14px;
      display: block;
      padding: 6px 8px;
      text-decoration: none;
    }

    .dnext-ee-row {
      border-radius: 4px;
      border: 1px solid #E5E7EB;
      transition: all 0.3s ease-in-out;
	  flex: 0 1 32%;

      &:hover {
        border-color: #7A5AF8;

        .dnxte-ee-row-actions {
          opacity: 1;
        }
      }

      label {
        display: flex;
        flex-direction: column;
        position: relative;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        input {
          position: absolute;
          visibility: hidden;
        }
      }

      span {
        color: #222C39;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        line-height: 14px;
      }

	  & + .dnext-ee-row {
		margin-top: 0;
	  }
    }

    .dnxte-ee-row-footer {
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 47px;
      justify-content: flex-start;
      width: 100%;
      box-sizing: border-box;
      border-top: 1px solid #E5E7EB;
    }

    .dnext-ee-row.active {
      background: #0CA678;

      a.dnxte-ee-row-footer-btn {
        font-style: italic;
        color: #fff;
      }

      span {
        color: #fff;
      }
    }
  }

  .dnext-ee-btn {
    display: inline-flex;
    height: 32px;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    border-radius: 4px;
    background: #7A5AF8;
    position: absolute;
    bottom: -57px;
    left: 0;
    border: 0;

    &:hover,
    &:focus {
      background: #6B55D3;
    }

    &:disabled {
      background: #7A5AF8 !important;
    }
  }
}

.wp-core-ui .dnext-pe-wrapper select {
  color: #222C39;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;

  /* 116.667% */
  border-color: #E5E7EB;
}

/* Overlay */

.dnext-pe-wrapper {
  .dnxte-ee-row-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    width: 72%;
    margin-top: -20px;
    opacity: 0;

    a.dnxte-ee-row-action-btn {
      text-decoration: none;
      padding: 6px 4px;
      color: #FFF;
      font-size: 12px;
      font-weight: 600;
      line-height: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all .3s ease-in-out;
      border: 1px solid transparent;
      border-radius: 4px;
      margin: 0 2px;

      &:hover {
        border-color: #fff;
      }

      img {
        width: 24px !important;
        height: auto !important;
      }
    }
  }

  .dnext-ee-rows.dnext-ee-template-rows .dnext-ee-row label {
    &:before {
      background: rgba(0, 0, 0, 0.7);
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: calc(100% - 45px);
      border-radius: inherit;
      opacity: 0;
      transition: all .3s ease-in-out;
    }

    &:hover:before {
      opacity: 1;
    }
  }

  span.dnxte-arrow-up-icons {
    display: block;
    margin-left: auto;

    img {
      cursor: pointer;

      &.dnxte-angle-down.dnxte-control-icon {
        transform: rotate(180deg);
      }
    }
  }
}

/* Controls Icon */

/* Toaster Notification */

body .dnxte-toast {
  position: fixed;
  top: 40px;
  right: 20px;
  z-index: 99999;
  background-color: #23282d;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.dnxte-toast {
  &.show {
    opacity: 0.95;
    transform: translateY(0);
    pointer-events: auto;
  }

  &.error {
    background-color: #d63638;
  }

  &.success {
    background-color: #46b450;
  }
}

/* Notice */

.dnext-pe-wrapper {
  .dnext-ee-notice {
    padding: 24px 16px;
    margin: 100px 0;
    border-radius: 2px;
    background: #DEE2E6;

    h5 {
      color: #222C39;
      font-size: 12px;
      font-weight: 600;
      line-height: 100%;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    p {
      color: #222C39;
      font-size: 12px;
      font-weight: 400;
      line-height: 160%;
      letter-spacing: 0.5px;
      margin: 12px 0 0;
    }
  }

  input#dnxte_project_dashboard_icon {
    padding-left: 40px;
    max-width: 260px;
  }

  .dnxte-close-dashicon-picker {
    width: 35px;
  }

  .dnxte-icon-input-wrapper span.dashicons {
    position: absolute;
    left: 10px;
    top: 5px;
  }

  .dnext-select-dashicon {
    color: #FFF;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    border-radius: 2px;
    background: #30374F;
    cursor: pointer;
    padding: 8px;
    border: 0;
    outline: none;
    margin-left: 8px;
    transition: all .3s ease-in-out;
    position: absolute;
    top: 0;
    right: -90px;

    &:hover {
      background: #6B55D3;
      color: #fff;
    }
  }
}

/* Dashicons */

/* Dashicons */

.wrap.dnext-dashicons {
  .dnxte-dashicon-selector {
    position: relative;
  }

  .dnxte-dashicon-picker-container {
    position: absolute;
    z-index: 100;
    width: 360px;
    background: #fff;
    border: 1px solid #ddd;
    box-sizing: border-box;
    bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-top: 5px;
  }

  .dnxte-dashicon-picker-header {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .dnxte-dashicon-search {
    flex: 1;
    margin-right: 10px;
  }

  .dnxte-dashicon-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
  }

  .dnxte-dashicon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      background: #f9f9f9;
      border-color: #bbb;
    }

    &.selected {
      background: #2271b1;
      border-color: #2271b1;
      color: #fff;
    }

    .dashicons {
      font-size: 20px;
      width: 20px;
      height: 20px;
    }
  }

  input::placeholder {
    color: #9ca3af;
  }
}
