/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* Upload Section */
.upload-section {
  margin-top: 20px;
  margin-bottom: 20px;
}

.upload-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-btn:hover {
  background-color: #0056b3;
}

#fileInput {
  display: none;
}

/* Format Selection */
.format-selection {
  margin-top: 20px;
  margin-bottom: 20px;
}

#format {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Convert Button */
.convert-btn {
  padding: 10px 20px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.convert-btn:hover {
  background-color: #218838;
}

/* Result Section */
.result-section {
  margin-top: 20px;
}

.preview-container {
  margin-top: 10px;
  min-height: 100px;
  background-color: #eaeaea;
  border: 1px dashed #ccc;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-item {
  margin: 10px 0;
  text-align: left;
  padding: 20px;
}

.preview-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffc107;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #e0a800;
}

/* Status Message */
.status-message {
  font-size: 14px;
  color: #28a745; /* Warna hijau untuk indikasi positif */
  margin-top: 10px;
  display: none; /* Awalnya disembunyikan */
}
