@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-text-size-adjust: 100%;
}

/* --- GŁÓWNE OPAKOWANIE --- */
.upload-wrapper {
  width: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 35px 28px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  backdrop-filter: blur(15px);
}

/* --- LOGO --- */
.logo img {
  width: 90px;
  margin-bottom: 25px;
}

/* --- NAGŁÓWEK --- */
h2 {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 20px;
}

/* --- POLA --- */
input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0 12px 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.25s ease-in-out;
}

input:focus {
  outline: none;
  border-color: #00c6ff;
  box-shadow: 0 0 6px rgba(0, 198, 255, 0.6);
}

/* --- OBSZAR DRAG & DROP --- */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 30px 15px;
  margin: 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone.dragover {
  background: rgba(0, 198, 255, 0.1);
  border-color: #00c6ff;
}

.drop-zone p {
  margin: 0;
  color: #bbb;
  font-size: 14px;
}

.drop-zone p span {
  color: #00c6ff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* --- PRZYCISK --- */
.upload-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 15px;
  box-sizing: border-box;
}

.upload-button:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

/* --- LISTA PLIKÓW --- */
#fileList {
  text-align: left;
  font-size: 13px;
  color: #ddd;
  list-style: none;
  max-height: 100px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

#fileList li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 3px 0;
}

/* --- PASEK POSTĘPU --- */
#progressBar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}

#progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00c6ff, #0072ff, #6a11cb);
  transition: width 0.3s ease;
}

/* --- STATUS --- */
#status {
  font-size: 13px;
  margin-top: 10px;
  text-align: left;
}

/* --- STOPKA --- */
footer {
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.7;
}

/* --- 📱 RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  html, body {
    padding: 0;
    margin: 0;
    background: radial-gradient(circle at top, #12232e, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .upload-wrapper {
    width: 92%;
    max-width: 450px;
    padding: 25px 20px;
    margin: 0 auto;
    border-radius: 16px;
    min-height: auto;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  }

  .logo img {
    width: 90px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 17px;
    margin-bottom: 15px;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 16px;
    padding: 12px;
  }

  .drop-zone {
    padding: 25px 10px;
    font-size: 14px;
  }

  .upload-button {
    padding: 13px;
    font-size: 15px;
    margin-top: 12px;
  }

  #fileList {
    max-height: 90px;
    font-size: 12px;
  }

  footer {
    margin-top: 18px;
    font-size: 10px;
  }
}
