/* ------------------------------
   Deployment Center Tabs
------------------------------ */
#deployment-center-tabs {
  overflow: hidden;
}

#deployment-center-tabs .tabs::before,
#deployment-center-tabs .tabs::after {
  content: none;
}

#deployment-center-tabs .tabs-content {
  border: none;
  margin-top: 4rem;
}

#deployment-center-tabs .tabs-panel.is-active {
  display: flex;
  padding: 0;
}

#deployment-center-tabs .tabs-title > a:focus,
#deployment-center-tabs .tabs-title > a[aria-selected="true"] {
  background: none;
}

/* Main tabs only */
#deployment-center-tabs .tabs li:not(.gdb-enterprise-tab):not(.gdb-community-tab):not(.gds-enterprise-tab):not(.gds-community-tab) {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #fff 0%, #fff 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s, filter 0.3s;
}

#deployment-center-tabs .tabs li:not(.gdb-enterprise-tab):not(.gdb-community-tab):not(.gds-enterprise-tab):not(.gds-community-tab)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(1, 64, 99, 1) 0%, rgba(10, 97, 144, 1) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease-in-out;
}

#deployment-center-tabs .tabs li:not(.is-active):not(.gdb-enterprise-tab):not(.gdb-community-tab):not(.gds-enterprise-tab):not(.gds-community-tab):hover {
  filter: drop-shadow(0 0 6px lightgray);
}

#deployment-center-tabs .tabs li.is-active:not(.gdb-enterprise-tab):not(.gdb-community-tab):not(.gds-enterprise-tab):not(.gds-community-tab) {
  color: #fff;
}

#deployment-center-tabs .tabs li.is-active:not(.gdb-enterprise-tab):not(.gdb-community-tab):not(.gds-enterprise-tab):not(.gds-community-tab)::before {
  opacity: 1;
}

#deployment-center-tabs .tabs .tabs-title {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 0.8rem;
  box-shadow: rgba(0, 0, 0, 0.14) 0 10px 15px 0;
}

#deployment-center-tabs .tabs .tabs-title a {
  color: #535b66 !important;
  font-weight: 700;
  padding: 1.25rem 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.25px;
}

#deployment-center-tabs .tabs .tabs-title img {
  width: 2.5rem;
  position: absolute;
  top: 2rem;
  margin: inherit;
}

#deployment-center-tabs .tabs .tabs-title.is-active a {
  color: #fff !important;
}

#deployment-center-tabs .tabs .tabs-title.is-active img {
  filter: brightness(0) invert(1);
}

/* ------------------------------
   Checkmark List
------------------------------ */
#deployment-center-tabs .c-checkmark-circle li {
  list-style: none !important;
  position: relative;
  left: 5px;
  margin-bottom: 1rem;
}

#deployment-center-tabs .c-checkmark-circle li::before {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: -1.5rem;
  top: 4px;
  background: url("https://dist.neo4j.com/wp-content/uploads/20231024070824/check-circle-icon.svg") no-repeat;
}

/* ------------------------------
   Tab Content Section
------------------------------ */
#deployment-center-tabs .tab-content-section {
  width: 100%;
  padding: 3rem 4rem 4rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.14) 0 10px 15px 0;
}

#deployment-center-tabs .tab-content-section.section-ops-manager {
  padding: 3rem 4rem 0 2rem;
}

#deployment-center-tabs .tab-content-section h2.h4 {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-family: var(--wp--preset--font-family--syne-neo) !important;
}

#deployment-center-tabs .dpb {
  padding-bottom: 0;
}

/* ------------------------------
   Nested Tabs
------------------------------ */
#deployment-center-tabs #nested-tabs-1 li,
#deployment-center-tabs #nested-tabs-2 li {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  background: none;
  box-shadow: none;
}

#deployment-center-tabs #nested-tabs-1 li.is-active,
#deployment-center-tabs #nested-tabs-2 li.is-active {
  background: none;
}

#deployment-center-tabs #nested-tabs-1 li a,
#deployment-center-tabs #nested-tabs-2 li a {
  max-width: 100%;
  padding: 0.8rem 1.2rem;
  color: #0a6190 !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

#deployment-center-tabs #nested-tabs-1 li.is-active a,
#deployment-center-tabs #nested-tabs-2 li.is-active a {
  padding: 0.8rem 1.2rem;
  color: #0a6190 !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #0a6190;
  border-radius: 100px;
  background: #fff;
}

#deployment-center-tabs #nested-tabs-1.tabs,
#deployment-center-tabs #nested-tabs-2.tabs {
  padding: 6px;
  background: #e7fafb;
  border-radius: 100px;
  border: 1px solid #0a6190;
}

#deployment-center-tabs [data-tabs-content="nested-tabs-1"],
#deployment-center-tabs [data-tabs-content="nested-tabs-2"] {
  margin-top: 2rem;
}

/* ------------------------------
   Drivers Tab
------------------------------ */
#deployment-center-tabs #drivers-tab {
  flex-direction: column;
  align-items: flex-start;
}

#deployment-center-tabs #drivers-tab > h2,
#deployment-center-tabs #drivers-tab > p {
  width: 100%;
  text-align: left;
}

#deployment-center-tabs #drivers-tab > .card-grid {
  width: 100%;
}

#drivers-tab .card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1.6rem;
}

#drivers-tab .card-grid .card {
  width: 11rem;
  height: 8rem;
  flex: 0 0 15%;
  margin: 1.6rem;
  border: 1px solid #d5d9de;
  border-radius: 8px;
  background: #fff;
}

#drivers-tab .card-grid .card img {
  width: 2rem;
  position: absolute;
  right: -1px;
}

#drivers-tab .card-grid .logo-content,
#drivers-tab .card-grid .logo-content-official {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#drivers-tab .card-grid .card .driver-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  height: 100%;
  font-size: 14px;
}

#drivers-tab .card-grid .card .driver-details p {
  margin-bottom: 0;
  color: #535b66;
  font-weight: 700;
}

#drivers-tab .card-grid .card > a {
  height: 100%;
  text-decoration: none;
}

#drivers-tab .card-grid .card:hover {
  background: #f5f7fa;
  box-shadow: -5px 0 0 #0a6190;
}

#drivers-tab .card-grid .card:hover .logo-content,
#drivers-tab .card-grid .card.driver-official:hover {
  box-shadow: -5px 0 0 #0a6190;
}

#drivers-tab .card-grid .card .logo-content {
  cursor: pointer;
}

#drivers-tab .card-grid .logo-content img,
#drivers-tab .card-grid .logo-content-official img {
  width: 5rem;
  position: static;
}

#drivers-tab .card-grid .logo-content p,
#drivers-tab .card-grid .logo-content-official p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

#drivers-tab .card-grid .driver-official {
  height: 10rem;
  padding-bottom: 1rem;
}

/* ------------------------------
   Hidden / Obsolete Elements
------------------------------ */
#ops-manager-agents-options,
[id^="cyshell"]:nth-child(n + 3),
#apco-download {
  display: none;
}

[data-sha^="neo4j-kafka-connect"] #apco-download {
  display: block;
}

[data-sha^="neo4j-kafka-connect"] #apco-visit {
  display: none;
}

/* ------------------------------
   Custom Select Styles
------------------------------ */
.select-container {
  position: relative;
  width: 100%;
  height: 12rem;
}

.select-custom {
  position: relative;
  z-index: 2;
  height: 50px;
  margin-left: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid lightgray;
  border-radius: 6px;
  cursor: pointer;
}

.select-custom.selected {
  height: auto !important;
}

.select-custom li {
  display: flex;
  align-items: center;
  height: 50px;
  padding-left: 2rem;
  color: #0a6190;
  font-weight: 700;
}

.select-custom li:not(:first-child):hover {
  background: lightgray;
}

.select-arrow {
  position: absolute;
  top: 16px;
  right: 1rem;
  z-index: 3;
  display: inline-block;
  padding: 6px;
  border: solid #0a6190;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
  transition: all 200ms ease-in-out;
}

.select-arrow.rotate {
  transform: rotate(135deg);
}

.secondary-select {
  position: absolute;
  top: 80px;
  z-index: 1;
  height: 0;
}

.select-text-italic {
  margin-left: 0.5rem;
  color: #151e29;
  font-weight: 400;
  font-style: italic;
}

#select-docker-2 {
  cursor: inherit;
}

#select-kerberos {
  height: 60px;
}

/* ------------------------------
   Enterprise + Community Cards
------------------------------ */
.gdb-card {
  position: absolute;
  top: 68px;
  width: 100%;
  height: 131px;
  padding: 0.6rem 1.2rem;
  color: #fff;
  border-radius: 8px;
}

.gdb-card p {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.gdb-card a {
  color: #fff !important;
}

.gdb-card a::after {
  content: url("https://dist.neo4j.com/wp-content/uploads/20240401111539/arrow-right-white.svg");
  font-size: 16px;
}

.gdb-enterprise-card {
  background: no-repeat center url("https://dist.neo4j.com/wp-content/uploads/20250709064945/enterprise-card-bg.svg");
}

.gdb-community-card {
  background: no-repeat center url("https://dist.neo4j.com/wp-content/uploads/20250709064943/community-card-bg.svg");
}

.gdb-enterprise-card + .download-section,
.gdb-community-card + .download-section {
  top: calc(68px + 152px);
}

#gdb-selfmanaged {
  padding-bottom: 200px !important;
}

#repositories-gdb {
  position: relative;
  top: 170px;
}

/* ------------------------------
   Download Section
------------------------------ */
.download-section {
  position: absolute;
  top: 68px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.download-section a:nth-child(3) {
  padding-left: 1.4rem;
  border-left: 1px solid gray;
}

.download-section small {
  position: absolute;
  bottom: -26px;
  left: 5rem;
  width: 120%;
  color: #0a6190;
  text-decoration: underline;
  cursor: pointer;
}

.download-section small.dc-sha-trigger[hidden] {
  display: none !important;
}

.download-section small .sha-value {
  position: absolute;
  top: 1.5rem;
  left: -5rem;
  margin-left: 0.5rem;
  color: initial;
  text-decoration: none;
  cursor: default;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 14rem;
  height: 50px;
  background: linear-gradient(45deg, rgba(1, 64, 99, 1) 0%, rgba(10, 97, 144, 1) 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-download:hover,
a.btn-download:focus {
  filter: brightness(1.2);
  color: #fff;
}

.download-release-container {
  display: flex;
  justify-content: space-between;
  flex: auto;
  margin-left: 1rem;
}

.download-release-container a {
  color: #151e29;
  text-decoration: underline;
}

.download-release-container a:nth-child(2) {
  padding-left: 1rem;
  border-left: 2px solid gray;
}

#sc-neo4j-enterprise .download-release-container a:nth-child(2),
#sc-neo4j-community .download-release-container a:nth-child(2),
#sc-gds-enterprise .download-release-container a:nth-child(2),
#sc-gds-community .download-release-container a:nth-child(2) {
  padding-left: 2rem;
}

/* SHA loading spinner */
.sha-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a6190;
  font-style: italic;
}

.sha-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10, 97, 144, 0.25);
  border-top-color: #0a6190;
  border-radius: 50%;
  animation: sha-spin 0.7s linear infinite;
}

@keyframes sha-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------
   Self-Managed Text
------------------------------ */
.self-managed-enterprise-text,
.self-managed-enterprise-text-gds {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-bottom: 4rem;
}

.self-managed-enterprise-text.hidden,
.self-managed-enterprise-text-gds.hidden {
  display: none;
}

/* ------------------------------
   Repository / Layout Tweaks
------------------------------ */
#sc-gds-lib-community {
  height: auto !important;
  margin-bottom: 2rem !important;
}

#sc-gds-lib-enterprise {
  margin-bottom: -5.9rem;
}

#deployment-center-tabs hr {
  width: 100%;
  margin-top: 3rem;
}

[data-c="DEPLOYMENT_CENTER_PAGE"] a:not(.button):not(.btn-download) {
  color: #0a6190;
}

/* ------------------------------
   Partner Buttons / Badges
------------------------------ */
.partner-btn-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.6rem;
}

.partner-btn-container a {
  min-width: 11rem;
  max-width: 11rem;
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
}

.partner-btn-container img {
  height: 2.6rem;
}

.partner-btn-container h5,
.partner-btn-container a {
  font-size: 0.875rem;
  font-weight: 600;
}

.marketplaces-logo-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marketplaces-logo-container .partner-btn-container:last-child img {
  height: 3rem;
}

.partner-badges {
  display: flex;
}

.partner-badges img {
  max-width: 150px;
  margin-right: 1rem;
}

/* ------------------------------
   Scroll Behavior
------------------------------ */
#deployment-center-tabs .tab-content-section,
#auradb-cloud,
#gdb-selfmanaged,
#desktop-gdb-tab1,
#desktop-gdb-tab2,
#desktop-gdb-tab3,
#docker-gdb,
#marketplaces-gdb,
#aurads-cloud,
#aura-graph-analytics,
#gds-selfmanaged,
#docker-gds,
#marketplaces-gds,
#bloom-gds,
#graphql,
#nvl,
#kafka,
#spark,
#bi-connector,
#data-warehouse,
#kerberos,
#spring-data,
#neo4j-ogm,
#ops-manager,
#enterprise-studio,
#cypher-shell,
#bloom-tools,
#neodash-tools,
#kubernetes {
  scroll-margin-top: 7rem;
}

/* ------------------------------
   Mobile Styles
------------------------------ */
@media only screen and (max-width: 767px) {
  #deployment-center-tabs {
    padding-top: 0;
  }

  #deployment-center-tabs .tab-content-section {
    width: 100%;
    padding: 2rem 12px;
    margin-top: 2rem;
  }

  #deployment-center-tabs .tab-content-section:first-child {
    margin-top: 0;
  }

  #deployment-center-tabs .tab-content-section.double-select {
    padding-bottom: 0;
  }

  #deployment-center-tabs .tab-content-section #nested-tabs-1,
  #deployment-center-tabs .tab-content-section #nested-tabs-2 {
    margin-top: 1rem;
  }

  #deployment-center-tabs .tab-content-section .select-custom li {
    display: block;
    width: 88%;
    padding-left: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 50px;
    font-size: 0.9rem;
  }

  #deployment-center-tabs .tab-content-section h4 {
    font-size: 1.4rem;
  }

  #deployment-center-tabs #main-top-tabs {
    flex-direction: column;
  }

  #deployment-center-tabs #main-top-tabs .tabs-title {
    width: 100%;
    height: 11rem;
    padding-bottom: 0;
  }

  #deployment-center-tabs #main-top-tabs .tabs-title:not(:first-child) {
    margin-top: 1rem;
  }

  #deployment-center-tabs .secondary-select-container .download-section,
  #deployment-center-tabs .select-container .download-section {
    flex-direction: column;
    align-items: center;
  }

  #deployment-center-tabs .secondary-select-container .download-section .btn-download,
  #deployment-center-tabs .select-container .download-section .btn-download {
    max-width: 18rem;
  }

  #deployment-center-tabs .secondary-select-container .download-release-container,
  #deployment-center-tabs .select-container .download-release-container {
    margin-top: 1rem;
    margin-left: 0;
  }

  #deployment-center-tabs #drivers-tab .card-grid {
    flex-direction: column;
    width: 100%;
    margin: inherit;
  }

  #deployment-center-tabs #drivers-tab .card-grid .card {
    width: 100%;
    margin: 2rem 0 0;
  }

  #deployment-center-tabs #drivers-tab .card-grid .logo-content,
  #deployment-center-tabs #drivers-tab .card-grid .logo-content-official {
    justify-content: center;
    height: 6rem;
    padding-left: 1.2rem;
  }

  #deployment-center-tabs .tabs-panel > h3 {
    text-align: center;
  }

  #deployment-center-tabs .select-custom li {
    padding-left: 12px;
    font-size: 0.9rem;
  }

  #deployment-center-tabs #sc-gds-lib-community {
    margin-top: 3rem;
    margin-bottom: -3rem;
  }

  #sc-repositories {
    margin-top: 1rem;
  }

  .repo-section-1,
  .repo-section-2 {
    position: relative;
    bottom: -2rem;
  }

  .hide-for-mobile {
    display: none !important;
  }

  .gdb-card p {
    font-size: 12px;
  }

  .download-release-container a:nth-child(2) {
    border: none !important;
  }

  .download-section small {
    display: none;
  }

  .partner-btn-container {
    flex-direction: column;
  }

  .partner-btn-container img {
    height: auto;
  }

  .marketplaces-logo-container {
    gap: 2rem;
  }

  .marketplaces-logo-container .partner-btn-container:last-child img {
    height: 5rem;
  }

  .partner-badges {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }

  .partner-badges img {
    max-width: 100%;
    margin-top: 1rem;
    margin-right: 0;
    height: 5rem;
  }
}

.desktop-version-release-date {
    color: rgb(21, 30, 41);
    font-weight: normal;
    font-style: italic;
}

.desktop-version-support-copy {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: rgb(21, 30, 41);
}

.dc-tab-loading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding: 2rem 0;
  color: #535b66;
}

.dc-tab-loading__spinner {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.dc-tab-loading__svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: dc-tab-spin 0.9s linear infinite;
}

.dc-tab-loading__arc {
  transform-origin: 24px 24px;
}

.dc-tab-loading.is-error {
  display: block;
  padding: 2rem 0;
  color: #c0392b;
}

@keyframes dc-tab-spin {
  to {
    transform: rotate(360deg);
  }
}

