/* ============================================================
   style.css
   Dark theme for HGI LIMS Gene Expression Tool
   ============================================================ */

:root {
  --bg-main: #050510;
  --bg-panel: #11111c;
  --bg-panel-light: #181824;
  --text-main: #f5f5f5;
  --text-muted: #9a9ab3;
  --border-subtle: #27273a;
  --accent: #1e4620;
  --link: #156efd;
}

body {
  font-family: sans-serif;
  margin: 2rem;
  background:
    radial-gradient(circle at top left, #182848 0, transparent 55%),
    radial-gradient(circle at bottom right, #4b6cb7 0, transparent 60%),
    #000;
  color: var(--text-main);
  min-height: 100vh;
}

a { color: var(--link); }

/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: var(--bg-panel-light);
  font-family: Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-bottom: solid 1px var(--border-subtle);
  box-shadow: 0 6px 18px rgba(0,0,0,0.65);
  border-radius:6px;
  z-index:1;
  margin-bottom: 2rem;
}

.navbar a, .navbar label {
  float: left;
  font-size: 14px;
  color: var(--text-main);
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
}

.navbar a::first-letter, .navbar label::first-letter {
  color: #f88;
}

/* Main table container */
#tableContainer {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  background: var(--bg-panel);
  color: var(--text-main);
}

th, td {
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 0.9rem;
  background: var(--bg-panel);
}

th {
  background: #202036;
  position: sticky;
  top: 0;
  color: var(--text-main);
  text-align: left;
}

tr:nth-child(even) td { background: #171727; }
tr:hover td { background: #232341; }

/* Specific styling for the Gene Expression Module */
.query-card {
  background: var(--bg-panel-light);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.query-card h3 {
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  padding: 8px 0;
  margin: -1.5rem -2rem 1rem;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
}

.lims-input {
  background: #05050b;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px;
  border-radius: 6px;
  font-size: 1rem;
}

input.lims-input::placeholder {
  font-style: italic;
  color: #666a80;
}

.btn-lims {
  background: var(--accent);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.btn-lims:hover { filter: brightness(1.2); }

/* Custom gene tags mimicking the hide-row-btn style */
.gene-tag {
  color: #ffd6d6;
  background: #5b1515;
  border: 1px solid #ff9999;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 5px;
  display: inline-block;
}

/* Remove Filter Button */
.btn-remove {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    margin-left: 5px;
}

.btn-remove:hover {
    background: #5b1515;
    color: white;
}
