/* Selected item chip (pill) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f0f0; /* soft gray background */
    border: 1px solid #ccc;
    border-radius: 20px;
    color: #333;
    padding: 5px 12px;
    font-size: 13px;
    margin-top: 5px;
    margin-right: 5px;
    display: flex;
    align-items: center;
}

/* X icon (remove) inside chip */
.select2-selection__choice__remove {
    color: #888;
    font-weight: bold;
    margin-right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

/* On hover, make X icon slightly darker */
.select2-selection__choice__remove:hover {
    color: #333;
}

/* Fix background square behind X (some themes show it) */
.select2-selection__choice__remove::before {
    content: none !important;
}

/* Border and background for the select box itself */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: 40px;
    padding: 4px;
    transition: border-color 0.3s;
}

/* Highlight focus state */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #5c9ded; /* Soft blue on focus */
    box-shadow: 0 0 0 0.1rem rgba(92, 157, 237, 0.25);
}

table.dataTable td,
table.dataTable th {
    white-space: nowrap;
    vertical-align: middle;
    font-size: 13px;
}

.dataTables_wrapper .row {
    margin-bottom: 1rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.table-responsive {
    overflow-x: auto;
}

/* Optional: Make row clickable */
#taskList tbody tr:hover {
    background-color: #f1f3f5;
    cursor: pointer;
}

/* Wrap headers if tight on space */
th {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 120px;
}