/* Page-specific styles only; base look comes from catalogue/styles.css */
/* Force navbar visibility in case of overlay or page-specific overrides */
.navbar { position: relative; z-index: 2000; }
.nav-links { display: flex !important; }
.nav-links .nav-link { color: #333 !important; visibility: visible !important; display: inline-flex !important; }
.nav-links .nav-link i { display: inline-block; }
.page-header { text-align: center; margin: 1rem 0; }
.page-header h1 { margin: 0.5rem 0; }
.dropzone {
  border: 2px dashed #888;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(0,0,0,0.03);
}
.dropzone.dragover {
  border-color: #4F46E5;
  background: rgba(79,70,229,0.08);
}
.actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.hint { font-size: 12px; color: #666; text-align: center; margin-top: 0.5rem; }
.preview { display: none; justify-content: center; }
.preview img, .preview video { max-width: 320px; max-height: 240px; border-radius: 8px; }
.status { text-align: center; font-weight: 600; }
.status.success { color: #059669; }
.status.error { color: #DC2626; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #888;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}
.status-row.success {
  border-color: rgba(16,185,129,0.35); /* emerald-500 */
  background: linear-gradient(180deg, rgba(236,253,245,0.8), rgba(236,253,245,0.5)); /* emerald-50 */
}
.status-row.error {
  border-color: rgba(220,38,38,0.35); /* red-600 */
  background: linear-gradient(180deg, rgba(254,242,242,0.85), rgba(254,226,226,0.6)); /* red-50/100 */
}
.status-row .status { text-align: left; flex: 1; }
.status-row .action-col { flex: 0 0 auto; }
.event-log { list-style: none; padding-left: 0; margin: 0; }
.event-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 260px;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.event-log.theme-white, .terminal.theme-white .event-log {
  background: #ffffff;
  color: #111827; /* gray-900 */
  border-color: #e5e7eb; /* gray-200 */
}
.event-log li {
  font-size: 0.92rem;
  padding: 6px 4px;
  border-bottom: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.event-log li::before {
  content: "$";
  color: #9CA3AF; /* gray-400 */
  margin-right: 6px;
}
.event-log time { color: #666; font-size: 0.8rem; }
/* Status icons (replacing text tags) */
.event-log .status-icon {
  font-size: 0.95rem;
  margin: 0 4px;
  line-height: 1;
}
.event-log .status-icon.info { color: #2563EB; }     /* blue-600 */
.event-log .status-icon.success { color: #059669; }  /* emerald-600 */
.event-log .status-icon.error { color: #DC2626; }    /* red-600 */

/* Dracula theme for CLI */
.event-log.theme-dracula, .terminal.theme-dracula .event-log {
  background: #282a36; /* Dracula bg */
  color: #f8f8f2; /* Dracula fg */
  border-color: #3a3c4e;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.event-log.theme-dracula li, .terminal.theme-dracula .event-log li {
  color: #f8f8f2;
}
.event-log.theme-dracula li::before, .terminal.theme-dracula .event-log li::before {
  color: #bd93f9; /* Dracula purple prompt */
}
.event-log.theme-dracula time, .terminal.theme-dracula .event-log time {
  color: #8a8fb3; /* softened */
}
.event-log.theme-dracula .tag, .terminal.theme-dracula .event-log .tag {
  background: rgba(255,255,255,0.08);
  color: #f8f8f2;
}
.event-log.theme-dracula .tag.success, .terminal.theme-dracula .event-log .tag.success { background: rgba(80,250,123,0.18); color: #50fa7b; }
.event-log.theme-dracula .tag.error, .terminal.theme-dracula .event-log .tag.error { background: rgba(255,85,85,0.18); color: #ff5555; }
.event-log.theme-dracula .tag.info, .terminal.theme-dracula .event-log .tag.info { background: rgba(139,233,253,0.18); color: #8be9fd; }
/* Dracula theme icon overrides */
.event-log.theme-dracula .status-icon.info, .terminal.theme-dracula .event-log .status-icon.info { color: #8be9fd; }
.event-log.theme-dracula .status-icon.success, .terminal.theme-dracula .event-log .status-icon.success { color: #50fa7b; }
.event-log.theme-dracula .status-icon.error, .terminal.theme-dracula .event-log .status-icon.error { color: #ff5555; }
.tag { font-size: 0.75rem; padding: 2px 6px; border-radius: 999px; background: #eee; color: #333; }
.tag.success { background: #D1FAE5; color: #065F46; }
.tag.error { background: #FEE2E2; color: #991B1B; }
.tag.info { background: #E0E7FF; color: #3730A3; }

/* Yellow theme for CLI */
.event-log.theme-yellow, .terminal.theme-yellow .event-log {
  background: #FFFBEB; /* amber-50 */
  color: #78350F;      /* amber-900 */
  border-color: #FDE68A; /* amber-300 */
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}
.event-log.theme-yellow li, .terminal.theme-yellow .event-log li {
  color: #78350F;
}
.event-log.theme-yellow li::before, .terminal.theme-yellow .event-log li::before {
  color: #D97706; /* amber-600 prompt */
}
.event-log.theme-yellow time, .terminal.theme-yellow .event-log time {
  color: #A16207; /* amber-700 */
}
.event-log.theme-yellow .tag, .terminal.theme-yellow .event-log .tag {
  background: rgba(245, 158, 11, 0.12); /* amber glow */
  color: #92400E; /* amber-800 */
}
.event-log.theme-yellow .tag.success, .terminal.theme-yellow .event-log .tag.success {
  background: rgba(16,185,129,0.18); /* emerald */
  color: #065F46;
}
.event-log.theme-yellow .tag.error, .terminal.theme-yellow .event-log .tag.error {
  background: rgba(239,68,68,0.18); /* red */
  color: #991B1B;
}
.event-log.theme-yellow .tag.info, .terminal.theme-yellow .event-log .tag.info {
  background: rgba(245,158,11,0.22); /* amber */
  color: #92400E;
}
/* Yellow theme icon overrides */
.event-log.theme-yellow .status-icon.info, .terminal.theme-yellow .event-log .status-icon.info { color: #D97706; }   /* amber-600 */
.event-log.theme-yellow .status-icon.success, .terminal.theme-yellow .event-log .status-icon.success { color: #065F46; } /* emerald-800 */
.event-log.theme-yellow .status-icon.error, .terminal.theme-yellow .event-log .status-icon.error { color: #B91C1C; }   /* red-700 */
/* Upload card styling - keep white background */
.upload-card { background: #ffffff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.preview { position: relative; }
.preview #previewMedia {
  position: relative;
  display: inline-block;
  padding: 12px;
  /*border: 1px solid rgba(16,185,129,0.25); !* emerald-500 @ 25% *!*/
  /*border-radius: 12px;*/
  /*background: linear-gradient(180deg, rgba(236,253,245,0.7), rgba(236,253,245,0.4)); !* emerald-50 *!*/
}
.preview #mediaNode img, .preview #mediaNode video { display: block; max-width: 150px; max-height: 150px; }
/* Per-file thumbnail container */
.item-thumb {
  position: relative;
  display: inline-block;
  margin: 8px;
  padding: 6px;
  border: 1px solid rgba(107,114,128,0.25); /* gray-500 @ 25% */
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.item-thumb:hover {
  border-color: rgba(99,102,241,0.45); /* indigo-500 */
  box-shadow: 0 6px 18px rgba(99,102,241,0.18);
  transform: translateY(-1px);
}
.item-thumb img, .item-thumb video { display: block; max-width: 200px; max-height: 150px; border-radius: 8px; }
.item-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.2);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.item-remove:hover { background: #fff; }

/* Layout polish for status + button on small screens */
@media (max-width: 600px) {
  .status-row { flex-direction: column; align-items: stretch; }
  .status-row .action-col { width: 100%; }
  .status-row .action-col #uploadBtn { width: 100%; }
}
.clear-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: solid 1px black;
  color: #333;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0.8;
  z-index: 2;
}
.clear-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}
.clear-btn i { font-size: 1.1rem; }
/* Keep Upload hidden until a valid file is picked */
.actions #uploadBtn { display: none; }
/* Upload button is moved next to preview; hide by default */
#uploadBtn { display: none; }
.btn-success {
  background-color: #10B981; /* emerald-500 */
  color: white;
  border: none;
  border-radius: 12px;
  will-change: box-shadow, transform;
  animation: goldPulse 2.2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35), 0 0 0 0 rgba(16, 185, 129, 0.15);
}
.btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45), 0 0 0 8px rgba(16, 185, 129, 0.2);
}

/* Apply same animated glow to Choose File button */
#browseBtn {
  will-change: box-shadow, transform;
  animation: goldPulse 2.2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35), 0 0 0 0 rgba(255, 196, 0, 0.15);
}
#browseBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.45), 0 0 0 8px rgba(255, 196, 0, 0.2);
}

/* Animated yellow glow copied from catalogue pagination */
@keyframes goldPulse {
  0% {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25), 0 0 0 0 rgba(255, 196, 0, 0.15);
  }
  70% {
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.35), 0 0 0 12px rgba(255, 196, 0, 0.12);
  }
  100% {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25), 0 0 0 0 rgba(255, 196, 0, 0.15);
  }
}

/* Layout: preview and action column in one row */
.preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.action-col {
  display: flex;
  align-items: center;
}
.action-col #uploadBtn {
  min-width: 200px;
  width: 220px;
  height: 60px;
  padding: 0;
  border-radius: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 60px; /* centers icon/text when inline-block */
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-col #uploadBtn i {
  font-size: 1.4rem;
  vertical-align: middle;
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .preview-row { flex-direction: column; }
  .action-col #uploadBtn { width: 100%; min-width: 0; }
}
.section {
  margin: 1rem;
}

/* Invitation error panel styles */
.error-panel {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(220,38,38,0.2);
}
.error-panel h3 {
  color: #DC2626; /* red-600 */
  margin-top: 0;
}
.error-panel .hint {
  color: #6b7280; /* gray-500 */
}