.container {
    max-width: 800px;
}

.card {
    border-radius: 10px;
    background-color: #ffffff;
}

h2 {
    color: #333;
}

.form-check-label {
    margin-left: 5px;
    font-size: 1rem;
    color: #555;
}

textarea {
    resize: none;
}

button {
    min-width: 100px;
}

.highlighted {
    background-color: #c77dff; /* Purple base */
    color: white;
    border-radius: 4px;
    padding: 2px 4px;
    cursor: pointer;
    border: 1px solid rgba(199, 125, 255, 0.7); /* optional border like first file */
}

.highlighted:hover {
    background-color: #a55de0; /* darker purple on hover */
}

.user-select {
    user-select: text;
    cursor: text;
}

.highlight-box {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 220px;
}

.highlight-box textarea {
    width: 100%;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tooltip-trigger {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 14px;
    background-color: #6c757d;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.tooltip-box {
    position: fixed;          /* <-- THIS makes it float above everything */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #6c757d;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 1000px;
    max-width: 90%;
    z-index: 1001;
    text-align: left;
}


/* Tight small square close button */
.tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 14px;                 /* fixed size */
  height: 14px;                /* fixed size */
  padding: 0;                  /* remove default padding */
  margin: 0;
  min-width: 0;                /* prevent browser min-width */
  background: #e63946;
  border: none;
  border-radius: 3px;          /* small rounded square */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;              /* important so the button doesn't stretch vertically */
  font-size: 0;                /* hide any glyph width influence if accidentally included */
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.25);
}

/* make the SVG fit exactly */
.tooltip-close svg {
  display: block;
  width: 10px;
  height: 10px;
}

/* hover/focus styles for accessibility */
.tooltip-close:hover { background:#d62828; }
.tooltip-close:focus {
  outline: 2px solid rgba(214,40,40,0.35);
  outline-offset: 2px;
}



