body {
  font-family: 'Segoe UI', sans-serif;
  margin: 30px;
  background-color: #f9fafc;
  color: #333;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

button, select, input, a {
  padding: 6px 12px;
  margin: 4px 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}

button:hover, a:hover {
  background-color: #eef1f5;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f0f3f6;
}

.controls {
  margin-bottom: 20px;
}

label {
  margin-right: 8px;
}

.filter-group, .column-group {
  margin-bottom: 12px;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.flex-row > * {
  margin-right: 10px;
  margin-bottom: 6px;
}

.node.highlighted {
  stroke: orange !important;
  stroke-width: 3px !important;
  opacity: 1 !important;
}

.link.highlighted {
  stroke: orange !important;
  stroke-width: 3px !important;
  opacity: 1 !important;
}


#container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#network {
  flex-grow: 1;        /* fills remaining space */
  transition: width 0.3s ease;
  border: 1px solid #ccc;
  position: relative;
  min-width: 0;        /* prevents overflow */
}

#taskDetailsPanel {
  width: 0;
  max-width: 25vw;
  background: #f9f9f9;
  border-left: 1px solid #ddd;
  overflow-y: auto;
  transition: width 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  white-space: pre-wrap;
}

#taskDetailsPanel.open {
  width: 25vw;
}

.modal {
  display: none;
  position: fixed;
  z-index: 300;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 25px;
  border: 1px solid #888;
  width: 60%;
  border-radius: 12px;
  max-height: 80%;
  overflow-y: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}
