/*
navigation styling 
*/

.top-nav {
    background-color: #1a1a1a;
    padding: 12px 24px;
    box-shadow: 0 0 8px rgba(0, 192, 255, 0.15);
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #00c0ff;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
}

.nav-links a {
    margin-left: 24px;
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #00e5ff;
    text-shadow: 0 0 4px rgba(0, 229, 255, 0.6);
}


/* predition page styling */
body {
    background-color: #121212;
    font-family: 'Segoe UI', sans-serif;
    color: #f1f1f1;
    margin: 40px;
  }

  h2, h3 {
    text-align: center;
    color: #ffffff;
  }

  .container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .table-container {
    flex-grow: 1;
  }

  .dropdown, label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #00c0ff;
    text-transform: uppercase;
    font-size: 14px;
  }

  select, input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #1e1e1e;
    color: #00c0ff;
    border: 1px solid #444;
    border-radius: 6px;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 192, 255, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  select:hover, input[type="date"]:hover {
    border-color: #00c0ff;
    box-shadow: 0 0 8px rgba(0, 192, 255, 0.5);
  }

  select:focus, input[type="date"]:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  }

  .comment-tree {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 192, 255, 0.2);
    color: #f1f1f1;
    font-size: 14px;
  }

  .comment-tree th,
  .comment-tree td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #333;
  }

  .comment-tree tr:nth-child(even) {
    background-color: #252525;
  }

  .comment-tree tr:hover {
    background-color: #2f2f2f;
  }

  .comment-tree a.hnuser {
    color: #00c0ff;
    font-weight: 500;
    text-decoration: none;
  }

  .comment-tree a.hnuser:hover {
    text-decoration: underline;
  }

  .comment-tree th {
  cursor: pointer;
  position: relative;
  user-select: none;
  color: #00c0ff;
  transition: background-color 0.2s ease;
}

.comment-tree th:hover {
  background-color: #1e1e1e;
}

.comment-tree th.sorted-asc::after {
  content: "&2191"; /* ↑ */
  position: absolute;
  right: 10px;
  color: #00e5ff;
}

.comment-tree th.sorted-desc::after {
  content: "&2193"; /* ↓ */
  position: absolute;
  right: 10px;
  color: #00e5ff;
}
.controls-inline {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  width: 220px; /* ✅ Fixed width works now */
}

.control-group label {
  margin-bottom: 6px;
  color: #00c0ff;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
}

.control-group input,
.control-group select {
  padding: 10px 14px;
  background-color: #1e1e1e;
  color: #00c0ff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 0 6px rgba(0, 192, 255, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-container .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* show above */
  left: 95%;
  transform: translateX(-5%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: 12px;
}

.tooltip-container:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#reset-filters {
  background-color: #ff4d4f;     /* Red accent */
  border: none;
  color: white;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

#reset-filters:hover {
  background-color: #ff6b6d;
}

#reset-filters:active {
  transform: scale(0.96);
}

#reset-filters:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.5);
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}