.document-detail-page {
  min-height: 100vh;
  padding: 50px 7% 70px;
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
    url("/png/miraiNihongo.jpg");
  background-size: cover;
  background-position: center;
  color: #0f274a;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb b {
  color: #2563eb;
}

.document-hero h1 {
  font-size: 44px;
  color: #0f1b7a;
  margin: 0 0 18px;
}

.document-hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #2563eb;
  border-radius: 999px;
  margin-top: 14px;
}

.document-hero p {
  font-size: 18px;
  color: #64748b;
  font-weight: 600;
}

.total-box {
  display: inline-block;
  margin: 24px 0;
  padding: 16px 24px;
  background: white;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

.document-list-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 20px 34px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.document-row {
  display: grid;
  grid-template-columns: 70px 1fr 100px 140px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #e5e7eb;
}

.document-row:last-child {
  border-bottom: none;
}

.file-type {
  width: 52px;
  height: 62px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #2563eb;
  background: white;
}

.file-type.PDF {
  border-color: #ef4444;
  color: #ef4444;
}

.file-type.MP3 {
  border-color: #16a34a;
  color: #16a34a;
}

.document-info h3 {
  margin: 0 0 10px;
  color: #0f274a;
  font-size: 20px;
}

.doc-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.document-meta {
  display: flex;
  gap: 24px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.document-size {
  color: #64748b;
  font-weight: 800;
}

.download-btn {
  width: 150px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-align: center;
  padding: 0 18px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  color: #2563eb;
  background: white;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.download-btn.locked {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}
.document-title-area {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

.document-title-area h1 {
  margin: 0 0 18px;
}

.document-title-area p {
  margin: 0;
}

.document-main-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0f1b7a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.document-main-icon i {
  font-size: 34px;
}

.total-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.total-box i {
  color: #2563eb;
  font-size: 22px;
}

.file-type {
  width: 56px;
  height: 66px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  position: relative;
}

.file-type::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  border-top: 14px solid currentColor;
  border-left: 14px solid transparent;
  opacity: 0.18;
}

.file-type.PDF {
  color: #ef4444;
  border-color: #ef4444;
}

.file-type.DOCX {
  color: #2563eb;
  border-color: #2563eb;
}

.file-type.MP3 {
  color: #16a34a;
  border-color: #16a34a;
}

.file-type.ZIP {
  color: #f59e0b;
  border-color: #f59e0b;
}