/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #f9f9f9, #eef3fb);
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  color: #333;
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.7rem;
  color: #007bff;
}

h2 {
  margin: 40px 0 10px;
  border-left: 5px solid #007bff;
  padding-left: 10px;
  color: #444;
  font-size: 1.4rem;
}

/* Drag Drop Area */
.drag-drop-area {
  border: 2px dashed #007bff;
  border-radius: 8px;
  background: #e9f0ff;
  color: #007bff;
  padding: 25px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.drag-drop-area:hover {
  background: #d6e6ff;
  transform: scale(1.01);
}

.drag-drop-area.dragover {
  background: #c7dcff;
  border-color: #0056d2;
  color: #0056d2;
}

/* File Previews */
.preview-box {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  min-height: 100px;
  transition: background 0.2s ease;
}

.preview-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background: #f5f7fa;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-item:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.preview-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.preview-image {
  max-width: 70px;
  max-height: 70px;
  margin-right: 15px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #ddd;
  background-color: #fff;
}

.pdf-item {
  font-size: 14px;
  flex-grow: 1;
}

/* Buttons */
button {
  padding: 12px 20px;
  margin: 10px 5px 30px 0;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

button:hover:enabled {
  background: #0056d2;
  transform: scale(1.05);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #f3f4f6;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-bottom: -20px;
}


/* Responsive Layout */
@media (max-width: 768px) {
  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .preview-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-image {
    margin-bottom: 10px;
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  button {
    width: 100%;
  }
}

