#simulator-content {
    max-width: 440px;
    margin: 0 auto;
}

.sim-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sim-label {
    min-width: 80px;
    font-weight: bold;
    text-align: right;
}

#beacon-pull-simulator {
  backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255,255,255,0.1);
    background: rgba(42, 42, 42, 0.9); /* 90% opaque */
}

.sim-input-group {
    display: flex;
    flex: 1;
    gap: 8px;
}


#simulator-panel input[type="number"],
#simulator-panel select {
    flex: 1;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #1e1e1e;
    color: white;
    font-size: 0.9em;
}

#simulator-panel input[type="number"] {
    min-width: 50px;
}

#simulator-panel input[type="submit"],
#simulator-panel input[type="button"] {
    padding: 6px 12px;
    background: #444;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

#simulator-panel input[type="submit"]:hover,
#simulator-panel input[type="button"]:hover {
    background: #666;
}

#targets {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 0;
    margin-top: 10px;
  background: transparent;
}

#targets legend {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 6px;
}

/* One line: name, count, X */
.target-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.target-name {
    flex: 1 1 auto;          /* takes most of the width */
    min-width: 0;
    padding: 4px 6px;
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
}

.target-count {
    flex: 0 0 60px;          /* fixed-ish width for count */
    padding: 4px 6px;
    text-align: right;
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
}

.remove-target {
    flex: 0 0 28px;          /* small, fixed button */
    padding: 3px 0;
    text-align: center;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-target:hover {
    background: #666;
}

.target-controls {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    align-items: center;
    gap: 14px;              /* more spacing between + and button */
    margin-top: 10px;
}

.target-controls .sim-label {
    min-width: 60px;        /* a bit narrower than Event/Beacons */
}

#addTargetBtn {
    flex: 0 0 32px;         /* small square-ish button */
    text-align: center;
}

.target-controls input[type="button"]:last-child {
    flex: 0 0 auto;         /* don’t stretch Targeted Pull */
}



#beacon-pull-simulator-toggle {
  position: fixed;
  left: -50px;
  bottom: 20%;
  transform: translateY(-50%);
  padding: 12px 14px;
  cursor: pointer;
  z-index: 9997;
  transition: all 0.2s ease;
  background-image: url('/assets/Assorted/Specialist_Beacon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(191, 116, 50, 0.4);
  border-left: none;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 0 8px rgba(191, 116, 50, 0.3);
  background-color: rgba(56, 56, 56, 0.9);
}

#beacon-pull-simulator-toggle:hover { box-shadow: 0 0 12px rgba(191, 116, 50, 0.6); left: 0px; }

#beacon-pull-simulator {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9998;
}

#simulator-panel {
    position: fixed;
    left: -420px; /* hidden off-screen */
    top: 0;
    width: 400px;
    height: 100%;
    background: rgba(42, 42, 42, 0.9);
    box-shadow: -2px 0 8px rgba(0,0,0,0.5);
    padding: 20px;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 9999;
}

#simulator-panel.open {
    left: 0;
}

#simulator-close {
    margin-left: 12px;
    margin-bottom: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    float: right;
    cursor: pointer;
}


#pull-results,
#faction-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #555;
    border-radius: 6px;
    margin-top: 12px;
}

#pull-table,
#faction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

#pull-table th,
#faction-table th {
    background: #333;
    color: white;
    text-align: left;
    padding: 6px 10px;
    position: sticky;
    top: 0;
    z-index: 1;
}

#pull-table td,
#faction-table td {
    padding: 6px 10px;
    border-top: 1px solid #444;
}

/* Rarity-based row colors */
.rarity-Common    { color: #6c6c6c; }
.rarity-Uncommon  { color: #38874f; }
.rarity-Rare      { color: #4369a3; }
.rarity-Epic      { color: #723681; }
.rarity-Legendary { color: #bf7432; }

/* Highlight for targeted units */
.targeted-row {
    border-left: 4px solid #bf7432;
    box-shadow: inset 0 0 4px #bf7432;
}

#pull-summary {
    font-weight: bold;
    margin-bottom: 8px;
}
