/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
  letter-spacing: 0.15px;
}

.authentication-wrapper .app-brand-text.demo {
  text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}
/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

/* Sidebar alt menü öğelerinde ikonların üstüne binen yuvarlak ::before noktasını kaldır -hasancancap */
.menu .menu-sub > .menu-item > .menu-link::before,
.menu-vertical .menu-inner > .menu-item .menu-sub .menu-link::before,
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner > .menu-item .menu-sub .menu-sub .menu-link::before,
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner > .menu-item .menu-sub .menu-sub .menu-sub .menu-link::before {
  display: none !important;
}

/* ─── Sidebar elektrik/gradient border efekti ───────────────────────────────
   Sağ üst köşe: yeşil (#00FF2A), sol alt köşe: mavi (#0055FF)
   Köşe parıltıları + elektrik flicker animasyonu -hasancancap */

@keyframes pz-flicker {
  0%,  100% { opacity: 1;   }
  3%         { opacity: 0.3; }
  5%         { opacity: 1;   }
  21%        { opacity: 1;   }
  22%        { opacity: 0.1; }
  23%        { opacity: 1;   }
  50%        { opacity: 1;   }
  51%        { opacity: 0.5; }
  53%        { opacity: 1;   }
  78%        { opacity: 1;   }
  79%        { opacity: 0.2; }
  81%        { opacity: 1;   }
}

@keyframes pz-glow-pulse {
  0%, 100% {
    box-shadow:
      -12px 14px 40px rgba(0, 85, 255, 0.6),
      14px -12px 40px rgba(0, 255, 42, 0.6);
  }
  50% {
    box-shadow:
      -5px 6px 18px rgba(0, 85, 255, 0.2),
      6px -5px 18px rgba(0, 255, 42, 0.2);
  }
}

/* Köşe parıltısı (dışa yayılan glow); position buraya yazılmıyor çünkü core.css fixed tanımını eziyor -hasancancap */
#layout-menu {
  animation: pz-glow-pulse 3s ease-in-out infinite;
}

/* Gradient border: sağ üst → yeşil, sol alt → mavi -hasancancap */
#layout-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  padding: 2px;
  background: linear-gradient(
    to top right,
    #0055ff   0%,
    rgba(0, 85, 255, 0.55) 18%,
    transparent 38%,
    transparent 62%,
    rgba(0, 255, 42, 0.55) 82%,
    #00ff2a   100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pz-flicker 6s step-end infinite;
}
