
body {
  font-family: Arial, sans-serif;
  background: #0a1628;
  color: #f0f4f8;
  min-height: 100vh;
  margin: 0;
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(14,77,114,0.6) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(91,184,212,0.03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(91,184,212,0.03) 60px);
}

#content { max-width: 660px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

h1 { text-align: center; padding: 1.5rem 0 0.5rem; margin: 0; font-size: 0; line-height: 0; }
h1 a { display: inline-block; text-decoration: none; }
h1 a img { display: block; height: 80px; width: auto; margin: 0 auto; }

.mx-tagline {
  display: block; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #5bb8d4; font-weight: 600; margin: 0.6rem 0 2rem;
}

fieldset {
  border: 1px solid rgba(91,184,212,0.45);
  border-radius: 10px;
  background: rgba(17,34,64,0.82);
  padding: 1.5rem 2rem 1.75rem;
  margin: 0 auto 1.25rem;
  position: relative;
  width: 100%;
  min-height: unset;
  overflow: hidden;
  box-sizing: border-box;
}

fieldset::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #c1121f, #1a7fa8, #5bb8d4);
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* Hide legend everywhere */
fieldset legend { display: none !important; }

/* File input — fully visible and functional */
#file_select {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
  z-index: 1 !important;
  background: rgba(10,22,40,0.5);
  border: 2px dashed rgba(91,184,212,0.45);
  border-radius: 7px;
  color: #f0f4f8;
  padding: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-size: 0.95rem;
}

/* No background image on upload fieldset */
#upload fieldset {
  min-height: unset !important;
  background-image: none !important;
  display: block !important;
  cursor: default !important;
}

p { color: #7a9ab0; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
a { color: #5bb8d4; text-decoration: none; }
a:hover { color: #d0eaf5; text-decoration: underline; }
label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7a9ab0; margin-bottom: 0.4rem; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(10,22,40,0.8);
  border: 1px solid rgba(91,184,212,0.2);
  border-radius: 7px;
  color: #f0f4f8;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #5bb8d4;
  box-shadow: 0 0 0 3px rgba(91,184,212,0.12);
}

input[type="checkbox"], input[type="radio"] {
  accent-color: #5bb8d4; width: 1.1rem; height: 1.1rem;
  margin-right: 0.5rem; cursor: pointer; vertical-align: middle;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath fill='%237a9ab0' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
select option { background: #112240; }

input[type="submit"], button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem;
  font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: #c1121f; color: #fff;
  border: none; border-radius: 6px;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
  margin-bottom: 0.5rem;
}
input[type="submit"]:hover, button:hover { background: #e63946; }
input[type="submit"]:active, button:active { transform: scale(0.97); }

progress {
  width: 100%; height: 4px; appearance: none; border: none;
  background: rgba(10,22,40,0.8); border-radius: 2px; margin: 0.5rem 0; display: block;
}
progress::-webkit-progress-bar { background: rgba(10,22,40,0.8); border-radius: 2px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #1a7fa8, #5bb8d4); border-radius: 2px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #1a7fa8, #5bb8d4); border-radius: 2px; }

.error, #error { background: rgba(193,18,30,0.15); border: 1px solid rgba(193,18,30,0.4); border-radius: 7px; color: #f5a3a8; padding: 0.7rem 1rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.info { background: rgba(14,77,114,0.2); border: 1px solid rgba(91,184,212,0.45); border-radius: 7px; color: #d0eaf5; padding: 0.7rem 1rem; font-size: 0.85rem; margin-bottom: 0.75rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { color: #5bb8d4; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(91,184,212,0.2); padding: 0.5rem 0.6rem; text-align: left; }
td { padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(91,184,212,0.08); color: #7a9ab0; }
tr:hover td { background: rgba(14,77,114,0.15); color: #f0f4f8; }
table a { color: #5bb8d4; }

#footer, #copyright { text-align: center; padding: 2rem 1rem 1rem; font-size: 0.72rem; color: #7a9ab0; }
#footer a, #copyright a { color: #5bb8d4; opacity: 0.7; }
#footer a:hover, #copyright a:hover { opacity: 1; }

#self_destruct { font-weight: bold; color: red; background-image: url('pixel_bomb.png'); background-size: 40px 40px; background-repeat: no-repeat; padding-left: 40px; padding-top: 10px; padding-bottom: 10px; }
