@import "live-edit";

@import "components/reading-mode/button";
@import "components/settings";
@import "components/toggle-builder";
@import "components/getting-started";
@import "components/admin-toggle";
@import "components/analytics";
@import "components/setup";

.field-dark-mode-css {
  @import "./components/inludes/code-editor";

  .cm-s-default.CodeMirror {
    border-radius: 10px;
  }

}

body.dark-mode_page_dracula-toggle-builder {
  #wpfooter {
    display: none;
  }
}

// Menu settings

// Menu
.menu-top#toplevel_page_dracula {

  img {
    width: 20px;
  }

  .wp-submenu {
    a[href="admin.php?page=dracula-getting-started"] {
      color: lighten(#675ed5, 20%) !important;
      text-shadow: 0 0 3px rgba(103, 94, 213, 0.7);
      border-top: 1px solid hsla(0, 0%, 100%, .2);
      border-bottom: 1px solid hsla(0, 0%, 100%, .2);
      padding: 8px 12px;
      display: flex;
      align-items: center;
      margin: 6px 0;
    }

    li {
      &:last-child {
        a {
          border-bottom: 0;
          margin-bottom: 0;
        }
      }
    }
  }

  a:has(.dracula-icon.icon-pro) {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: darken(#ffc300, 2%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3px;
    padding-top: 7px;

    i {
      margin-right: 5px;
    }

    &:hover {
      color: darken(#ffc300, 5%);
    }

  }
}

.dracula_dark_mode_nav_link {
  .accordion-trigger {
    background-image: url("../images/dracula-logo.svg") !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    background-position: 12px center !important;
    padding-left: 40px !important;
  }
}

.dracula-dark-mode-switches-panel {
  margin-bottom: 25px;

  h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px !important;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }
}

.menu-item-dracula-dark-mode-switch {
  .menu-item-handle {
    background-image: url("../images/dracula-logo.svg") !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    background-position: 12px center !important;

    label {
      padding-left: 25px !important;
    }
  }
}
