@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 10rem;
    overflow: hidden;
  }
  100% {
    opacity: 0;
    transform: translateY(-1.2rem);
    max-height: 0;
    padding: 0;
    margin: 0;
    display: none;
  }
}

.fade-out {
  animation: fadeOutUp 0.5s ease-out forwards;
}

.note_sidebar details[open] {
  background-color: unset !important;
  border: none !important;
  animation: none !important;
}

html[data-theme="dark"] .note_sidebar details[open] {
  background-color: unset !important;
  border: none !important;
  animation: none !important;
}

.note_sidebar details[open] summary ~ * {
  animation: none;
}

.note_sidebar details::details-content {
  opacity: 0;
  transition: opacity 600ms;
}

.note_sidebar details[open]::details-content {
  opacity: 1;
}
.note_sidebar .arrow-icon {
  transform-origin: center;
  transform: rotate(-90deg);
}

.note_sidebar details[open] .arrow-icon {
  transform: rotate(90deg);
}

.upgrade-badge {
  background: linear-gradient(90deg, #008CFF 0%, #FF3C7D 60%, #FFB300 100%);
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  border-top-right-radius: 1.5em;
  border-bottom-left-radius: 1.5em;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}

.note_sidebar .file-card:has(.file-checkbox:checked) {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.content-wrapper:has(#new_links [data-file-input-target="newLinkRow"]:nth-of-type(9)) .new-link {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}
