body {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333333;
}
.left-column {
  width: 20%;
  background-color: #f0f0f0;
  overflow-y: auto;
}
.right-column {
  width: 80%;
  display: flex;
  overflow: hidden;
  background-color: #f4f4f4;
}
h1, h2 {
  color: #333333;
}
#filing-list, #filing-list ul {
  list-style: none;
  padding: 0;
}
#filing-list li {
  cursor: pointer;
  padding: 3px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-size: 12px;
}

#filing-list li:hover {
  background-color: #f0f0f0;
}

#filing-list li.selected {
  background-color: #e0e0e0;
  border-color: #999999;
}

#filing-list li .filing-content ul li {
  background-color: #ddf5dc;
  border-color: #cccccc;
}

#filing-list li .filing-content ul li:hover {
  background-color: #ddffaa;
}

#filing-list li .filing-content ul li.selected {
  background-color: #bdffba;
  border-color: #999999;
}
#filing-timer, #content-timer {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
}

.reveal-file-button,
.sec-edgar-link-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  margin-left: 5px;
  color: #0066cc;
}
.reveal-file-button:hover,
.sec-edgar-link-button:hover {
  text-decoration: underline;
}
.highlight-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #c5c5c5;
  border: 1px solid #000000;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2000;  /* Increased z-index to be above the trees */
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  opacity: 0.8;
}
.highlight-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px #ffbf00;
  opacity: 1;
}
.highlight-toggle:active {
  transform: scale(0.95);
}
.highlight-toggle.active {
  background-color: #ffef40;
}
.highlighted-word {
  background-color: #ffff00;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
}
.highlighted-content {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}
.highlighted-content:hover {
    user-select: text;
}
.highlighted-content a {
    user-select: auto;
    cursor: pointer;
    color: #0066cc;
}
.filing-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.filing-name-input {
    flex: 1;
    margin-right: 10px;
    padding: 3px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 0.9em;
    background-color: #ffffff;
    color: #333333;
}
.filing-name-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}
.filing-date, .filing-type {
    font-size: 0.8em;
    margin-left: 5px;
}
.filing-date::after {
    content: '•';
    margin: 0 5px;
}
.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 0 5px;
    margin-right: 5px;
    color: #0066cc;
}
.filing-content {
    margin-left: 20px;
}
.filing-content.hidden {
    display: none;
}
#fetch-filings, #clear-saved-filings, #open-database {
  padding: 5px 10px;
  border: 1px solid #cccccc;;
  cursor: pointer;
  margin-bottom: 7px;
}
#fetch-filings:hover, #clear-saved-filings:hover, #open-database:hover {
    background-color: #e0e0e0;
}
#fetch-filings:active, #clear-saved-filings:active, #open-database:active {
    background-color: #d0d0d0;
}

/* Add this new rule to target all lists in the document */
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* Add these rules to your existing CSS file */

#highlighted-content p {
    font-family: Arial, sans-serif !important;
    line-height: 1.6 !important;
}

.tree-content {
    flex: 1;
    font-family: system-ui;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
}

.tree-view-container {
    position: absolute;
    width: calc(100% - 20px);
    background-color: #e7e7e7;
    padding: 10px;
    border-radius: 5px;
    transition: top 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #cccccc;  /* Added border */
}

.tree-view-container.highlighted {
    background-color: #fff;
    box-shadow: 6px 12px 15px rgba(0,0,0,0.3);
    border-color: #999999;  /* Darker border when highlighted */
}

.tree-view {
    font-family: system-ui;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.4;
    overflow-x: auto;
}

.refresh-tree-view {
    float: right;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

/* Remove any styles related to highlighting or positioning */

/* Add these new styles */
.right-column h1,
.right-column button {
  margin: 10px;
}

.highlighted-paragraph {
    background-color: #fff;
    transition: background-color 0.3s ease;
}
