* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-container {
  background: white;
  max-width: 650px;
  width: 90%;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

h1 {
  margin-bottom: 10px;
}

p {
  color: #64748b;
  margin-bottom: 20px;
}

/* DROP ZONE */
.drop-zone {
  border: 2px dashed #2563eb;
  padding: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  background: #eff6ff;
}

.drop-zone:hover {
  background: #dbeafe;
}

.drop-zone.dragover {
  background: #bfdbfe;
}

/* PREVIEW GRID */
.preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.preview img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* BUTTON */
button {
  margin-top: 20px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
}

button:hover {
  transform: translateY(-2px);
}

/* STATUS */
.status {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #16a34a;
}
.dark-mode {
      background: #0f172a;
      color: rgb(176, 241, 236);
  

}
.dark-mode .preview-box {
    background: #1e1e1e;
}

.homebtn {
  position: fixed;
  top: 20px;
  left: 20px;

  min-height: 40px;
  padding: 8px 16px;

  background: hwb(62 0% 0% / 0.85);
  color: black !important;
  text-decoration: none;

  border-radius: 6px;
  font-weight: 500;
  z-index: 9999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: 0.25s ease;
}

/* 
@media (max-width: 360px) {
  .homebtn {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
  }
} */
.homebtn:hover {
  background:#00f2ff;
  font-weight:bold;
}

/* Mobile */  
@media (max-width: 500px) {
  .pdf-container {
    padding: 20px;
  }
}



@media (max-width: 500px) {
  body {
    align-items: flex-start;
    padding-top: 60px;
  }

  .pdf-container {
    padding: 20px;
    border-radius: 16px;
  }

  .drop-zone {
    padding: 20px;
    font-size: 0.9rem;
  }

  button {
    width: 100%;
    padding: 14px;
  }

  .homebtn {
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

