h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcgeG1zbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMjUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMuMjYzLjU3NiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* AZPC Intranet Custom Styles */

/* Dense Layout Optimizations for Larger Screens */
@media (min-width: 992px) {
    /* Reduce container padding */
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Tighter card spacing */
    .card {
        margin-bottom: 0.75rem !important;
    }
    
    /* Compact card body */
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .card-footer {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Reduce heading sizes */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    
    /* Tighter row spacing */
    .row {
        margin-bottom: 0.75rem;
    }
    
    /* Compact stat cards */
    .compact-stats .card-body {
        padding: 0.5rem 0.75rem !important;
    }
    
    .compact-stats h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }
    
    .compact-stats small {
        font-size: 0.7rem !important;
    }
    
    /* Reduce list spacing */
    .list-unstyled li {
        margin-bottom: 0.5rem !important;
    }
    
    /* Compact navigation */
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Compact buttons */
    .btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Tighter form controls */
    .form-control, .form-select {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Compact table */
    .table td, .table th {
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Reduce alert padding */
    .alert {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

@media (min-width: 1200px) {
    /* Extra compact for XL screens */
    .card-body {
        padding: 0.6rem !important;
    }
    
    .card-header, .card-footer {
        padding: 0.4rem 0.6rem !important;
    }
    
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.35rem !important; }
    h5 { font-size: 0.95rem !important; }
    
    .nav-link {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.85rem !important;
    }
}

@media (min-width: 1400px) {
    /* Ultra compact for XXL screens */
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .card {
        margin-bottom: 0.6rem !important;
    }
    
    .card-body {
        padding: 0.5rem !important;
    }
    
    .row {
        margin-bottom: 0.6rem;
    }
}

.jumbotron {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Compact Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 1s ease-out, transform 1s ease-out;
    padding: 0.75rem 1rem !important;
}

.welcome-banner-fade-out {
    animation: fadeOutAndShrink 0.5s ease-out forwards;
    overflow: hidden;
}

@keyframes fadeOutAndShrink {
    from {
        opacity: 1;
        transform: scaleY(1);
        max-height: 80px;
        margin-bottom: 1rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    to {
        opacity: 0;
        transform: scaleY(0);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        pointer-events: none;
    }
}

.welcome-banner h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.welcome-banner p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.alert {
    border-radius: 0.5rem;
}

.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
}

/* Form improvements */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Category icons */
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Enhanced Admin Links Grid Styling */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0.75rem 0.5rem;
}

.sortable-header:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.sortable-header i {
    transition: color 0.2s ease;
    opacity: 0.7;
}

.sortable-header:hover i {
    opacity: 1;
}

.sortable-header .fa-sort {
    opacity: 0.3;
}

.sortable-header .fa-sort-up,
.sortable-header .fa-sort-down {
    opacity: 1;
    color: #0d6efd !important;
}

/* Filter Controls Enhancement */
.filter-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.filter-controls .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-controls .input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.filter-controls .form-select,
.filter-controls .form-control {
    font-size: 0.9rem;
    border-color: #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-controls .form-select:focus,
.filter-controls .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Quick Filter Buttons */
.filter-controls .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.filter-controls .btn-outline-info:hover,
.filter-controls .btn-outline-success:hover,
.filter-controls .btn-outline-warning:hover,
.filter-controls .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Active Filter Badges */
.alert-info .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.alert-info .badge.bg-primary {
    background-color: #0d6efd !important;
}

.alert-info .badge.bg-success {
    background-color: #198754 !important;
}

.alert-info .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.alert-info .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.alert-info .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Enhanced Table Styling */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.075);
    cursor: pointer;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table tbody tr.table-active {
    background-color: rgba(13, 110, 253, 0.15);
    border-left: 3px solid #0d6efd;
}

.table tbody tr.table-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
}

/* Search Input Enhancement */
.filter-controls .input-group .form-control {
    border-right: none;
}

.filter-controls .input-group .btn {
    border-left: none;
    background-color: #e9ecef;
    border-color: #ced4da;
}

.filter-controls .input-group .btn:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

/* Grid Stats and Info */
.card-header small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.text-muted.ms-3 {
    font-style: italic;
}

/* Bulk Selection Styling */
.card.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Drag and Drop Visual Feedback */
.admin-link-row.sortable-chosen {
    opacity: 0.5;
    background-color: rgba(13, 110, 253, 0.1);
}

.admin-link-row.sortable-drag {
    background-color: rgba(13, 110, 253, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
}

.grip:hover {
    color: #0d6efd !important;
    cursor: grab;
}

.grip:active {
    cursor: grabbing;
}

/* Status Badge Enhancements */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

/* CategoryView Enhanced Styling */
.drag-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.drag-drop-zone.drag-over {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.drag-drop-content {
    transition: all 0.3s ease;
}

.drag-drop-zone.drag-over .drag-drop-content {
    transform: translateY(-2px);
}

.drag-drop-zone .fa-cloud-upload-alt {
    transition: all 0.3s ease;
}

.drag-drop-zone.drag-over .fa-cloud-upload-alt {
    color: #0d6efd !important;
    transform: scale(1.1);
}

/* Enhanced Link Cards */
.link-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.link-card .link-title {
    color: #0d6efd;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-card .link-title:hover {
    color: #0b5ed7;
    text-decoration: underline !important;
}

/* Link Actions */
.link-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.link-card:hover .link-actions {
    opacity: 1;
    visibility: visible;
}

.link-actions .btn {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.125);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-actions .btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

.link-actions .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.link-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Form Enhancements */
.category-view .card-header .btn-close {
    font-size: 0.875rem;
    opacity: 0.7;
}

.category-view .card-header .btn-close:hover {
    opacity: 1;
}

/* URL Input Group Enhancement */
.input-group .btn-outline-secondary {
    border-left: none;
}

.input-group .form-control:focus + .btn {
    border-color: #86b7fe;
}

/* Status Indicators */
.link-card .card-text.text-muted {
    font-size: 0.875rem;
    line-height: 1.4;
}

.link-card .text-muted i {
    opacity: 0.7;
}

/* Alert Enhancements */
.alert .btn {
    vertical-align: baseline;
}

/* Category Header */
.category-view h1 {
    color: #495057;
    font-weight: 600;
}

.category-view h1 i {
    color: #6c757d;
}

/* Quick Action Buttons */
.category-view .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Link Grid Improvements */
.category-view .row.g-0 > div {
    border-right: 1px solid #f8f9fa;
    border-bottom: 1px solid #f8f9fa;
}

.category-view .row.g-0 > div:nth-child(3n) {
    border-right: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .category-view .row.g-0 > div:nth-child(2n) {
        border-right: none;
    }
    
    .category-view .row.g-0 > div:nth-child(3n) {
        border-right: 1px solid #f8f9fa;
    }
}

@media (max-width: 768px) {
    .drag-drop-zone .card-body {
        padding: 2rem 1rem;
    }
    
    .drag-drop-zone h5 {
        font-size: 1.1rem;
    }
    
    .drag-drop-zone p {
        font-size: 0.9rem;
    }
    
    .link-actions {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    .link-card .card-body {
        padding-bottom: 1rem;
    }
    
    .category-view .row.g-0 > div {
        border-right: none;
    }
}

/* Animation for drag and drop feedback */
@keyframes dropSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.drag-drop-zone.drop-success {
    animation: dropSuccess 0.6s ease;
}

/* Loading States */
.link-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.link-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Validation Styling */
.category-view .is-invalid {
    border-color: #dc3545;
}

.category-view .is-valid {
    border-color: #198754;
}

/* Sort Order Badge */
.link-card .fa-sort-numeric-up {
    color: #6c757d;
    font-size: 0.75rem;
}

/* External Link Indicator */
.link-card .fa-external-link-alt {
    color: #17a2b8;
    font-size: 0.75rem;
}

/* Drag Handle for Sortable Category Links */
.drag-handle {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    cursor: grab;
    padding: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.link-card:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle:hover {
    background: rgba(13, 110, 253, 0.1);
}

.drag-handle:hover i {
    color: #0d6efd !important;
}

/* Hide drag handles in alphabetical sort mode */
.links-column-layout.alphabetical-sort .drag-handle {
    display: none !important;
}

/* Prevent text selection during drag */
.sortable-drag,
.sortable-chosen,
.sortable-ghost {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.sortable-drag * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

body.dragging-active,
body.dragging-active * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    cursor: grabbing !important;
}

/* Sortable States for Category View */
.sortable-ghost {
    opacity: 0.3 !important;
    background: rgba(13, 110, 253, 0.1) !important;
    border: 2px dashed #0d6efd !important;
    /* Maintain grid positioning */
    height: auto !important;
    min-height: 150px !important;
}

.sortable-ghost * {
    visibility: hidden !important;
}

.sortable-chosen {
    cursor: grabbing !important;
    opacity: 0.8 !important;
}

.sortable-drag {
    opacity: 1 !important;
    background: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    transform: rotate(3deg) scale(1.05) !important;
    z-index: 9999 !important;
}

.sortable-fallback {
    opacity: 1 !important;
    background: white !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #0d6efd !important;
}

/* Hover state during drag */
.sortable-hover {
    background: rgba(13, 110, 253, 0.05) !important;
    border: 2px solid #0d6efd !important;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

/* Ensure sortable items maintain their size during drag */
.link-row {
    transition: transform 0.2s ease;
    /* Ensure grid item takes full grid cell */
    display: flex;
    flex-direction: column;
}

.link-row.sortable-chosen {
    transform: scale(1.02);
}

.link-row .link-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fix grid positioning during drag */
.links-column-layout.sortable-drag-active {
    /* Prevent grid auto-placement issues during drag */
    grid-auto-flow: row;
}

/* Column Layout for Category View Links - Using CSS Grid for proper drag-and-drop */
.links-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.links-column-layout .link-row {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Mobile: 1 column */
@media (min-width: 576px) {
    .links-column-layout {
        grid-template-columns: repeat(1, 1fr);
        padding: 0.75rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .links-column-layout {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.75rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .links-column-layout {
        grid-template-columns: repeat(3, 1fr);
        padding: 0.75rem;
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1200px) {
    .links-column-layout {
        grid-template-columns: repeat(4, 1fr);
        padding: 0.75rem;
    }
}

/* Extra Large Desktop: 5 columns */
@media (min-width: 1400px) {
    .links-column-layout {
        grid-template-columns: repeat(5, 1fr);
        padding: 0.75rem;
    }
}

/* Bootstrap Row Layout for Links.razor - Using Flexbox */
.row#links-list {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row#links-list .link-row {
    /* Ensure proper flex behavior during drag */
    flex-shrink: 0;
}

/* Ghost element for Bootstrap row layout */
.row#links-list .sortable-ghost {
    /* Match the column width */
    flex: 0 0 auto;
    width: calc(33.333333% - 1.5rem); /* col-xl-4 */
}

@media (max-width: 1199px) {
    .row#links-list .sortable-ghost {
        width: calc(50% - 1.5rem); /* col-lg-6 */
    }
}

@media (max-width: 991px) {
    .row#links-list .sortable-ghost {
        width: calc(100% - 1.5rem); /* full width on smaller screens */
    }
}




