html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

label {
    font-size: small;
    margin-top: 10px;
}

nav {
    background-color: white !important;
    margin-bottom: 1rem !important;
}

#themebanner {
    display:none;
}

thead {
    background-color: #cfe2ff;
}

.navbar-brand {
    width: 130px;
    height: 50px;
    margin-left: 50px;
    margin-right: 50px;
    background-image: url("../img/RSKLess-tiny.png");
    background-position: center;
    background-size: cover;
}


.cursor-alias {
    cursor: alias;
}

.cursor-all-scroll {
    cursor: all-scroll;
}

.cursor-auto {
    cursor: auto;
}

.cursor-cell {
    cursor: cell;
}

.cursor-col-resize {
    cursor: col-resize;
}

.cursor-context-menu {
    cursor: context-menu;
}

.cursor-copy {
    cursor: copy;
}

.cursor-crosshair {
    cursor: crosshair;
}

.cursor-default {
    cursor: default;
}

.cursor-e-resize {
    cursor: e-resize;
}

.cursor-ew-resize {
    cursor: ew-resize;
}

.cursor-grab {
    cursor: -webkit-grab;
    cursor: grab;
}

.cursor-grabbing {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.cursor-help {
    cursor: help;
}

.cursor-move {
    cursor: move;
}

.cursor-n-resize {
    cursor: n-resize;
}

.cursor-ne-resize {
    cursor: ne-resize;
}

.cursor-nesw-resize {
    cursor: nesw-resize;
}

.cursor-ns-resize {
    cursor: ns-resize;
}

.cursor-nw-resize {
    cursor: nw-resize;
}

.cursor-nwse-resize {
    cursor: nwse-resize;
}

.cursor-no-drop {
    cursor: no-drop;
}

.cursor-none {
    cursor: none;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-progress {
    cursor: progress;
}

.cursor-row-resize {
    cursor: row-resize;
}

.cursor-s-resize {
    cursor: s-resize;
}

.cursor-se-resize {
    cursor: se-resize;
}

.cursor-sw-resize {
    cursor: sw-resize;
}

.cursor-text {
    cursor: text;
}

.cursor-url {
    cursor: url(myBall.cursor-cur),auto;
}

.cursor-w-resize {
    cursor: w-resize;
}

.cursor-wait {
    cursor: wait;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

#site-nav .nav-link:hover {
    text-decoration: underline;
}

/* Enhanced Tab Styling - matching Dashboard TabManager */
.enhanced-tabs {
  background: #f8f9fa;
  padding: 0 20px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

.enhanced-tab-button {
  position: relative;
  border: none !important;
  background: transparent !important;
  color: #6c757d !important;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 20px !important;
  margin: 0 2px;
  border-radius: 6px 6px 0 0 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  text-decoration: none;
}

.enhanced-tab-button:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #495057 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: transparent !important;
  text-decoration: none;
}

.enhanced-tab-button.active {
  background: #ffffff !important;
  color: #212529 !important;
  font-weight: 600;
  border-color: transparent !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.enhanced-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #007bff;
}

/* Enhanced tab content */
.enhanced-tab-content {
  background: transparent;
  min-height: 400px;
  padding: 20px 0 0 0;
}

/* Add subtle animation when switching tabs */
.enhanced-tab-content .tabpanel {
  animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus styles for accessibility - only show when navigating with keyboard */
.enhanced-tab-button:focus {
  outline: none;
}

.enhanced-tab-button:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .enhanced-tabs {
    padding: 0 10px;
  }
  
  .enhanced-tab-button {
    min-width: 100px;
    padding: 12px 16px !important;
    font-size: 13px;
  }
}

/* ==========================================================================
   Upload / Parser Status Modal
   ========================================================================== */
.upload-status-modal {
  border-radius: 14px;
  overflow: hidden;
}

.upload-status-modal .modal-header {
  padding-bottom: 0.5rem;
}

.upload-status-title-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  flex-shrink: 0;
}

/* Tone helpers reused by the header icon */
.upload-status-title-icon.upload-status-tone-success { background: linear-gradient(135deg, #20c997, #198754); }
.upload-status-title-icon.upload-status-tone-danger  { background: linear-gradient(135deg, #f16b74, #dc3545); }
.upload-status-title-icon.upload-status-tone-primary  { background: linear-gradient(135deg, #3d8bfd, #0d6efd); }
.upload-status-title-icon.upload-status-tone-info     { background: linear-gradient(135deg, #3dd5f3, #0dcaf0); }
.upload-status-title-icon.upload-status-tone-warning  { background: linear-gradient(135deg, #ffca2c, #fd7e14); }
.upload-status-title-icon.upload-status-tone-secondary { background: linear-gradient(135deg, #adb5bd, #6c757d); }

/* Overall status banner */
.upload-status-overall {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.upload-status-overall-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #fff;
}

.upload-status-overall-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

.upload-status-overall--success   { background: #e8f6f0; border-color: #b6e3d1; }
.upload-status-overall--success .upload-status-overall-icon   { background: #198754; }
.upload-status-overall--danger    { background: #fdecee; border-color: #f5c2c7; }
.upload-status-overall--danger .upload-status-overall-icon    { background: #dc3545; }
.upload-status-overall--primary   { background: #e7f1ff; border-color: #b6d4fe; }
.upload-status-overall--primary .upload-status-overall-icon   { background: #0d6efd; }
.upload-status-overall--info      { background: #e3f7fc; border-color: #b6effb; }
.upload-status-overall--info .upload-status-overall-icon      { background: #0dcaf0; }
.upload-status-overall--warning   { background: #fff6e6; border-color: #ffe1a8; }
.upload-status-overall--warning .upload-status-overall-icon   { background: #fd7e14; }
.upload-status-overall--secondary { background: #f1f3f5; border-color: #dee2e6; }
.upload-status-overall--secondary .upload-status-overall-icon { background: #6c757d; }

/* Failure block */
.upload-status-failure {
  background: #fdecee;
  border: 1px solid #f5c2c7;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: #842029;
}

.upload-status-log {
  background: #2b2b2b;
  color: #f1f1f1;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Courier New', monospace;
}

/* Section title */
.upload-status-section-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a94a6;
  margin-bottom: 1rem;
}

/* Vertical timeline of pipeline steps */
.upload-status-timeline {
  display: flex;
  flex-direction: column;
}

.upload-status-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
  padding-bottom: 1.1rem;
}

.upload-status-step:last-child {
  padding-bottom: 0;
}

.upload-status-marker {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  background: #e9ecef;
  color: #6c757d;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #dee2e6;
}

.upload-status-step--done .upload-status-marker    { background: #198754; color: #fff; box-shadow: 0 0 0 1px #198754; }
.upload-status-step--active .upload-status-marker  { background: #0d6efd; color: #fff; box-shadow: 0 0 0 1px #0d6efd; }
.upload-status-step--failed .upload-status-marker  { background: #dc3545; color: #fff; box-shadow: 0 0 0 1px #dc3545; }
.upload-status-step--cancelled .upload-status-marker { background: #fd7e14; color: #fff; box-shadow: 0 0 0 1px #fd7e14; }

.upload-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.upload-status-connector {
  position: absolute;
  left: calc(1rem - 1px);
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.upload-status-step--done .upload-status-connector {
  background: #a3d9c0;
}

.upload-status-step-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.2rem;
}

.upload-status-step-label {
  font-weight: 600;
  color: #212529;
}