body {
}

:root {
    --sidebar-bg: #f8f9fa; /* Light theme sidebar background */
    --bs-body-bg: #fff; /* Explicitly set light theme background to white */
}

.link-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
}
.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.link-card .dropdown-menu {
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, .15);
}
.link-card .dropdown.show {
    z-index: 1050;
}
.link-card .dropdown-toggle {
    border: none;
    background: transparent;
    padding: 0.25rem 0.5rem;
}
.link-card .dropdown-toggle:hover {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}
.category-badge {
    font-size: 0.75em;
}
.tag-badge {
    font-size: 0.7em;
}
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--sidebar-bg);
}
.click-count {
    font-size: 0.8em;
    color: #6c757d;
}
.favorite-star {
    color: #ffc107;
    cursor: pointer;
    transition: color 0.2s;
}
.favorite-star.not-favorite {
    color: #dee2e6;
}
.favorite-star:hover {
    color: #ffb300;
}
/* Correction spécifique pour les dropdowns dans une grille */
.row .col-md-6 .link-card,
.row .col-lg-4 .link-card,
.row .col-xl-3 .link-card {
    overflow: visible;
}
/* S'assurer que les dropdowns ne sont pas coupés */
.card-body {
    overflow: visible;
}