/* Import Bootstrap CSS (served from CDN to avoid vendoring files).
   You can later replace this with a local file under assets/vendor if desired. */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* Your app-specific styles can go below */
body {
    background-color: #f8f9fa;
}

/* Admin: drag handle & dragging styles */
.drag-handle {
    cursor: grab;
    user-select: none;
}
.draggable-row.dragging {
    opacity: 0.6;
}
/* When drag-to-reorder is disabled (due to search/sort), show visual cue */
.drag-disabled .drag-handle {
    cursor: not-allowed;
    opacity: 0.5;
}
/* Optional header sort indicators */
th.sorted-asc::after {
    content: " \2191";
    font-size: 0.8em;
}
th.sorted-desc::after {
    content: " \2193";
    font-size: 0.8em;
}

/* Import Bootstrap CSS (served from CDN to avoid vendoring files).
   You can later replace this with a local file under assets/vendor if desired. */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* Your app-specific styles can go below */
body {
    background-color: #f8f9fa;
}

/* Admin: drag handle & dragging styles */
.drag-handle {
    cursor: grab;
    user-select: none;
}
.draggable-row.dragging {
    opacity: 0.6;
}
/* When drag-to-reorder is disabled (due to search/sort), show visual cue */
.drag-disabled .drag-handle {
    cursor: not-allowed;
    opacity: 0.5;
}
/* Optional header sort indicators */
th.sorted-asc::after {
    content: " \2191";
    font-size: 0.8em;
}
th.sorted-desc::after {
    content: " \2193";
    font-size: 0.8em;
}

/* Public: Top links tiles */
.top-link-tile {
    width: 110px;
    color: inherit;
}
.top-link-img {
    width: 96px;
    height: 96px;
    background: #fff;
}
.top-link-label {
    font-size: 0.9rem;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Category image fallback with overlay */
.top-link-img.with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}
 .top-link-img.with-bg .bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-link-img.with-bg .overlay-initials {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Global link styles */
/* Color all standard links and keep buttons (.btn) unaffected */
a:not(.btn),
a:not(.btn):visited {
    color: #db3f6e;
    text-decoration: none;
}

a:not(.btn):hover,
a:not(.btn):focus {
    text-decoration: underline;
}

/* Public: Category card image with overlayed title */
.category-card .category-image {
    position: relative;
    height: 180px;
    background-color: #6c757d; /* fallback color when no image */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 0.375rem; /* match Bootstrap card radius */
    border-top-right-radius: 0.375rem;
    overflow: hidden; /* ensure overlay respects rounded corners */
}
.category-card .category-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.5rem 0.75rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.category-card .no-image-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
