.sidebar-main {
  position: fixed;
  width: 100%;
  top: 0px;
  left: auto;
  right: 0;
  margin: auto;
  max-width: var(--naviWidth);
  height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  background-color: var(--bgSecondary);
  z-index: -20;
  opacity: 0.69;
  transform: translateX(100%);
  -webkit-transition: opacity 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -moz-transition: opacity 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -o-transition: opacity 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  transition: opacity 200ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
}

.admin-bar .sidebar-main {
  height: calc(100vh - 32px);
}

@media (max-width: 782px) {
  .admin-bar .sidebar-main {
    height: calc(100vh - 46px);
  }
}

.admin-bar .sidebar-main {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .sidebar-main {
    top: 46px;
  }
}


.sidebar-main.active {
  opacity: 1;
  transform: translateX(0px);
  z-index: 1002;
}

.sidebar-main-inner {
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  -webkit-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -moz-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -o-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  padding: 100px 42px;

  transform: translateX(100px);
  opacity: 0;
}

@media only screen and (max-width: 899px) {
  .sidebar-main-inner {
    padding: 85px 32px;
  }
}

@media only screen and (max-width: 399px) {
  .sidebar-main-inner {
    padding: 70px 20px;
  }
}

.sidebar-main.active .sidebar-main-inner {
  transform: translateY(0);
  opacity: 1;
}

.sidebar-main-close {
  display: flex;
  position: absolute;
  padding: 0;
  margin: 0;
  z-index: 102;
  width: 50px;
  height: 50px;
  transition: all 0.2s ease;
  align-items: center;
  top: 10px;
  right: 20px;
}

.sidebar-main .input-wrap {
}

.sidebar-main input,
.sidebar-main button,
.sidebar-main textarea {
  background: none;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-main input:hover,
.sidebar-main button:hover,
.sidebar-main textarea:hover {
  background: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.sidebar-main input:focus,
.sidebar-main button:focus,
.sidebar-main textarea:focus {
  background: none;
  border-color: rgba(255, 255, 255, 0.75);
}

.sidebar-main input[type=file] {
  padding: 0;
  border: none;
}

.sidebar-main input[type=file]::file-selector-button {
  margin-right: 20px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 14px;
  cursor: pointer;
}

.sidebar-main input[type=file]::file-selector-button:hover {
  background: none;
  border-color: rgba(255, 255, 255, 0.75);
}

.sidebar-main .input-wrap button {
  padding: 14px 14px;
}

/**
 * Sidebar news
*/

#sidebar-news {
}

#sidebar-news.loading {
  overflow: hidden;
}

.sidebar-main-loader {
  position: fixed;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--bgSecondary);
  opacity: 0;
  z-index: -20;
}

#sidebar-news.loading .sidebar-main-loader {
  opacity: 1;
  z-index: 20;
}

.sidebar-main-loader::before,
.sidebar-main-loader::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  width: 50px;
  height: 1px;
  margin: auto;
  opacity: 0;
  z-index: -19;
}

.sidebar-main-loader::before {
  content: "loading...";
  transform: translate(-10px, -35px);
}

.sidebar-main-loader::after {
  width: 180px;
  background: #ffffff;
  animation: loader 1s ease infinite;
  transform-origin: 0%;
}

@keyframes loader {
  0% {
    transform: scaleX(0);
  }
  30% {
    transform: scaleX(100%);
    transform-origin: 0%;
  }
  51% {
    transform: scaleX(100%);
    transform-origin: 100%;
  }
  90% {
    transform: scaleX(0%);
    transform-origin: 100%;
  }
  100% {
    transform: scaleX(0%);
    transform-origin: 0%;
  }
}

#sidebar-news.loading .sidebar-main-loader::before,
#sidebar-news.loading .sidebar-main-loader::after {
  opacity: 1;
  z-index: 20;
}

.sidebar-news-content-wrapper {
  -webkit-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -moz-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  -o-transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  transition: all 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  opacity: 1;
  transform: translateX(0);
}

#sidebar-news.loading .sidebar-news-content-wrapper {
  opacity: 0;
  transform: translateX(50px);
}

.sidebar-news-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-news-content h1,
.sidebar-news-content h2,
.sidebar-news-content h3,
.sidebar-news-content h4,
.sidebar-news-content h5,
.sidebar-news-content h6 {
  margin-top: 1em;
  margin-bottom: 0.75em;
  line-height: 1.33;
}

.sidebar-news-content h1 {
  font-size: 1.85rem;
}

.sidebar-news-content h2 {
  font-size: 1.65rem;
}

.sidebar-news-content h3 {
  font-size: 1.45rem;
}

.sidebar-news-content h4 {
  font-size: 1.25rem;
}

.sidebar-news-content h5 {
  font-size: 1rem;
}

.sidebar-news-content strong,
.sidebar-news-content b {
  font-weight: bold;
}

.sidebar-news-content em,
.sidebar-news-content i {
  font-style: italic;
}