

#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;
}