.pdf-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

.pdf-modal-overlay.is-open {
  display: flex;
}

.pdf-modal-content {
  background: #fff;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.pdf-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  width: 44px;
  height: 44px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal-close:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

.pdf-viewer-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.pdf-viewer-iframe {
  width: 100%;
  flex-grow: 1;
  border: 0;
  display: block;
  background: #f3f4f6;
}

.pdf-modal-footer {
  padding: 15px 25px;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.pdf-file-info {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
  font-family: sans-serif;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-blue-200, #0056b3);
  color: #ffffff;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.pdf-download-btn:hover {
  background-color: var(--color-blue-100, #004494);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.pdf-download-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .pdf-modal-overlay {
    padding: 0;
    background-color: #000;
  }

  .pdf-modal-content {
    max-height: 100%;
    height: 100dvh;
  }

  .pdf-modal-close {
    top: 12px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    width: 40px;
    height: 40px;
  }

  .pdf-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .pdf-modal-footer {
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 15px;
  }

  .pdf-file-info {
    display: none;
  }

  .pdf-download-btn {
    width: 100%;
    height: 44px;
    font-size: 15px;
  }
}
