/* Custom File Input - Terlihat seperti tombol */
.custom-file-input {
  position: relative;
  display: block;
  width: 100%;
}

.custom-file-input input[type="file"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.custom-file-label {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.custom-file-label:hover {
  border-color: #c4a882;
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.1);
}

.custom-file-button {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background-color: #c4a882;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  white-space: nowrap;
}

.custom-file-button:hover {
  background-color: #b39473;
}

.custom-file-text {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-file-input input[type="file"]:focus + .custom-file-label {
  border-color: #c4a882;
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.2);
  outline: none;
}

/* Form hint */
.form-hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
}