/* upload.css - Styles scoped to upload.php page */
/* 1) First clear any inline bg-color */
body {
  background-color: transparent !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
}

/* 2) Declare your responsive images */
@media (max-width: 767px) {
  /* 1. Let your overall wrapper/table/container fill the phone width */
  .page-table,
  .container {
    width: 100% !important;    /* force it to shrink to the viewport */
    max-width: 100% !important;
    padding: 0 1rem !important; /* keep a little breathing room */
  }
}
@media (min-width: 768px) and (max-width: 1919px) {
  body::before {
    background-image: url('/images/bg-medium.webp');
  }
}
@media (min-width: 1920px) {
  body::before {
    background-image: url('/images/bg-large.webp');
  }
}

/* 3) The fix: use a fixed pseudo-element */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: 0.65;        /* if you still want that translucent overlay */
  pointer-events: none;
}



body.upload-container {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

body.upload-container .container {
  max-width: 800px;
  width: 90%;
  margin: 20px auto;
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.upload-container h1 {
  text-align: center;
  color: #0078d4;
  margin-bottom: 20px;
}

body.upload-container form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.upload-container form select,
body.upload-container form input[type="file"],
body.upload-container form input[type="text"],
body.upload-container form button {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: calc(50% - 20px);
}

body.upload-container .full-width {
  width: 100%;
}

body.upload-container .upload-message {
  text-align: center;
  margin-bottom: 20px;
  color: #070;
}