.navbar {
  background-color: #202020 !important;
  border: none !important;

  a.nav-link {
    color: #fff !important;
  }
}

.footer {
  background-color: #202020;
}

.download-preview-wrapper {
  border-radius: 8px !important;
  overflow: hidden;
  max-height: 180px;
  display: flex;
  justify-content: center;
}

.download-preview-thumb {
  width: 100%;
  height: 180px;
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px !important;
}

.download-container {
  .download-preview-wrapper {
    margin-top: 0;
    padding: 0;
    width: 100%;
  }

  .button-download {
    .file-name-wrap {
      margin-top: 0;
      padding: 16px 4px 0 4px;
      font-size: 12px;
      background: transparent;
      border: none;
      color: inherit;
      cursor: pointer;
      height: 100%;
      line-height: 1.2;
    }

    .file-download-action {
      cursor: pointer;
      height: 100%;
      text-decoration: none;
      color: inherit;
      background: #202020;
      border-radius: 0 6px 6px 0;
    }
  }
}

.download-file-preview-offcanvas {
  background: #1c1c1c;
  color: #fff;
  --bs-offcanvas-width: min(960px, 100vw);
  width: min(960px, 100vw);

  .offcanvas-title {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.download-file-preview-body {
  min-height: 200px;

  img,
  video {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 8px;
  }

  iframe {
    width: 100%;
    height: calc(100vh - 140px);
    border: 0;
    background: #fff;
    border-radius: 8px;
  }

  audio {
    width: 100%;
  }

  pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    background: #111;
    padding: 12px;
    border-radius: 8px;
  }
}

.download-file-preview-empty {
  opacity: 0.8;
}
