/* JPG to PDF Converter Styles */
:root {
  --primary-color: #10434b;
  --primary-light: #1a6d7a;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-text: #666;
  --border-color: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.converter-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.converter-container h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.subtitle {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.converter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-panel {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.upload-area {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.settings-group {
  margin-bottom: 1.5rem;
}

.settings-panel h2, 
.settings-panel h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.setting {
  margin-bottom: 1rem;
}

.setting label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.setting select, 
.setting input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.setting select:focus, 
.setting input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(16, 67, 75, 0.2);
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  color: var(--text-color);
}

.hidden {
  display: none;
}

.preview-box {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.preview-content {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.preview-page {
  position: relative;
  width: 150px;
  height: 212px;
  background-color: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.preview-margin {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed var(--border-color);
}

.preview-dimensions {
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 0.5rem;
}

.upload-box {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  background-color: rgba(16, 67, 75, 0.02);
}

.upload-box:hover {
  border-color: var(--primary-color);
  background-color: rgba(16, 67, 75, 0.05);
}

.upload-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(16, 67, 75, 0.1);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: white;
  transition: var(--transition);
}

.image-item:hover {
  box-shadow: var(--shadow);
}

.image-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
  border: 1px solid var(--border-color);
}

.image-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.image-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
}

.image-size {
  font-size: 0.8rem;
  color: var(--light-text);
}

.image-actions {
  display: flex;
  gap: 0.75rem;
}

.delete-btn, .move-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light-text);
  transition: var(--transition);
  padding: 0.25rem;
  border-radius: 4px;
}

.delete-btn:hover {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.move-btn:hover {
  color: var(--primary-color);
  background-color: rgba(16, 67, 75, 0.1);
}

.image-number {
  background-color: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.progress-container {
  margin-top: 1.5rem;
  text-align: center;
}

.progress-bar {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.progress-text {
  color: var(--light-text);
}

.download-container {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: rgba(16, 67, 75, 0.05);
  border: 1px dashed var(--primary-color);
}

.download-container p {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.highlight {
  border-color: var(--primary-color) !important;
  background-color: rgba(16, 67, 75, 0.1) !important;
}

/* Responsive styles */
@media (min-width: 768px) {
  .converter-wrapper {
    flex-direction: row;
  }
  
  .settings-panel {
    flex: 0 0 320px;
  }
  
  .upload-area {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .image-item {
    padding: 0.5rem;
  }
  
  .image-actions {
    gap: 0.5rem;
  }
}

/* Animation for loading */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.loading {
  animation: pulse 1.5s infinite ease-in-out;
}