/* Styling for Flatten PDF feature */
.hidden {
  display: none !important;
}

.custom-box {
  background: transparent;
  border: none;
  box-shadow: none;
}

.innerBox {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 30px;
}

.upload-area {
  border: 2px dashed #3c3cf4;
  border-radius: 12px;
  background: #f8f9ff;
  text-align: center;
  padding: 50px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.upload-area.dragover {
  background: #e4e7ff;
  border-color: #1b2fe7;
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  color: #3c3cf4;
  margin-bottom: 20px;
}

.upload-heading {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.upload-subheading {
  font-size: 16px;
  color: #666;
}

.file-card {
  padding: 20px 0;
}

.file-details {
  display: flex;
  align-items: center;
  background: #f8f9ff;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e4e7ff;
}

.file-icon {
  font-size: 30px;
  margin-right: 15px;
}

.file-info {
  flex-grow: 1;
}

.file-name {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  word-break: break-all;
}

.file-size {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.reset-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.reset-btn:hover {
  color: #d11a2a;
}

.options-group {
  margin-bottom: 25px;
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
}

.options-group h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #444;
}

/* Custom Checkbox styles */
.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  color: #555;
}

.custom-checkbox:last-child {
  margin-bottom: 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #eee;
  border-radius: 4px;
  transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #3c3cf4;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-style {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  background: #1b2fe7;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-style:disabled {
  background: #aab2f5;
  cursor: not-allowed;
}

.btn-style:active:not(:disabled) {
  transform: scale(0.98);
}

.progress-wrap {
  margin-top: 25px;
}

.progress-bar-bg {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1b2fe7, #3c3cf4);
  transition: width 0.3s ease;
}

.progress-label {
  text-align: center;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.status-alert {
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.status-alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
