a {
    color: #007BFF; /* Default link color; adjust if needed */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.deck-tree-card {
    border: 1px solid #dee2e6;
    margin-bottom: 1em;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tree-header {
    background-color: #f5f5f5;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tree-header:hover {
    background-color: #e9ecef;
}

.header-content {
    display: block;
    flex: 1;
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-content:hover {
    color: #007BFF; /* You can use any desired hover color here */
}

.card-body {
    padding: 15px;
}

.child-node {
    margin-bottom: 10px;
}

.deck-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border: 1px solid lightgray;
    border-radius: 0.25rem;
}

.deck-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-meta {
    display: flex;
    align-items: center;
}

.card-count {
    margin-right: 10px;
    color: #777;  /* A muted color for the card count */
}

.deck-action {
    margin-left: 10px;
    color: #007BFF; /* Default link color; adjust if needed */
}

.deck-action:hover {
    color: #0056b3; /* Darkened blue color for hover effect */
}

/* Add/eject controls: both links are rendered; the state class picks
   exactly ONE to show, so JS can flip state without re-rendering.
   These rules live here (the last-loaded stylesheet) so nothing can
   override them and show both icons at once. */
.deck-cascade-controls,
.topic-cascade-controls {
    display: inline-flex;
    align-items: center;
}

.deck-cascade-controls .cascade-remove-link {
    display: none;
}

.deck-cascade-controls.in-cascade .cascade-add-link {
    display: none;
}

.deck-cascade-controls.in-cascade .cascade-remove-link {
    display: inline;
}

.topic-cascade-controls .topic-hide-link {
    display: none;
}

.topic-cascade-controls.queue-visible .topic-show-link {
    display: none;
}

.topic-cascade-controls.queue-visible .topic-hide-link {
    display: inline;
}
