* { box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* MAIN CARD */
.upload-form{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: calc(100% - 32px);
  padding: 30px;
  border-radius: 22px;
  color: #fff;
  text-align: center;

  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
}

/* Upload row (file picker + submit) */
.upload-inline{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.file-picker{
  flex: 1;
  width: auto;
  text-align: left;
  padding: 14px 14px;
}

.upload-submit{
  width: 150px;
  padding: 14px 14px;
}

@media (max-width: 520px){
  .upload-inline{ flex-direction: column; }
  .upload-submit{ width: 100%; }
}

.upload-form h1{
  margin: 6px 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

/* Upload row (custom file input) */
.upload-inline{ margin-top: 14px; }

.file-row{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
}

.file-input{ display:none; } /* native "Choose file" gizlə */

.file-picker{
  height:44px;
  padding:0 16px;
  border-radius:12px;
  font-weight:700;
  white-space:nowrap;
}

.file-selected{
  height:44px;
  display:flex;
  align-items:center;
  padding:0 14px;
  min-width:260px;
  max-width:420px;
  border-radius:12px;
  border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.upload-submit{
  height:44px;
  padding:0 20px;
  border-radius:12px;
  font-weight:800;
}

/* override generic button width */
.upload-submit{ width:auto; margin-top:0 !important; }

/* responsive */
@media (max-width: 520px){
  .file-row{ flex-direction:column; align-items:stretch; }
  .file-selected{ min-width:0; max-width:100%; }
  .file-btn, .upload-submit, .file-picker{ width:100%; }
}

/* Buttons */
.file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: .18s ease;

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color:#fff;
  text-decoration:none;
}

.file-btn:hover{
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.file-btn span{
  display:block;
  margin-top: 6px;
  font-size: 13px;
  opacity: .9;
}

.file-name{
  margin-top: 10px;
  font-size: 12px;
  opacity: .85;
}

/* native input gizli => "Choose file" görünməsin */
#fileInput{ display:none; }

select, button{
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  outline: none;
}

select{
  background: rgba(0,0,0,0.35);
  color: #fff;
}

select option{ color:#111; }

button{
  background: #ff6b6b;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: .25s ease;
}

button:hover{ background:#ff4757; transform: scale(1.02); }

button:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.status{
  margin-top: 12px;
  min-height: 22px;
  font-size: 13px;
  opacity: .95;
}

/* Progress */
.progress-wrap{
  margin-top: 14px;
  text-align: left;
}

.progress-top{
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .92;
  margin-bottom: 8px;
}

.progress-track{
  width:100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  transition: width .15s linear;
}

/* POPUP MODAL */
.consent-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.consent-box{
  width: 520px;
  max-width: calc(100% - 32px);
  padding: 24px 26px;
  border-radius: 22px;
  color: #fff;
  text-align: left;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 22px 70px rgba(0,0,0,0.50);
}

.consent-box h3{
  margin: 0 0 12px;
  font-size: 20px;
}

.consent-box p{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  opacity: .95;
}

.consent-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
}

.consent-check input{
  width: 18px;
  height: 18px;
  accent-color: #ff6b6b;
  cursor: pointer;
}


/* Delete button */
.btn-danger{
  background: rgba(255, 80, 80, 0.20);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-danger:hover{
  background: rgba(255, 80, 80, 0.28);
}
