html, body {
  margin: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
  overflow: hidden;
}

.background { 
  background-size: cover;
  position: fixed;
  width: 100%;
  height: 100%;
  filter: brightness(0.6);
  z-index: -1;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1), filter 1.2s, background-image 0.8s linear;
  opacity: 0;
  animation: fadeInBg 1.2s forwards;
}

.content {
  position: relative;
  padding: 30px;
}

h1 {
  font-size: 48px;
  margin-bottom: 0;
}

p {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 40px;
}

.upload-box {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  width: 320px;
  box-sizing: border-box;
}

#drop-area {
  border: 2px dashed white;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 15px;
}

#drop-area p {
  margin: 0 0 10px 0;
}

#fileList {
  list-style: none;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}

#fileList li {
  background: rgba(255,255,255,0.1);
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

input[type="email"], select {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 10px;
  background: #2196f3;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #1976d2;
}

.form-modern, .download-box {
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: rgba(30, 30, 40, 0.65) !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  padding: 24px 20px 20px 20px;
  border-radius: 16px;
  max-width: 320px;
  margin: 60px auto 0 auto;
  position: relative;
}

.input-modern, .select-modern {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: border 0.2s;
}
.input-modern:focus, .select-modern:focus {
  border: 1.5px solid #2196f3;
  background: rgba(255,255,255,0.18);
}

.select-modern {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255,255,255,0.12) url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/18px 18px;
  padding-right: 38px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  outline: none;
  margin-bottom: 16px;
  transition: border 0.2s;
}
.select-modern:focus {
  border: 1.5px solid #2196f3;
  background-color: rgba(255,255,255,0.18);
}

.upload-box.form-modern > * {
  margin-bottom: 12px;
}
.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.btn-modern {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #2196f3 60%, #21cbf3 100%);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  transition: background 0.3s, box-shadow 0.2s;
}
.upload-box.form-modern > .upload-actions {
  margin-bottom: 0;
  max-height: 650px;
}

.file-list-modern {
  list-style: none;
  padding: 0;
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.file-list-modern li {
  background: rgba(255,255,255,0.13);
  margin-bottom: 6px;
  padding: 7px 12px 7px 12px;
  border-radius: 6px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  overflow: visible;
  box-sizing: border-box;
}
.file-list-modern button {
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s;
}
.file-list-modern button:hover {
  background: #c62828;
}

.remove-file-btn {
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0;
  margin-right: 6px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(244,67,54,0.08);
  outline: none;
  min-width: 50px;
  max-width: 50px;
  text-align: center;
  height: 28px;
  display: inline-block;
}
.remove-file-btn:hover, .remove-file-btn:focus {
  background: #c62828;
  box-shadow: 0 4px 12px rgba(244,67,54,0.16);
}

.download-btn {
  margin-left: 0 !important;
  min-width: 50px !important;
  max-width: 50px !important;
  width: 50px !important;
  height: 28px !important;
  padding: 4px 12px 4px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  display: inline-block !important;
  background: #2196f3 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(33,150,243,0.08) !important;
}

.footer-copyright {
  position: fixed;
  right: 24px;
  bottom: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  z-index: 100;
  background: rgba(30,30,40,0.45);
  padding: 6px 14px;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
}

@keyframes fadeInBg {
  to { opacity: 1; }
}

#fileList.file-list-modern {
  margin-top: 10px;
}

.upload-box.form-modern {
  position: fixed;
  left: 30px;
  bottom: 30px;
  margin: 0;
  max-width: 280px !important;
  max-height: 80vh;
  z-index: 10;
  padding: 20px 16px 16px 16px !important;
  border-radius: 14px !important;
}

.btn-modern:disabled {
  background: #b0b4b9 !important;
  color: #e0e0e0 !important;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.download-headline {
  text-align: center;
  margin-bottom: 28px;
}

.lang-switch-container {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 200;
  background: none;
  border-radius: 8px;
  box-shadow: none;
  padding: 0;
  display: inline-block;
  min-width: 0;
}
.lang-switch {
  width: calc(100% + 20px);
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 14px;
  background: transparent url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/18px 18px;
  padding-right: 38px;
  color: #fff;
  outline: none;
  margin-bottom: 16px;
  transition: border 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  box-shadow: none;
  position: relative;
  font-weight: 500;
}
.lang-switch:focus {
  border: 1.5px solid #2196f3;
  background-color: transparent;
}

.download-box.form-modern {
  min-height: 400px;
  max-height: 700px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#download-section {
  min-height: 300px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .upload-box.form-modern, .download-box.form-modern {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    max-width: 100vw;
    min-width: 0;
    width: 100vw;
    border-radius: 0 0 0 0;
    padding: 18px 6vw 18px 6vw;
    margin: 0;
    box-sizing: border-box;
  }
  .content {
    padding: 10px 0 0 0;
  }
  .file-list-modern {
    max-height: 220px;
    font-size: 15px;
  }
  .input-modern, .select-modern {
    font-size: 14px;
    padding: 10px 8px;
  }
  .btn-modern {
    font-size: 14px;
    padding: 10px;
  }
  .lang-switch-container {
    top: 8px;
    right: 8px;
    padding: 2px 6px 2px 8px;
  }
  .footer-copyright {
    right: 8px;
    bottom: 8px;
    font-size: 12px;
    padding: 4px 8px;
  }
  .download-headline {
    font-size: 22px;
    margin-bottom: 18px;
  }
}

.version-label {
  display: block !important;
  text-align: center !important;
  font-size: 12px !important;
  color: #ccc !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.04em !important;
}

.lang-switch::-ms-expand {
  display: none;
}
.lang-switch::-webkit-inner-spin-button,
.lang-switch::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
