* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 5px;
  font-weight: bold;
}

.header notes {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  color: lightpink; 
  font-weight: bold;
}

.convert-pdf {
  text-align: center;
  margin-bottom: 35px;
  margin-top: 15px;
}

.convert-pdf a {
  color: white;
  text-decoration: none;
  background: rgba(232, 232, 232, 0.25);
  backdrop-filter: blur(10px);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.convert-pdf a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.convert-pdf a .icon {
  font-size: 1.2em;
  animation: rotate 2s linear infinite;
}

.convert-pdf a:hover .icon {
  animation-duration: 0.8s;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.box h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.1em;
}

input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #7589df;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #f8f9ff;
}

input[type="text"]:hover {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(131, 140, 254, 0.35);
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 12px rgba(107, 117, 255, 0.45);
  background: #ffffff;
}

input[type="text"]::placeholder {
  color: #aaaaaa;
}

.upload-area {
  border: 3px dashed #bdc3c7;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: #f8f9fa;
}

.upload-area:hover {
  border-color: #667eea;
  background: #e8f2ff;
}

.upload-area.dragover {
  border-color: #667eea;
  background: #e8f2ff;
  transform: scale(1.02);
}

.upload-area.file-selected {
  border-color: #27ae60;
  background: #e8f8f5;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: none;
}

label.upload-btn {
  display: inline-block;
  justify-content: center;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

label.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.upload-format {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-top: 15px;
}

.file-input {
  display: none;
}

.file-info {
  margin-top: 15px;
  padding: 15px;
  background: #ecf0f1;
  border-radius: 10px;
  display: none;
  text-align: center;
}

.file-info.show {
  display: block;
}

.file-details {
  margin-bottom: 0;
}

.file-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  word-break: break-word;
}

.file-size {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* hasil */
h2.result-title {
  color: white;
  text-align: center;
  margin: 5px 0 5px 0;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.asissten-name {
  text-align: center;
  color: white;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.info-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9em;
  margin: 5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-container {
  text-align: center;
  margin-bottom: 20px;
}

.table-container {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin-bottom: 25px;
  position: relative;
  max-width: 100%;
}

.table-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

th,
td {
  border: 1px solid #e0e0e0;
  padding: 14px 12px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.95em;
}

th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

td {
  background: #f8f9ff;
  color: #333;
}

tr:hover td {
  background: #eef1ff;
}

.download-buttons {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

.download-buttons button {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  padding: 16px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
  margin: 0 10px;
}

.download-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.back-container {
  text-align: center;
  margin-top: 10px;
}

.back-container .back-btn {
  background: linear-gradient(45deg, #e74c3c, #ff6b6b);
  color: white;
  padding: 14px 35px;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  margin: 0 10px;
}

.back-container .back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* ERROR */
.error-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 80px auto;
}

.error-box h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.error-box p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.footer {
  text-align: center;
  margin-top: 50px;
  color: white;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .box {
    padding: 25px;
  }

  .submit-btn,
  .download-buttons button {
    padding: 14px 28px;
    font-size: 1em;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.9em;
  }
}