.ppu-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-top: 120px;
    margin-bottom: 20px;
}

.ppu-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    color: #eee;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid #333;
}


.ppu-toolbar-left,
.ppu-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}


.ppu-toolbar button {
    background: #2b2b2b;
    border: 1px solid #3a3a3a;
    color: #eee;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppu-toolbar button:hover {
    background: #3c3c3c;
    transform: translateY(-1px);
}

.ppu-toolbar button:active {
    transform: translateY(0);
}

#ppu-page-info {
    margin: 0 10px;
    font-weight: 500;
    font-size: 13px;
    color: #ddd;
}


#ppu-container {
    position: relative;
    height: 650px;
    overflow-y: auto;
    text-align: center;
    background: #fff;
}

#ppu-canvas {
    margin: 20px auto;
    display: block;
}

.ppu-overlay {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    color: #fff;
    z-index: 10;
}

.ppu-overlay-content {
    background: rgba(0, 0, 0, 0.75);
    padding: 24px 32px;
    border-radius: 8px;
    text-align: center;
    max-width: 380px;
}

.ppu-overlay-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.ppu-tools button {
    width: 36px;
    height: 32px;
}

.ppu-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}



/* Modal Popup */
.ppu-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.ppu-modal-content {
  background: #fff;
  color: #111;
  padding: 25px 35px;
  border-radius: 10px;
  width: 600px;
  max-width: 95%;
  text-align: center;
  position: relative;
  animation: ppu-fadein 0.3s ease;
}

.ppu-modal-content h3 {
  margin-bottom: 10px;
}

.ppu-modal-content p {
  margin-bottom: 15px;
  color: #444;
  font-size: 15px;
}

.ppu-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: #555;
  cursor: pointer;
}
.ppu-close:hover { color: #000; }

@keyframes ppu-fadein {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
