body {
  background-color: #0f172a;
  color: white;
}

.shell-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.shell-wrapper > .card {
  width: 100%;
  max-width: 100%;
}

.shell-card {
  flex: 0 0 100%; /* 2 per row */
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
  border: 2px solid #22c55e;
  border-radius: 10px;
  min-width: 250px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
  color: #e5e7eb; /* Light gray text - no red! */
  padding: 1.5rem !important;
  animation: slideIn 0.3s ease;
  transition: all 0.3s ease;
}

.shell-card:hover {
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
  border-color: #16a34a;
}

.shell-card * {
  color: inherit; /* Inherit from shell-card */
}

.shell-card .card-title {
  color: #fb923c !important; /* Orange for title */
  font-weight: 600;
}

.shell-card .text-muted {
  color: #cbd5e1 !important; /* Lighter gray for better visibility */
}

.shell-card .text-info {
  color: #0ea5e9 !important; /* Blue for info */
}

.shell-card .text-success {
  color: #22c55e !important; /* Green for success */
}

.shell-card .alert {
  color: #e5e7eb !important; /* Light text for alerts */
  background-color: rgba(14, 165, 233, 0.1) !important;
  border-color: #0ea5e9 !important;
}

.shell-card .alert-success {
  color: #d1fae5 !important; /* Light green text */
  background-color: rgba(34, 197, 94, 0.15) !important;
  border-color: #22c55e !important;
}

.shell-card .alert-info {
  color: #dbeafe !important; /* Light blue text */
  background-color: rgba(14, 165, 233, 0.15) !important;
  border-color: #0ea5e9 !important;
}

.shell-card h6 {
  color: #22c55e !important; /* Green for headings */
  font-weight: 600;
}

.shell-card small {
  color: #94a3b8 !important; /* Muted gray for small text */
}

.shell-card .text-success {
  color: #22c55e !important; /* Green for success */
}

.shell-card pre {
  border: 1px solid #334155;
  border-radius: 4px;
}

/* JSON Display Container - Beautiful formatting matching upload UI */
.json-display-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
  margin-top: 1rem;
}

.json-code {
  margin: 0;
  padding: 1.5rem;
  background-color: #0f172a;
  color: #22c55e; /* Green text for JSON */
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  white-space: pre;
  word-wrap: normal;
}

.json-code code {
  color: #22c55e; /* Green text */
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

/* JSON syntax highlighting colors */
.json-code code .string { color: #86efac; } /* Lighter green for strings */
.json-code code .number { color: #60a5fa; } /* Blue for numbers */
.json-code code .boolean { color: #fbbf24; } /* Yellow for booleans */
.json-code code .null { color: #f87171; } /* Red for null */

.card-title {
  color: #fb923c;
}

.sidebar {
  border-left: 1px solid #475569;
}

.btn-cyan {
  background-color: #06b6d4;
  color: white;
}

.btn-cyan:hover {
  background-color: #0891b2;
}

/* Diff View Styles - GitHub-like */
.diff-container {
  border: 1px solid #334155;
  border-radius: 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, 'Courier New', monospace;
  line-height: 1.4;
}

.diff-line {
  padding: 2px 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-line.unchanged {
  color: #e5e7eb;
  background-color: #1f2937;
}

.diff-line.deleted {
  color: #fca5a5;
  background-color: #7f1d1d;
  border-left: 3px solid #ef4444;
}

.diff-line.added {
  color: #86efac;
  background-color: #14532d;
  border-left: 3px solid #22c55e;
}

.diff-line.deleted::before {
  content: "- ";
  color: #ef4444;
  font-weight: bold;
}

.diff-line.added::before {
  content: "+ ";
  color: #22c55e;
  font-weight: bold;
}

/* Hover effects for diff lines */
.diff-line:hover {
  filter: brightness(1.1);
}

/* Scrollbar styling for diff container */
.diff-container::-webkit-scrollbar {
  width: 8px;
}

.diff-container::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 4px;
}

.diff-container::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.diff-container::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Diff section styling */
.diff-section {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
}

.diff-section h6 {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

 /* Table container */
  .rules-wrapper {
    background-color: #0f172a; /* very dark background to frame */
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  /* Custom table colors */
  .rules-table {
    width: 100%;
    border-collapse: collapse;
  }

  .rules-table thead {
    background-color: #1e293b;
    color: #f8fafc;
  }

  .rules-table thead th {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
  }

  .rules-table tbody tr:nth-child(odd) {
    background-color: #334155; /* odd rows */
    color: #f1f5f9;
  }

  .rules-table tbody tr:nth-child(even) {
    background-color: #1e293b; /* even rows */
    color: #f1f5f9;
  }

  .rules-table tbody tr:hover {
    background-color: #475569; /* hover effect */
  }

  .rules-table td {
    padding: 0.5rem;
    vertical-align: middle;
  }

  .rules-table .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.65em;
  }

  /* Download Button Container */
  .download-btn-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }

  /* Rules wrapper styling to match upload UI */
  .shell-card .rules-wrapper {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.15);
  }

  .shell-card .rules-wrapper h6 {
    color: #22c55e !important;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
  }

  /* Sticky download button at top right */
  .sticky-download {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    border-bottom: 2px solid #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .download-cleaned-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-transform: uppercase;
  }

  .download-cleaned-btn-inline {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
  }

  .download-cleaned-btn-inline:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
  }

  .download-cleaned-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
  }

  .download-cleaned-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
  }

  .download-cleaned-btn:disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
  }

  .download-cleaned-btn i {
    font-size: 1.2rem;
  }

/* Code Diff Viewer Styles */
.code-card {
  background-color: #1e293b;
  color: white;
  border: 1px solid #0ea5e9;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.code-card .card-header {
  background-color: #0ea5e9;
  color: white;
  border-bottom: 1px solid #0ea5e9;
}

.code-card .nav-tabs {
  border-bottom: 1px solid #475569;
  margin-bottom: 0;
  background-color: #1e293b;
}

.code-card .nav-tabs .nav-link {
  color: #94a3b8;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  background-color: #1e293b;
}

.code-card .nav-tabs .nav-link:hover {
  color: #f1f5f9;
  background-color: #334155;
}

.code-card .nav-tabs .nav-link.active {
  color: #f1f5f9;
  background-color: #334155;
  border-bottom: 2px solid #0ea5e9;
}

.code-card .tab-content {
  background-color: #1e293b;
}

.code-card .code-container {
  min-height: 400px;
}

.code-card pre {
  font-size: 12px;
  line-height: 1.4;
  overflow: auto;
  max-height: 600px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  color: #f1f5f9;
}

.code-card .diff-container {
  background-color: #1f2937 !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
}

.code-card .text-warning {
  color: #fb923c !important;
}

.code-card .text-info {
  color: #0ea5e9 !important;
}

.code-card .card-footer {
  background-color: #1e293b;
  border-top: 1px solid #475569;
  color: #94a3b8;
}

.code-card .btn-group .btn {
  border-radius: 0.375rem;
}

.code-card .btn-outline-danger {
  color: #ef4444;
  border-color: #ef4444;
}

.code-card .btn-outline-danger:hover {
  color: #fff;
  background-color: #ef4444;
  border-color: #ef4444;
}

.code-card .btn-success {
  background-color: #22c55e;
  border-color: #22c55e;
}

.code-card .btn-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
}

.validation-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: center;
}

.validation-header h2 {
  font-size: 2.5em;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.validation-header p {
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
}

.status-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  backdrop-filter: blur(4px);
}

.status-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
}

.status-number {
  font-size: 2em;
  font-weight: bold;
  color: #495057;
}

.status-label {
  color: #6c757d;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pending { color: #ffc107; }
.approved { color: #28a745; }
.rejected { color: #dc3545; }

.changes-container {
  max-height: 600px;
  overflow-y: auto;
}

.change-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.change-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.change-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.change-info {
  flex: 1;
}

.rule-id {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.change-type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 0.5rem;
}

.type-modify { background: #17a2b8; color: white; }
.type-delete { background: #dc3545; color: white; }
.type-add { background: #28a745; color: white; }

.change-description {
  font-size: 1.1em;
  font-weight: 500;
  color: #495057;
  margin: 0.5rem 0;
}

.change-path {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  color: #6c757d;
  font-size: 0.9em;
}

.change-content {
  padding: 1.5rem;
  background: #f8f9fa;
}

.change-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.change-label {
  font-weight: 500;
  color: #495057;
  min-width: 100px;
}

.change-value {
  flex: 1;
  background: white;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #e9ecef;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.change-actions {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
}

    @media (max-width: 768px) {
      .status-bar {
        flex-direction: column;
        gap: 1rem;
      }
      
      .validation-controls {
        flex-direction: column;
      }
      
      .change-header {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .change-row {
        flex-direction: column;
        gap: 0.5rem;
      }
    }


    /* Resizable split pane for Changes & Results tab */
.resizable-container {
  display: flex;
  height: 600px;
  position: relative;
  width: 100%;
}

.resizable-pane {
  overflow: auto;
  position: relative;
  background-color: #1f2937;
}

.resizable-pane.left {
  flex: 1;
  min-width: 200px;
}

.resizable-pane.right {
  flex: 1;
  min-width: 200px;
}

.resizable-divider {
  width: 8px;
  background-color: #475569;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.resizable-divider:hover {
  background-color: #0ea5e9;
}

.resizable-divider:active {
  background-color: #0284c7;
}

/* Visual indicator on hover */
.resizable-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.resizable-divider:hover::before {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Resize cursor during drag */
body.resizing {
  cursor: col-resize !important;
  user-select: none;
}

body.resizing * {
  cursor: col-resize !important;
}

/* Change History Section */
#changesHistorySection {
  margin-bottom: 2rem;
}

#changesHistorySection .card {
  border: 1px solid #475569;
}

#changesHistorySection .card-header {
  background-color: #334155;
  border-bottom: 1px solid #475569;
}

#changesHistorySection .table {
  margin-bottom: 0;
}

#changesHistorySection .table thead {
  background-color: #1e293b;
  border-bottom: 2px solid #475569;
}

#changesHistorySection .table thead th {
  color: #f1f5f9;
  font-weight: 600;
  padding: 1rem;
  border: none;
}

#changesHistorySection .table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background-color 0.2s;
}

#changesHistorySection .table tbody tr:hover {
  background-color: #334155 !important;
}

#changesHistorySection .table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: none;
}

#changesHistorySection .badge {
  font-size: 0.9em;
  padding: 0.4em 0.8em;
  font-weight: 500;
}

#changesHistorySection .btn-outline-info {
  border-color: #0ea5e9;
  color: #0ea5e9;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
}

#changesHistorySection .btn-outline-info:hover {
  background-color: #0ea5e9;
  color: white;
}

/* History Detail Modal */
.modal-content.bg-dark {
  border: 1px solid #475569;
}

.modal-header {
  border-bottom: 1px solid #475569;
}

.modal-footer {
  border-top: 1px solid #475569;
}

.modal-body pre {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.375rem;
}

.modal-body pre code {
  color: #f1f5f9;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.875rem;
}

/* Scrollbar for history table */
#changesHistorySection .table-responsive {
  max-height: 400px;
  overflow-y: auto;
}

#changesHistorySection .table-responsive::-webkit-scrollbar {
  width: 8px;
}

#changesHistorySection .table-responsive::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 4px;
}

#changesHistorySection .table-responsive::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

#changesHistorySection .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Three-pane resizable layout */
.resizable-container-three {
  display: flex;
  flex-direction: row;
  height: 600px;
  position: relative;
  width: 100%;
}

.resizable-pane-three {
  overflow: auto;
  position: relative;
  background-color: #1f2937;
  display: flex;
  flex-direction: column;
}

.resizable-pane-three.history {
  flex: 1 1 25%;
  min-width: 150px;
}

.resizable-pane-three.middle {
  flex: 1 1 37.5%;
  min-width: 150px;
}

.resizable-pane-three.right {
  flex: 1 1 37.5%;
  min-width: 150px;
}

.resizable-divider-three {
  width: 8px;
  background-color: #475569;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.resizable-divider-three:hover {
  background-color: #0ea5e9;
}

.resizable-divider-three:active {
  background-color: #0284c7;
}

/* Two-pane resizable for rule review */
.resizable-container-two {
  display: flex;
  flex-direction: row;
  height: 500px;
  position: relative;
  width: 100%;
  border: 1px solid #475569;
  border-radius: 4px;
  overflow: hidden;
}

.resizable-pane-two {
  overflow: hidden;
  position: relative;
  background-color: #1f2937;
  display: flex;
  flex-direction: column;
}

.resizable-pane-two.left {
  flex: 1 1 50%;
  min-width: 150px;
}

.resizable-pane-two.right {
  flex: 1 1 50%;
  min-width: 150px;
}

.resizable-divider-two {
  width: 8px;
  background-color: #475569;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.resizable-divider-two:hover {
  background-color: #0ea5e9;
}

.resizable-divider-two:active {
  background-color: #0284c7;
}

/* Visual indicator on hover for three-pane dividers */
.resizable-divider-three::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.resizable-divider-three:hover::before {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  text-align: center;
  background-color: #1e293b;
  padding: 3rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid #0ea5e9;
}

.loading-text h5 {
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.loading-text p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}

.spinner-border {
  border-width: 0.3rem;
}

/* Upload Area Styles */
.upload-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.upload-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 6px 30px rgba(14, 165, 233, 0.2);
}

.upload-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-bottom: 2px solid #0284c7;
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.upload-area {
  border: 3px dashed #475569;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(2, 132, 199, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
  transition: left 0.5s;
}

.upload-area:hover {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.upload-area:hover::before {
  left: 100%;
}

.upload-area.dragover {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
  transform: scale(1.02);
}

.upload-content {
  position: relative;
  z-index: 1;
}

.upload-icon {
  font-size: 4rem;
  color: #0ea5e9;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.upload-title {
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.upload-hint {
  color: #64748b;
  font-size: 0.85rem;
}

.uploaded-file-display {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.1) 100%);
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  animation: slideIn 0.3s ease;
}

.uploaded-file-display #fileNameText {
  color: #f1f5f9 !important;
  font-size: 1rem;
  font-weight: 600;
}

.uploaded-file-display small {
  color: #0ea5e9 !important;
  font-size: 0.875rem;
}

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

/* Issue Summary Styles */
.issue-summary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
  border: 2px solid #22c55e;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  animation: slideIn 0.3s ease;
}

.issue-summary-header {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.issue-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.issue-count-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.issue-count-item:hover {
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.issue-count-item.has-issues {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.issue-count-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0ea5e9;
  display: block;
  margin-bottom: 0.15rem;
}

.issue-count-item.has-issues .issue-count-number {
  color: #f59e0b;
}

.issue-count-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.issue-count-item.has-issues .issue-count-label {
  color: #fbbf24;
}

.remove-issue-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.remove-issue-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.remove-issue-btn:active {
  transform: translateY(0);
}

.no-issues-message {
  text-align: center;
  padding: 2rem;
  color: #22c55e;
}

.no-issues-message i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Purple outline button for boolean conversion */
.btn-outline-purple {
  border-color: #8b5cf6 !important;
  color: #8b5cf6 !important;
  background-color: transparent !important;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus {
  background-color: rgba(139, 92, 246, 0.1) !important;
  border-color: #8b5cf6 !important;
  color: #8b5cf6 !important;
}

.btn-check:checked + .btn-outline-purple,
.btn-check:active + .btn-outline-purple {
  background-color: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  color: white !important;
}

/* Single-page workflow sections */
.workflow-section {
  animation: fadeIn 0.5s ease-in;
}

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

.workflow-section .card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.workflow-section .card:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}