#app-container {
  width: 95%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
  margin-bottom: 20px;
}

/*homepage */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 700px;
  margin: auto;
}

.tool {
  background: #007bff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.tool:hover {
  background: #333;
}

.tool img {
  width: 64px;
  height: 64px;
  margin-bottom: 0.5rem;
}
/* END HOMEPAGE */

nav {
  margin-bottom: 20px;
    text-align: center;
}
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}
#drop-area {
  border: 2px dashed #999;
  border-radius: 10px;
  background-color: #fff;
  padding: 30px 20px;
  margin: 20px 0;
  cursor: pointer;
}
#drop-area:hover {
  background-color: #eefaff;
}
.file-label {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
.file-label:hover {
  background-color: #005ecb;
}
.file-label input[type="file"] {
  display: none;
}

/* Split */

#page-preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.page-thumbnail {
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  padding: 5px;
  text-align: center;
}
.page-thumbnail canvas {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 5px;
}

/* Merge */

#file-list {
  margin-top: 20px;
  text-align: left;
}
#file-list > div {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.file-actions button {
  margin-left: 5px;
  cursor: pointer;
}

/* END MERGE */



#buttons {
  margin-top: 20px;
  gap: 12px;
}
button, #downloadLink {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
button:hover, #downloadLink:hover {
  background: #005ecb;
}


footer1 {
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #aaa;
}

/* Related Tools + Share Box */
.tools-share-box {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}

.related-tools h2 {
  font-size: 1.1rem;
  color: #334155;
  margin: 0 0 1rem 0;
}

.related-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  transition: all 0.2s ease;
  min-width: 100px;
}

.related-tile:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.related-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.related-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.share-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1.25rem 0;
}

.share-section .share-prompt {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}

.share-section .share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-section button,
.share-section a {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-section button:hover,
.share-section a:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.share-section .copy-confirm {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #10b981;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.share-section .copy-confirm.visible {
  opacity: 1;
  visibility: visible;
}