.message-info {
    color: white;
    background-color: #4CAF50;
    padding: 10px;
    border-radius: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

    margin: 10px;
    /*margin-top: 1px;*/
    /*margin-bottom: 1px;*/
}
.message-error {
    color: black;
    background-color: salmon;
    padding: 10px;
    border-radius: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

    margin: 10px;
}
.category {
    /*border: 1px solid red;*/
    /*margin: 2px;*/
}
.tags {
    font-size: small;
    display: inline;
    white-space: normal;
}

h1 {
    font-weight: normal;
    font-size: large;
    padding: 5px;
    /*margin: 7px;*/
    margin-block: unset;
    margin-top: 20px;
}
.card .card-body{
    border-radius: 5px;
}
.li-nowrap {

}
.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: darkgrey;
}
.topic-header-link{
    display: block;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.topic-header-link:hover{
    text-decoration: none;
}
.topic-toggle-icon::after {
    content: "+";
    font-weight: 600;
}

a[aria-expanded="true"] .topic-toggle-icon::after {
    content: "-";
}


p {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

    /*margin: 2px;*/
    margin-top: 1px;
    margin-bottom: 1px;
    /*padding: unset;*/
    padding-left: 5px;
    padding-right: 5px;

    /*padding-left: 5px;*/
    /*padding-right: 5px;*/
}

a {
    /*font-size: small;*/
    text-decoration-line: none;
}
.btn-link {
    text-decoration-line: none;
    background-color:#0d6efd;
    color:white;
    border-radius: 8px;
    padding-left: 6px;
    padding-right:6px;
    font-size: small;
}

.edit-icon {
    width: 16px;
    height: 16px;
}
.topic-edit-button {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    color: inherit;
    cursor: pointer;
}
.topic-edit-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
body.edit-mode .topic-edit-button {
    display: inline-flex;
}
body.edit-mode .topic-header {
    background-color: #f8d7da;
}
.table-clip-column {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.result-tag-list,
.result-tag-list span,
.result-tag-list a {
    display: inline;
}

.result-table .col-loc {
    white-space: nowrap;
}

.tag-item {
    display: inline-block;
    background: #eee;
    padding: 6px 10px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
}
.tag-item:hover {
    background: #ddd;
}

.tag-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.tag-autocomplete-list .list-group-item {
    cursor: pointer;
}

select,
input[type="text"] {
    text-align: left;
}

body.edit-mode .topic-card .card-body{
    background: transparent; /* let --bs-card-bg show through */
}


.motd a,
.motd a:visited {
    color: blue  !important;
    text-decoration: underline !important;
}
.motd a:hover,
.motd a:focus {
    text-decoration: underline !important;
}

.empty-state {
    /* subtle background without being loud */
    background:
            radial-gradient(900px 280px at 20% 20%, rgba(0,0,0,0.05), transparent 60%),
            radial-gradient(700px 240px at 90% 10%, rgba(0,0,0,0.04), transparent 55%);
}

.empty-state-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.08);
}

.empty-state-logo {
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.15));
    transform: rotate(-2deg);
}

/* Base (Bootstrap handles):
   <576px: 1 col via col-12
   ≥576px: 2 cols via col-sm-6
*/

/* ≥800px: 3 columns */
@media (min-width: 800px) {
    .topic-col {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

/* ≥1440px: 4 columns */
@media (min-width: 1440px) {
    .topic-col {
        width: 25%;
    }
}

/* ≥1920px: 6 columns */
@media (min-width: 1920px) {
    .topic-col {
        width: 16.666667%;
    }
}
