/* Left Pane Styles */

#left-pane {
    min-width: 2in;
    width: 300px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    position: relative;
    transition: all 0.3s ease;
}

#left-pane.collapsed {
    width: 30px;
    min-width: 30px;
}

#left-pane.collapsed #left-pane-content {
    display: none;
}

.toggle-button {
    position: absolute;
    top: 10px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

#left-pane-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

#searchControls {
    margin-bottom: 20px;
}


#priorityControls {
    margin-bottom: 20px;
}

#priorityControls select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    margin-top: 5px;
}

#personaControls {
    margin-bottom: 20px;
}

#releaseControls {
    margin-bottom: 20px;
}

#workflowStateControls {
    margin-bottom: 20px;
}

#workflowStateControls select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    margin-top: 5px;
}

#recycleBinControls {
    margin-bottom: 20px;
}

#recycleBinControls button {
    padding: 10px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#recycleBinControls button:hover {
    background-color: #f57c00;
}

#dependencyFlowControls {
    margin-bottom: 20px;
}

#dependencyFlowControls button {
    padding: 10px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#dependencyFlowControls button:hover {
    background-color: #1976d2;
}

#releaseBoardControls {
    margin-bottom: 20px;
}

#releaseBoardControls button {
    padding: 10px;
    background-color: #009688;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#releaseBoardControls button:hover {
    background-color: #00796b;
}

#boardControls {
    margin-bottom: 20px;
}

/* Inline priority label and popup (replaces native select) */
.priority-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.priority-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background-color: #e8f0fe;
    /* light blue */
    color: #0b57d0;
    font-weight: 600;
    /* Reduce font size by ~30% for a more compact label */
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.priority-popup {
    position: absolute;
    top: 36px;
    left: 0;
    min-width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    padding: 6px 0;
    z-index: 1200;
}

.priority-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    /* Slightly smaller options to match compact label */
    font-size: 0.85rem;
    line-height: 1.2;
}

.priority-option:hover {
    background-color: #eaf4ff;
    color: #0b57d0;
}

.priority-option.selected {
    background-color: #e1f0ff;
    font-weight: 700;
    color: #0b57d0;
}

/* Workflow state inline popup styles (match priority styling) */
.workflow-state-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.workflow-state-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background-color: #f1f8e9;
    /* light green */
    color: #33691e;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.workflow-state-popup {
    position: absolute;
    top: 36px;
    left: 0;
    min-width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    padding: 6px 0;
    z-index: 1200;
}

.workflow-state-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    font-size: 0.85rem;
}

.workflow-state-option:hover {
    background-color: #f0fff0;
    color: #33691e;
}

.workflow-state-option.selected {
    background-color: #e8f5e9;
    font-weight: 700;
    color: #33691e;
}

/* Persona inline popup styles */
.persona-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.persona-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background-color: #fff3e0;
    /* light amber */
    color: #bf360c;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.persona-popup {
    position: absolute;
    top: 36px;
    left: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    padding: 6px 0;
    z-index: 1200;
}

.persona-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    font-size: 0.85rem;
}

.persona-option:hover {
    background-color: #fff7ed;
    color: #bf360c;
}

.persona-option.selected {
    background-color: #fff3e0;
    font-weight: 700;
    color: #bf360c;
}

/* targetRelease inline popup styles */
.targetRelease-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.targetRelease-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background-color: #e3f2fd;
    /* light blue variant */
    color: #0d47a1;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.targetRelease-popup {
    position: absolute;
    top: 36px;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    padding: 6px 0;
    z-index: 1200;
}

.targetRelease-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    font-size: 0.85rem;
}

.targetRelease-option:hover {
    background-color: #e8f4ff;
    color: #0d47a1;
}

.targetRelease-option.selected {
    background-color: #e3f2fd;
    font-weight: 700;
    color: #0d47a1;
}

/* Selected Stories Panel */
#selectedStoriesPanel {
    margin-top: 15px;
}

#selectedStoriesEmpty {
    display: none;
}

/* Search Results Container */
#searchResultsContainer {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    display: none;
}

#searchResultsContainer h4 {
    margin: 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#searchResults {
    max-height: 300px;
    overflow-y: auto;
}

#searchResults .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 8px 15px;
    text-align: left;
    cursor: pointer;
}

#searchResults .list-group-item:hover {
    background-color: #f8f9fa;
}

.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.search-pagination button {
    padding: 5px 10px;
    background-color: #607d8b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Root Story Controls */
#rootStoryControls {
    margin-top: 15px;
}

/* Active criteria chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chips-container .chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 16px;
  background: #eef2f7;
  color: #333;
  font-size: 0.75rem;
  border: 1px solid #ddd;
}
.chips-container .chip .chip-close {
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  font-weight: 700;
  line-height: 1;
}
.chips-container .chip .chip-close:hover {
  color: #000;
}