.app-detail-file {
  position: relative;
  z-index: 3;
  height: 100vh;
  padding: 0 75px;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Header styles */
.app-detail__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 115px;
}

.app-detail__logo-img {
  width: 132px;
  padding: 24px 0;
}

.app-detail__language {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.app-detail__language-btn {
  background: none;
  border: none;
  color: white;
  font-size: 0.75rem;
  padding: 5px 10px;
  cursor: pointer;
}

.app-detail__language-btn img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.app-detail__language-btn--active img {
  padding: 1px;
  border: 1px solid #fff;
  border-radius: 100px;
}

/* Navigation styles */
.app-detail__nav-list {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  max-width: 500px;
}

.app-detail__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff66;
  text-decoration: none;
  padding: 10px 0px;
  cursor: pointer;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
}

.app-detail__nav-icon {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: linear-gradient(to top, #10449e66, #10449e);
}

.app-detail__nav-icon img {
  width: 2rem;
}

.app-detail__nav-item--active {
  color: #fff;
}

/* Header tab styles */
.app-detail__header-tab {
  background-color: #e6eefc;
  padding: 15px;
  border-radius: 36px 36px 0 0;
  position: relative;
}

.app-detail__title {
  color: var(--bs-primary);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.625rem;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.app-detail__dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  margin: 6px 10px;
  padding: 10px 24px;
  border: 1px solid #ccd1d9;
  font-size: 0.9375rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-default);
}

.app-detail__dropdown-item--logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0 10px;
  padding: 10px 24px;
  background-color: #e1edff;
  font-size: 0.9375rem;
  border-radius: 6px;
  border: none;
  color: #206de5;
}

.app-detail__back-btn {
  color: var(--bs-primary);
  background: none;
  border: none;
  font-size: 1.25rem;
  position: absolute;
  left: 2rem;
  color: #206de5;
}

/* Tab container styles */
.app-detail__tab-container {
  background-color: white;
  padding: 0 115px;
  overflow: hidden;
}

.app-detail__tab-nav {
  display: flex;
  justify-content: center;
  margin: -5px auto 0 auto;
  height: 66px;
  width: 520px;
  position: relative;
  background-image: url(../assets/images/background-tabs.png);
  background-size: 520px 66px;
  background-repeat: no-repeat;
  padding-top: 8px;
}

.app-detail__tab-link {
  border: none;
  border-radius: 12px;
  color: #3b3b3b;
  margin: 0 5px;
  padding: 10px 28px;
  height: 44px;
  width: 167.5px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background-color: white;
  text-decoration-line: none;
}

.app-detail__tab-link.active {
  background-color: var(--secondary-pink);
  color: white;
}

/* Document grid styles */
.app-detail__document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 15px;
}

.app-detail__document-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
  height: 200px;
}

.app-detail__document-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-detail__timestamp {
  position: absolute;
  right: 2rem;
  text-align: right;
  color: #206de5;
  font-size: 15px;
}

.app-detail__iframe {
  width: 100%;
  min-height: 60vh;
  border: none;
}

/* Footer styles */
.app-detail__footer {
  height: 58px;
  border-top: 1px solid #ccd1d9;
  padding: 0 115px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-detail__delete-btn {
  height: 44px;
  font-weight: 400;
  font-size: 1rem;
  color: #e14547;
  background-color: #fff;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
}

.app-detail__download-group {
  display: flex;
  gap: 8px;
}

.app-detail__download-btn {
  height: 44px;
  font-weight: 700;
  font-size: 16px;
  padding: 0 12px;
  border-radius: 10px;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-detail__download-btn--word {
  background-color: #3584d8;
}

.app-detail__download-btn--excel {
  background-color: #23a76b;
}

.app-detail__download-btn--pdf {
  background-color: #0366ff;
}

.app-detail__download-icon {
  height: 1.75rem;
  width: 1.75rem;
  padding: 2px;
  border-radius: 50px;
  background-color: white;
}

/* Responsive styles */
@media (max-width: 576px) {
  .app-detail-file {
    padding: 0 0px;
  }

  .app-detail__top-bar {
    padding: 0;
  }

  .app-detail__tab-container {
    padding: 0 12px;
  }

  .app-detail__nav-list {
    padding: 0 16px;
  }

  .app-detail__tab-nav {
    margin-top: 4px;
    width: fit-content;
    background-image: none;
  }

  .app-detail__footer {
    padding: 0 12px;
  }

  .app-detail__download-text {
    display: none;
  }

  .app-detail__tab-link {
    width: fit-content;
    height: fit-content;
  }

  .app-detail__document-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }

  .app-detail__dropdown-item {
    padding: 8px 16px;
  }

  .app-detail__dropdown-item--logout {
    padding: 8px 16px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .app-detail-file {
    padding: 0 12px;
  }

  .app-detail__top-bar {
    padding: 0;
  }

  .app-detail__tab-container {
    padding: 0 24px;
  }

  .app-detail__tab-nav {
    margin-top: 4px;
    width: fit-content;
    background-image: none;
  }

  .app-detail__footer {
    padding: 0 24px;
  }

  .app-detail__download-icon {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .app-detail-file {
    padding: 0 16px;
  }

  .app-detail__top-bar {
    padding: 0 24px;
  }

  .app-detail__tab-container {
    padding: 0 24px;
  }

  .app-detail__footer {
    padding: 0 24px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .app-detail-file {
    padding: 0 24px;
  }

  .app-detail__top-bar {
    padding: 0 48px;
  }

  .app-detail__tab-container {
    padding: 0 48px;
  }

  .app-detail__footer {
    padding: 0 48px;
  }
}
