body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
}
header {
  background-color: #1e1e2f;
  color: #fff;
  padding: 1rem 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.branding h1 {
  margin: 0;
  font-size: 1.6rem;
}

.branding p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

.header-links {
  display: flex;
  gap: 1.2rem;
}

.header-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-links a:hover {
  color: #007bff;
}



.controls {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #eee;
}

.controls input {
  padding: 0.5rem;
  width: 200px;
}

.controls button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #1e1e2f;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

.controls button:hover {
  background-color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: left;
}

tr:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}

#packetDetails {
  margin: 1rem;
  background-color: #fff;
  padding: 1rem;
  border-radius: 5px;
}

pre {
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
}

.network {
  position: relative;
  height: 200px;
  margin: 1rem;
  background: #e8e8f0;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.device {
  width: 100px;
  height: 100px;
  background-color: #1e1e2f;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  position: relative;
}

#packetContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.packet {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  background-color: #007bff;
  color: #fff;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.packet.tcp { background-color: #007bff; color: #fff; }
.packet.udp { background-color: #28a745; color: #fff; }
.packet.icmp { background-color: #fd7e14; color: #fff; }
.packet.http { background-color: #dc3545; color: #fff; }
.packet.dns { background-color: #ff00ff; color: #fff; }

/* New protocols */
.packet.arp { background-color: #8b0000; color: #fff; }
.packet.ipv6 { background-color: #0066cc; color: #fff; }
.packet.tls { background-color: #663399; color: #fff; }


.charts {
  margin: 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
}

.chart-container {
  margin: 1rem 0;
  width: 100%;
  max-width: 600px;
}
/* Protocol color coding for table rows */
tr.tcp td { color: #007bff; font-weight: bold; }
tr.udp td { color: #28a745; font-weight: bold; }
tr.icmp td { color: #fd7e14; font-weight: bold; }
tr.http td { color: #dc3545; font-weight: bold; }

/* Resizable details panel */
#detailsPanel {
  border-top: 3px solid #ccc;
  resize: vertical;
  overflow: auto;
  min-height: 100px;
  max-height: 400px;
  background: #f9f9f9;
  padding: 10px;
  font-family: monospace;
  white-space: pre-wrap;
}

.detail-section {
  border: 1px solid #ddd;
  margin: 2px 0;
  border-radius: 4px;
  overflow: hidden;
}

.section-header {
  background: #f0f0f0;
  padding: 6px 10px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* Arrow for collapsed/expanded */
.section-header::before {
  content: "▼";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
}

.section-header.collapsed::before {
  content: "▶";
}

.section-body {
  padding: 6px 12px;
  background: #fff;
  display: block;
}

/* Nested sections indentation */
.detail-section .detail-section {
  margin-left: 15px;
  margin-right: 0;
  border-color: #ccc;
}


/* Status bar - pinned to bottom */
#statusBar {
  background: #1a1a1a;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;   /* makes it stay visible */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-top: 2px solid #444;
}
main {
  padding-bottom: 50px; /* makes space for the status bar */
}

/* Highlight selected row */
.selected-row {
  background-color: #ffeeba;
}

/* Optional hover highlight */
#packetTable tbody tr:hover {
  background-color: #f1f1f1;
}

/* Accordion container */
#scenarioAccordion {
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Accordion items */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

/* Accordion button */
.accordion-button {
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  background: linear-gradient(90deg, #f9f9f9, #f1f1f1);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  border-left: 5px solid transparent;
  border-radius: 5px;
}

.accordion-button:hover {
  background: linear-gradient(90deg, #e9f5ff, #dcefff);
}

.accordion-button.active {
  background: linear-gradient(90deg, #d0eaff, #a8d5ff);
  border-left: 5px solid #007bff;
  color: #003366;
}

/* Accordion content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #fff;
  padding: 0 20px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.accordion-content.open {
  padding: 15px 20px;
}

/* Highlight scenario packets */
.scenario-highlight {
  background-color: #fff8c6; /* soft yellow highlight */
}

/* Optional: Add arrow indicator for toggle */
.accordion-button::after {
  content: "\25BC"; /* down arrow */
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.accordion-button.active::after {
  transform: rotate(180deg); /* rotate arrow up when open */
}

.accordion-content strong {
  color: #007bff;
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .accordion-button {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .accordion-content {
    font-size: 0.88rem;
    padding: 10px 16px;
  }
}

.scenario {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  background: #f4f4f4;
}

.scenario h3 {
  margin: 0 0 5px 0;
}

.scenario button {
  margin-top: 5px;
  cursor: pointer;
}
 body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      min-height: 100vh;
      background: #f5f5f5;
      color: #333;
    }

    /* Sidebar Navigation */
    nav {
      width: 220px;
      background-color: #1e1e2f;
      color: #fff;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    nav h2 {
      margin-top: 0;
      font-size: 1.2rem;
      text-align: center;
    }

    nav button {
      background: #333;
      border: none;
      color: #fff;
      padding: 10px;
      border-radius: 5px;
      text-align: left;
      cursor: pointer;
      font-size: 0.95rem;
      transition: all 0.2s;
    }

    nav button:hover, nav button.active {
      background: #007bff;
    }

    /* Main content */
    main {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }

    main h1 {
      margin-top: 0;
      color: #1e1e2f;
    }

    section {
      display: none;
      margin-bottom: 30px;
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    section.active {
      display: block;
    }

    section h2 {
      color: #007bff;
    }

    section h3 {
      color: #1e1e2f;
      margin-bottom: 10px;
    }

    section p, section ul, section li {
      line-height: 1.6;
    }

    code {
      background: #f0f0f0;
      padding: 2px 5px;
      border-radius: 3px;
      font-family: monospace;
    }

    .highlight {
      background: #fff8c6;
      padding: 5px 8px;
      border-radius: 5px;
      font-weight: bold;
    }

    /* Split view for scenarios + workspace */
    .split-container {
      display: flex;
      gap: 20px;
    }

    .split-left {
      flex: 1;
      background: #fafafa;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 15px;
      overflow-y: auto;
    }

    .split-right {
      flex: 2;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 15px;
      overflow-y: auto;
    }

    .workspace-section {
      margin-bottom: 30px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 15px;
    }

    th, td {
      border: 1px solid #ddd;
      padding: 8px;
    }

    th {
      background: #f4f4f4;
    }

    .network {
      position: relative;
      height: 200px;
      margin: 1rem 0;
      background: #e8e8f0;
      border-radius: 10px;
      display: flex;
      justify-content: space-around;
      align-items: center;
    }

    .device {
      width: 100px;
      height: 100px;
      background-color: #1e1e2f;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 10px;
      position: relative;
    }

    #packetContainer {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    #statusBar {
      background: #1a1a1a;
      color: #fff;
      padding: 6px 12px;
      font-size: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 4px;
      margin-top: 10px;
    }

    /* Charts */
    .charts {
      margin-top: 1rem;
    }

    .chart-container {
      margin: 1rem 0;
      width: 100%;
      max-width: 600px;
    }

    /* Responsive adjustments */
    @media (max-width: 800px) {
      body {
        flex-direction: column;
      }

      nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
      }

      nav button {
        flex: 1;
        font-size: 0.85rem;
      }

      .split-container {
        flex-direction: column;
      }
    }
    
    /* Welcome Section Layout */
.welcome-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.welcome-text ul, 
.welcome-text ol {
  margin-left: 1.5rem;
  line-height: 1.6;
}

.welcome-images figure {
  margin: 0 0 1.5rem;
  text-align: center;
}

.welcome-images img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.welcome-images figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.welcome-footer {
  margin-top: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #007acc;
  font-style: italic;
}
    
/* For the main capture workspace network view */
.network .device {
  width: 100px;
  height: 100px;
  background-color: #1e1e2f;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  position: relative;
}

/* For the educational intro diagrams */
.network-diagrams .device {
  background: #007acc;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  min-width: 120px;
  flex: 0 0 120px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.network-diagrams .device:hover {
  transform: scale(1.05);
}
 

.arrow {
  font-size: 2rem;
  position: relative;
  width: 60px;
  text-align: center;
}

/* Packets */
.packet {
  position: absolute;
  top: -10px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: movePacket 2s linear infinite;
  opacity: 0.9;
}

.packet.tcp { background: #007bff; }   /* blue */
.packet.udp { background: #28a745; }   /* green */
.packet.http { background: #dc3545; }  /* red */
.packet.dns { background: #8e44ad; }   /* purple */
.packet.icmp { background: #fd7e14; }  /* orange */

/* Animation */
@keyframes movePacket {
  from { left: 0; opacity: 1; }
  to { left: 100%; opacity: 0; }
}


/* Legend */
.protocol-legend {
  text-align: center;
  margin-top: 1rem;
}

.legend-item {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 6px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
}

.legend-item.tcp { background: #007bff; }
.legend-item.udp { background: #28a745; }
.legend-item.http { background: #dc3545; }
.legend-item.dns { background: #8e44ad; }
.legend-item.icmp { background: #fd7e14; }

.diagram-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: -1rem;
}
#filter-queries {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

#filter-queries h2 {
  color: #1e3a8a;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

#filter-queries .query-group {
  margin-bottom: 18px;
  padding: 12px 15px;
  background: #fff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
}

#filter-queries h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #0f172a;
}

#filter-queries ul {
  margin: 0;
  padding-left: 20px;
}

#filter-queries li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

#filter-queries code {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 5px;
  border-radius: 5px;
  font-family: monospace;
}

#filter-queries .note {
  margin-top: 15px;
  padding: 10px;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 6px;
  font-size: 0.95rem;
}
/* === Container === */
#query-exercises {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Headings */
#query-exercises h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #1f2937; /* dark gray-blue */
}

#query-exercises p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
  color: #6b7280; /* muted gray */
}

/* === Layout === */
.exercise-layout {
  display: flex;
  gap: 25px;
  margin-top: 1rem;
}

/* Exercises Section */
.exercises {
  flex: 2;
}

/* Cheat Sheet Panel */
.cheat-sheet {
  flex: 1;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cheat sheet headings */
.cheat-sheet h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #007bff;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* Highlighted commands */
.cheat-sheet code {
  background: #f0f7ff;
  padding: 4px 6px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #0056b3;
  font-weight: bold;
  display: inline-block;
  margin: 2px 0;
  transition: background 0.2s ease;
}

.cheat-sheet code:hover {
  background: #dbeafe; /* subtle hover glow */
}

/* Section emphasis */
.cheat-sheet strong {
  color: #333;
  background: #fff3cd;
  padding: 2px 6px;
  border-radius: 4px;
}

/* List styling */
.cheat-sheet ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.cheat-sheet ul li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.95rem;
}

.cheat-sheet ul li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .cheat-sheet {
    max-height: none;
    margin-top: 1rem;
  }
}
/* === Exercise Cards === */
.exercise-section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.exercise-section h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

/* Difficulty Colors */
.beginner { background-color: #e0f2fe; }      /* light blue */
.intermediate { background-color: #fef9c3; }  /* light yellow */
.advanced { background-color: #fee2e2; }      /* light red */

/* Individual Exercise */
.exercise {
  padding: 15px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.exercise p {
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-size: 1rem;
}

/* Input + Buttons */
.exercise input {
  padding: 10px 14px;
  width: 65%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.exercise input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}

.exercise button {
  padding: 10px 16px;
  margin-left: 10px;
  border-radius: 8px;
  border: none;
  background-color: #2563eb;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.exercise button:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

/* Answer Feedback */
.exercise span {
  margin-left: 15px;
  font-weight: bold;
  font-size: 1rem;
}

.exercise span.correct {
  color: #16a34a; /* green */
}

.exercise span.incorrect {
  color: #dc2626; /* red */
}

/* Guide text */
.exercise em {
  display: block;
  margin-bottom: 10px;
  font-style: normal;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .exercise-layout {
    flex-direction: column;
  }
  .cheat-sheet {
    max-height: none;
    order: -1;
  }
  .exercise input {
    width: 100%;
    margin-bottom: 10px;
  }
  .exercise button {
    width: 100%;
    margin-left: 0;
  }
}

/* Cheatsheet card */
.cheatsheet-card {
  max-width: 880px;
  margin: 24px auto;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(18, 38, 63, 0.06);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #12202b;
  border: 1px solid rgba(16,24,40,0.04);
}

/* Header */
.cheatsheet-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cheatsheet-header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}
.cheatsheet-header .muted {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}
#termSearch {
  min-width: 200px;
  max-width: 320px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
  background: #f7fbff;
  outline: none;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* List */
.cheatsheet-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* Term item */
.term-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9f2ff;
  background: linear-gradient(180deg,#ffffff,#fcfeff);
}

/* Toggle (header row) */
.term-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  justify-content: space-between;
}
.term-toggle:focus { box-shadow: 0 0 0 4px rgba(0,123,255,0.12); border-radius: 8px; }

.term-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0f1724;
}
.term-badge {
  background: linear-gradient(90deg,#eef2ff,#f0f7ff);
  color: #0b3a6b;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(11,58,107,0.06);
}

/* Chevron */
.chev { width: 18px; height: 18px; transform: rotate(0deg); transition: transform .22s ease; fill: none; stroke: #6b7280; stroke-width: 2; }
.term-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Body (hidden by default) */
.term-body {
  display: none;
  padding: 12px 14px 16px;
  border-top: 1px dashed rgba(15,23,36,0.04);
  background: linear-gradient(180deg,#fbfdff,#ffffff);
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Emphasize code & badges inside body */
.term-body code {
  background: #0f1724;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.88rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.term-body strong { color: #0b3a6b; }

/* Highlighted badge for "important keywords" */
.term-body .keyword {
  display: inline-block;
  margin-left: 8px;
  background: #fff7ed;
  color: #b45309;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(180,83,9,0.08);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width:780px){
  .cheatsheet-header { gap: 8px; }
  #termSearch { width: 100%; max-width: 100%; }
}

/* Modal container */
.modal {
  display: none; /* hidden by default */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); /* semi-transparent overlay */
}

/* Modal content box */
.modal-content {
  background-color: #f4f7fa;
  margin: 50px auto; 
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}

/* Close button */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Inner text and hints */
#protocol-hints p, #protocol-hints ul {
  font-size: 0.95rem;
  line-height: 1.4;
}

#protocol-hints li {
  margin-bottom: 6px;
}

#protocol-hints code {
  background: #e1ecf4;
  padding: 2px 4px;
  border-radius: 4px;
  color: #007bff;
}