/* Shared Upload Styles for DEF CON File Drop Point */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-shadow: 0 0 5px #00ff00;
}

/* Ensure all text elements have the glow effect */
h1, h2, h3, h4, h5, h6, p, span, div, label, input, button, a, li, em, strong {
  text-shadow: 0 0 5px #00ff00;
}

/* List styling to ensure consistent indentation */
ol {
  margin-left: 0;
  padding-left: 20px;
}

ol > li {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

ol > li > ul {
  margin-left: 20px;
  padding-left: 0;
  margin-top: 5px;
  margin-bottom: 5px;
}

/* HTML and body base styles */
html, body {
  height: 100%;
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', 'Courier New', monospace;
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

/* CRT scanline effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 50%, 
    rgba(0, 255, 0, 0.08) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced CRT scanline effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Horizontal scan lines */
    linear-gradient(
      transparent 49%, 
      rgba(0, 255, 0, 0.08) 49%,
      rgba(0, 255, 0, 0.08) 51%,
      transparent 51%
    ),
    /* Vertical scan lines for more authentic CRT look */
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 49%,
      rgba(0, 255, 0, 0.02) 50%,
      transparent 51%,
      transparent 100%
    );
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 1;
  animation: scanlineDrift 20s linear infinite;
}

@keyframes scanlineDrift {
  0% { transform: translateY(0px); }
  50% { transform: translateY(2px); }
  100% { transform: translateY(0px); }
}



/* Terminal containers */

.terminal-container {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff00;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  position: relative;
}

/* File type information styles */
.file-type-info {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #00ff00;
  background: rgba(0, 0, 0, 0.5);
}

.file-type-info h4 {
  margin-bottom: 15px;
  color: #00ff00;
  text-align: center;
}

.file-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.file-type-category {
  padding: 8px 12px;
  border: 1px solid #00ff00;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.9em;
}

.file-type-category strong {
  color: #00ff00;
  display: block;
  margin-bottom: 3px;
}

.file-type-note {
  padding: 10px;
  border: 1px solid #ffaa00;
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
  font-size: 0.9em;
  text-align: center;
}

/* Custom Error Modal Styles */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.error-modal {
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #ff0000;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  /* Add scan lines background */
  background-image: 
    linear-gradient(
      transparent 50%, 
      rgba(0, 255, 0, 0.08) 50%
    );
  background-size: 100% 4px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ff0000;
  padding-bottom: 15px;
}

.error-modal-icon {
  font-size: 2em;
  margin-right: 15px;
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  /* 8-bit style: simple exclamation mark */
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff0000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Sharp corners for 8-bit look */
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.error-modal-icon {
  font-size: 2em;
  margin-right: 15px;
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  /* 8-bit style: simple exclamation mark */
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff0000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Sharp corners for 8-bit look */
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.error-modal-title {
  font-size: 1.5em;
  color: #ff0000;
  text-shadow: 0 0 8px #ff0000;
  border-bottom: 1px solid #00000000;
  padding-bottom: 10px;
  margin: 0;
}

.error-modal-content {
  margin-bottom: 25px;
  line-height: 1.6;
}

.error-modal-message {
  color: #ff6666;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.error-modal-details {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff3333;
  padding: 15px;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #ffcccc;
}

.error-modal-details strong {
  color: #ff6666;
}

.error-modal-button {
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid #ff0000;
  color: #ff0000;
  padding: 12px 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  position: relative;
}

.error-modal-button:focus {
  outline: none;
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
  position: relative;
}

/* Blinking cursor for error modal button */
.error-modal-button:focus::before {
  content: '_';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6666;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

.error-modal-button::before {
  content: '-';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  opacity: 0.7;
  color: #ff6666;
}

.error-modal-button::after {
  content: '↵';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  opacity: 0.7;
  color: #ff6666;
}

.error-modal-button:hover {
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
}

.error-modal-button:active {
  transform: translateY(0);
}

.error-modal-buttons {
  display: flex;
  justify-content: flex-end;
}

/* Success Modal Styles */
.success-modal {
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #00ff00;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  /* Add scan lines background */
  background-image: 
    linear-gradient(
      transparent 50%, 
      rgba(0, 255, 0, 0.08) 50%
    );
  background-size: 100% 4px;
}

.success-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 15px;
}

.success-modal-icon {
  font-size: 2em;
  margin-right: 15px;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  /* 8-bit style: simple checkmark */
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid #00ff00;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Sharp corners for 8-bit look */
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}



.success-modal-title {
  font-size: 1.5em;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00;
  border-bottom: 1px solid #00000000;
  padding-bottom: 10px;
  margin: 0;
}

.success-modal-content {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #00ff00;
}

.success-modal-button {
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 12px 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  position: relative;
}

.success-modal-button:focus {
  outline: none;
  background: rgba(0, 255, 0, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  transform: translateY(-2px);
  position: relative;
}

/* Blinking cursor for success modal button */
.success-modal-button:focus::before {
  content: '_';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

.success-modal-button::after {
  content: '↵';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  opacity: 0.7;
  color: #00cc00;
}

.success-modal-button:hover {
  background: rgba(0, 255, 0, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  transform: translateY(-2px);
}

.success-modal-button:active {
  transform: translateY(0);
}

.success-modal-buttons {
  display: flex;
  justify-content: flex-end;
}

/* Warning modal — same structure as success/error modals but in the yellow palette
   so it reads as "important heads-up" rather than "error" or "all good". */
.warning-modal {
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #FFD700;
  padding: 30px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  background-image: linear-gradient(transparent 50%, rgba(255, 215, 0, 0.08) 50%);
  background-size: 100% 4px;
  color: #FFD700;
}

.warning-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #FFD700;
  padding-bottom: 15px;
}

.warning-modal-icon {
  font-size: 1.4em;
  margin-right: 15px;
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid #FFD700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.warning-modal-title {
  font-size: 1.4em;
  color: #FFD700;
  text-shadow: 0 0 8px #FFD700;
  margin: 0;
}

.warning-modal-content {
  margin-bottom: 25px;
  line-height: 1.55;
  color: #FFD700;
  font-size: 14px;
}

.warning-modal-content p {
  margin: 0 0 12px 0;
}

.warning-modal-content strong {
  color: #FFD700;
  text-shadow: 0 0 5px #FFD700;
}

.warning-modal-buttons {
  display: flex;
  justify-content: flex-end;
}

.warning-modal-button {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 12px 30px;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  position: relative;
}

.warning-modal-button:hover,
.warning-modal-button:focus {
  outline: none;
  background: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.warning-modal-button:focus::before {
  content: '_';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFD700;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

.warning-modal-button::after {
  content: '↵';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  opacity: 0.7;
}

/* Secondary action in the warning modal (e.g. "TELL ME MORE"). Outlined instead
   of filled so the primary "I UNDERSTAND" still reads as the default action. */
.warning-modal-button.warning-modal-secondary {
  background: transparent;
  color: #FFD700;
  margin-right: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.warning-modal-button.warning-modal-secondary::after {
  content: '↗';
}

.warning-modal-button.warning-modal-secondary:hover,
.warning-modal-button.warning-modal-secondary:focus {
  background: rgba(255, 215, 0, 0.15);
}

/* Info modal — wider + scrollable for long-form reference content (e.g. DRM help).
   Green palette like the rest of the site, distinct from the yellow warning modal. */
.info-modal {
  background: rgba(0, 0, 0, 0.97);
  border: 2px solid #00ff00;
  padding: 0;
  max-width: 820px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  background-image: linear-gradient(transparent 50%, rgba(0, 255, 0, 0.06) 50%);
  background-size: 100% 4px;
  color: #88ff88;
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #00ff00;
  flex: 0 0 auto;
}

.info-modal-title {
  font-size: 1.3em;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00;
  margin: 0;
}

.info-modal-close {
  background: transparent;
  border: none;
  color: #00ff00;
  font-size: 1.6em;
  cursor: pointer;
  text-shadow: 0 0 6px #00ff00;
  padding: 0 4px;
  line-height: 1;
}

.info-modal-close:hover {
  color: #ffffff;
}

.info-modal-content {
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  line-height: 1.55;
  font-size: 14px;
}

.info-modal-content h1,
.info-modal-content h2 {
  color: #FFD700;
  text-shadow: 0 0 6px #FFD700;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.info-modal-content h1 { margin-top: 0; font-size: 1.4em; color: #00ff00; text-shadow: 0 0 6px #00ff00; }
.info-modal-content p { margin: 0 0 12px 0; color: #88ff88; }
.info-modal-content ul { margin: 0 0 14px 0; padding-left: 22px; color: #88ff88; }
.info-modal-content li { margin: 4px 0; }
.info-modal-content strong { color: #00ff00; text-shadow: 0 0 4px #00ff00; }
.info-modal-content code {
  background: rgba(0,255,0,0.08);
  padding: 2px 6px;
  border: 1px solid rgba(0,255,0,0.3);
  color: #00ff00;
}
.info-modal-content .callout {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 12px 16px;
  margin: 14px 0;
}
.info-modal-content .callout strong {
  color: #FFD700;
  text-shadow: 0 0 5px #FFD700;
}

.info-modal-buttons {
  padding: 14px 24px 20px 24px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 255, 0, 0.3);
  flex: 0 0 auto;
}

.info-modal-button {
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 10px 26px;
  font-size: 1em;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  transition: all 0.2s ease;
}

.info-modal-button:hover,
.info-modal-button:focus {
  outline: none;
  background: rgba(0, 255, 0, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  transform: translateY(-1px);
}

/* Confirmation Modal Styles */
.confirmation-modal {
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #ffaa00;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  /* Add scan lines background */
  background-image: 
    linear-gradient(
      transparent 50%, 
      rgba(0, 255, 0, 0.08) 50%
    );
  background-size: 100% 4px;
}

.confirmation-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ffaa00;
  padding-bottom: 15px;
}



.confirmation-modal-icon {
  font-size: 2em;
  margin-right: 15px;
  color: #ffaa00;
  text-shadow: 0 0 10px #ffaa00;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  /* 8-bit style: simple exclamation mark */
  background: rgba(255, 170, 0, 0.2);
  border: 2px solid #ffaa00;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* Sharp corners for 8-bit look */
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.confirmation-modal-title {
  font-size: 1.5em;
  color: #ffaa00;
  text-shadow: 0 0 8px #ffaa00;
  margin: 0;
  border-bottom: 1px solid #00000000;
  padding-bottom: 10px;
}

.confirmation-modal-content {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ffcc66;
  font-size: 1.1em;
}

.confirmation-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.confirmation-modal-button {
  padding: 12px 25px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  border: 2px solid;
  position: relative;
}

.confirmation-modal-button.confirm::after {
  content: '↵';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  opacity: 0.7;
  color: #ffcc00;
}

.confirmation-modal-button.cancel::after {
  content: '⎋';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  opacity: 0.7;
  color: #ff6666;
}

.confirmation-modal-button.cancel {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ff0000;
  text-shadow: 0 0 5px #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.confirmation-modal-button.cancel:hover {
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
}

.confirmation-modal-button.cancel:focus {
  outline: none;
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
  position: relative;
}

/* Blinking cursor for cancel button */
.confirmation-modal-button.cancel:focus::before {
  content: '_';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6666;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

.confirmation-modal-button.confirm {
  background: rgba(255, 170, 0, 0.2);
  border-color: #ffaa00;
  color: #ffaa00;
  text-shadow: 0 0 5px #ffaa00;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.confirmation-modal-button.confirm:hover {
  background: rgba(255, 170, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
  transform: translateY(-2px);
}

.confirmation-modal-button.confirm:focus {
  outline: none;
  background: rgba(255, 170, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
  transform: translateY(-2px);
  position: relative;
}

/* Blinking cursor for confirm button */
.confirmation-modal-button.confirm:focus::before {
  content: '_';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffaa00;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

.confirmation-modal-button:active {
  transform: translateY(0);
}

/* File deletion animation */
.file-item {
  transition: all 0.5s ease-out;
  transform: translateX(0);
  opacity: 1;
}

.file-item.deleting {
  transform: translateX(100%);
  opacity: 0;
  margin-left: -100%;
  margin-right: 100%;
}

/* Slide out animation for file removal */
@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
    max-height: 100px;
    margin: 10px 0;
  }
  50% {
    transform: translateX(50%);
    opacity: 0.5;
    max-height: 80px;
    margin: 5px 0;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
  }
}

.file-item.slide-out {
  animation: slideOutRight 0.6s ease-out forwards;
}

/* Archive button loading state */
.btn-archive.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn-archive.loading::before {
  content: 'WAIT';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: blink 1s linear infinite;
  font-size: 14px;
  font-weight: bold;
  color: #ff0000;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}



.terminal-container::before {
  content: '> ';
  position: absolute;
  top: 10px;
  left: 10px;
  color: #00ff00;
  font-weight: bold;
}

/* Header styling */
.header {
  /* background: rgba(0, 0, 0, 0.9); */
  /* border: 2px solid #00ff00; */
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  /* box-shadow: 0 0 15px rgba(0, 255, 0, 0.2); */
}

.terminal-container h1 {
  color: #00ff00;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 0 10px #00ff00;
  border-bottom: 2px solid #00ff00;
  padding-bottom: 10px;
}

.terminal-container p {
  color: #00aa00;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Retro terminal styling */
h1, h2, h3 {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  border-bottom: 2px solid #00ff00;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin: 30px 0;
  letter-spacing: 2px;
}

/* Session info styling */
.session-info {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff00;
  
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.session-info h3 {
  color: #00ff00;
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-shadow: 0 0 10px #00ff00;
  border-bottom: 2px solid #00ff00;
  padding-bottom: 10px;
}

.session-info p {
  margin: 10px 0;
  color: #00aa00;
}

.session-info strong {
  color: #00ff00;
}

/* File management grid */
.file-management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

/* Flex container for unauthenticated path */
.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-container > div {
  align-self: flex-start;
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 10px);
}

/* Unified upload section styling */
.upload-section {
  background: rgba(0, 0, 0, 0.8);
  border: 3px dashed #00ff00;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.upload-section:hover {
  border-color: #00ff00;
  background: rgba(0, 255, 0, 0.05);
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
  transform: translateY(-2px);
}

.upload-section.dragover {
  border-color: #ffff00 !important;
  background: rgba(255, 255, 0, 0.1) !important;
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

.upload-section h3 {
  color: #00ff00;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px #00ff00;
  border-bottom: 2px solid #00ff00;
  padding-bottom: 10px;
}

.upload-section p {
  color: #00aa00;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left !important;
}

.files-list {
  margin: 20px 0;
  min-height: 100px;
  flex: 1;
}

.file-item {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff00;
  
  padding: 15px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.file-item:hover {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
  transform: translateY(-1px);
}

.file-info {
  flex: 1;
  text-align: left;
}

.file-name {
  font-weight: 600;
  color: #00ff00;
  margin-bottom: 5px;
  text-shadow: 0 0 8px #00ff00;
  text-align: left;
}

.file-meta {
  font-size: 0.9rem;
  color: #00aa00;
  line-height: 1.4;
  text-align: left;
}

.file-actions {
  display: flex;
  gap: 10px;
}

/* Button styling */
.btn {
  padding: 8px 16px;
  border: 2px solid #00ff00;
  background: #000;
  color: #00ff00;
  
  cursor: pointer;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.btn-upload {
  border-color: #00ff00;
  color: #00ff00;
  padding: 12px 24px;
  font-size: 16px;
  margin-top: auto;
  margin-bottom: 15px;
  width: 100%;
}

.btn-upload:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.btn-archive {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
}



.btn-archive:hover {
  background: #ff0000 !important;
  color: #000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6) !important;
}

/* Drag and drop instruction styling */
.drag-drop-instruction {
  font-size: 18px;
  font-weight: bold;
  color: #00ff00;
  margin-bottom: 15px;
  text-align: center;
}

/* File size limit styling */
.file-size-limit {
  color: #00aa00;
  font-size: 14px;
  margin: 10px 0;
  text-align: center;
}

/* Upload status styling */
.upload-status {
  padding: 8px 12px;
  margin: 5px 0;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

.upload-status.uploading {
  background: rgba(255, 255, 0, 0.1);
  color: #ffff00;
  border: 1px solid #ffff00;
}

.upload-status.completed {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid #00ff00;
}

.upload-status.error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid #ff0000;
}

/* Search box styling */
#searchBox {
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  width: 100%;
  
  outline: none;
}

#searchBox:focus {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  position: relative;
}

/* Blinking cursor for search input */
#searchBox:focus::after {
  content: '_';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
}

#searchBox::placeholder {
  color: #00aa00;
}

/* Search results dropdown */
#searchResults {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000;
  border: 2px solid #00ff00;
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #00aa00;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #000;
  color: #00ff00;
}

.search-result-item:hover {
  background: rgba(0, 255, 0, 0.1);
  text-shadow: 0 0 8px #00ff00;
  color: #00ff00;
}

.search-result-item.selected {
  background: rgba(0, 255, 0, 0.2);
  text-shadow: 0 0 10px #00ff00;
  color: #00ff00;
  border-left: 3px solid #00ff00;
}

/* Instructions styling */
.instructions {
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid #00ff00;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
}

.instructions h3 {
  color: #00ff00;
  margin-top: 0;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 10px;
}

.instructions ol, .instructions ul {
  color: #00ff00;
}

.instructions li {
  margin: 8px 0;
}

/* Status messages */
.status-message {
  padding: 10px;
  margin: 10px 0;
  
  font-family: 'Courier New', monospace;
  text-align: center;
}

.status-success {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid #00ff00;
}

.status-error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid #ff0000;
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 40px;
  color: #00ff00;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  padding: 15px;
  
  margin: 20px 0;
  border: 2px solid #ff0000;
}

.success-message {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  padding: 15px;
  
  margin: 20px 0;
  border: 2px solid #00ff00;
}

.token-expired {
  text-align: center;
  padding: 40px;
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  
  margin: 20px 0;
  border: 2px solid #ff0000;
}

.expiry-countdown {
  font-weight: bold;
  color: #00ff00;
}

.expiry-countdown.warning {
  color: #ffff00;
}

.expiry-countdown.danger {
  color: #ff0000;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Secure Link Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background: #000;
  border: 3px solid #00ff00;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  position: relative;
  color: #00ff00;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #00ff00;
}

.popup-close:hover {
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00;
}

.secure-link {
  background: rgba(0, 255, 0, 0.05);
  border: 2px dashed #00ff00;
  padding: 15px;
  margin: 15px 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #00ff00;
}

.copy-button {
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  margin: 10px 5px;
  font-family: 'Courier New', monospace;
}

.copy-button:hover {
  background: #00ff00;
  color: #000;
}

.test-notice {
  background: rgba(255, 255, 0, 0.1);
  color: #ffff00;
  padding: 10px;
  
  border: 1px solid #ffff00;
  margin: 15px 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
  border: 1px solid #00ff00;
}

::-webkit-scrollbar-thumb {
  background: #00ff00;
  
}

::-webkit-scrollbar-thumb:hover {
  background: #00aa00;
}

/* Utility classes */
.alignerleft {
}

.alignerright {
}

#Jack {
  display: flex;
  align-items: center;
  background: black;
}

/* Search interface styling */
.search-interface {
  margin-bottom: 20px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.search-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #00ff00;
}

/* Secure upload section */
.secure-upload-section {
  display: none;
  margin-bottom: 30px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Unlisted session notice */
.unlisted-session-notice {
  display: none;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Yellow notice box */
.yellow-notice {
  background: rgba(252, 234, 35, 0.3);
  color: #FFD700 !important;
  padding: 15px;
  
  margin: 20px 0;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 15px rgba(255, 215, 0, 0.5);
  font-weight: bold;
  text-align: center;
  text-shadow: none !important;
}

.yellow-notice * {
  text-shadow: none !important;
  color: #FFD700 !important;
}

.yellow-notice strong {
  text-shadow: 0 0 10px #FFD700 !important;
  color: #FFD700 !important;
}

/* DRM warning — same yellow palette but left-aligned multi-line layout for the
   "files won't open on stage" guidance. Distinct enough not to be skipped, calmer
   than a red error since nothing is broken yet — we just need speakers to act. */
.drm-warning {
  background: rgba(252, 234, 35, 0.18);
  color: #FFD700 !important;
  padding: 18px 22px;
  margin: 20px auto;
  max-width: 900px;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 15px rgba(255, 215, 0, 0.4);
  text-align: left;
  text-shadow: none !important;
  font-size: 14px;
  line-height: 1.5;
}

.drm-warning * {
  text-shadow: none !important;
  color: #FFD700 !important;
}

.drm-warning .drm-title {
  display: block;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 10px #FFD700 !important;
  margin-bottom: 10px;
}

.drm-warning p {
  margin: 8px 0;
}

/* Secure upload status */
#secureUploadStatus {
  margin-top: 15px;
}

/* File management grid */
.file-management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

/* Button base styles */
.btn {
  padding: 8px 16px;
  border: 2px solid #00ff00;
  background: #000;
  color: #00ff00;
  
  cursor: pointer;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

/* Success message */
.success-message {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  padding: 15px;
  
  margin: 20px 0;
  border: 2px solid #00ff00;
}

/* Expiry countdown states */
.expiry-countdown.warning {
  color: #ffff00;
}

.expiry-countdown.danger {
  color: #ff0000;
  animation: pulse 1s infinite;
}

/* Additional base element styles */
input, textarea, select {
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  outline: none;
  border-radius: 0;
}

input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  position: relative;
}

/* Blinking cursor for all focused input elements */
input:focus::after, textarea:focus::after {
  content: '█';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ff00;
  animation: blink 1s linear infinite;
  font-weight: bold;
  pointer-events: none;
  font-size: 0.9em;
}

input::placeholder {
  color: #00aa00;
}

/* Ensure all interactive elements have proper styling */
a {
  color: #00ff00;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 10px #00ff00;
}

/* Ensure list items have proper styling */
li {
  color: #00ff00;
  margin: 8px 0;
  list-style-position: inside;
}

/* 8-bit Watermark */
.watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: rgba(0, 255, 0, 0.3);
  text-shadow: 0 0 2px rgba(0, 255, 0, 0.2);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: 1px;
}

/* Ordered list specific styling */
ol {
  list-style-position: outside;
  padding-left: 2em;
  margin: 0;
}

ol li {
  list-style-type: decimal;
  list-style-position: outside;
  margin: 8px 0;
  padding-left: 0.5em;
  text-indent: -1.5em;
  padding-left: 1.5em;
}

/* Unordered list specific styling */
ul {
  list-style-position: outside;
  padding-left: 2em;
  margin: 0;
}

ul li {
  list-style-type: disc;
  list-style-position: outside;
  margin: 8px 0;
  padding-left: 0.5em;
  text-indent: -1.5em;
  padding-left: 1.5em;
}

/* Nested list styling for better readability */
ol ul, ul ul, ol ol, ul ol {
  margin: 8px 0;
  padding-left: 1.5em;
}

ol ul li, ul ul li, ol ol li, ul ol li {
  text-indent: 0;
  padding-left: 0;
  margin: 4px 0;
}

/* Ensure emphasis elements have proper styling */
em {
  color: #00ff00;
  font-style: italic;
}

strong {
  color: #00ff00;
  font-weight: 600;
}

/* Additional component-specific styles */
.file-item {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff00;
  
  padding: 15px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.file-item:hover {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
  transform: translateY(-1px);
}

.file-info {
  flex: 1;
  text-align: left;
}

.file-name {
  font-weight: 600;
  color: #00ff00;
  margin-bottom: 5px;
  text-shadow: 0 0 8px #00ff00;
  text-align: left;
}

.file-meta {
  font-size: 0.9rem;
  color: #00aa00;
  line-height: 1.4;
  text-align: left;
}

.file-actions {
  display: flex;
  gap: 10px;
}

/* Ensure all buttons have consistent styling */
button, .btn {
  background: #000;
  border: 2px solid #00ff00;
  color: #00ff00;
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover, .btn:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
  text-shadow: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .file-management {
    grid-template-columns: 1fr;
  }
  
  .flex-container {
    flex-direction: column;
  }
  
  .flex-container > div {
    max-width: 100%;
  }
  
  .upload-section {
    padding: 20px;
    min-height: 250px;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .file-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .drag-drop-instruction {
    font-size: 16px;
  }
} 