/* Estilos centralizados para el proyecto Mascotas en Buenas Manos */

.dropdown-menu {
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.footer {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Efecto de línea animada solo para enlaces simples, no dropdowns */
.nav-item:not(.dropdown) .nav-link {
    position: relative;
}
.nav-item:not(.dropdown) .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s;
}
.nav-item:not(.dropdown) .nav-link:hover:after {
    width: 100%;
}

/* Estilo para los dropdowns */
.dropdown-toggle::after {
    vertical-align: middle;
}
.dropdown:hover .nav-link {
    color: #0d6efd;
}

/* Estilos para los toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    min-width: 300px;
}

.toast-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.toast-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.toast-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.toast-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.username-truncate {
    display: inline-block;
    max-width: 150px; /* Ajusta este valor si es necesario */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* --- Estilos de biblioteca.html --- */
.biblioteca-container { padding: 1.5rem; }
.grid-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-radius: 8px; transition: background-color 0.2s ease-in-out; text-decoration: none; color: #212529; border: 1px solid #e9ecef; background-color: #fff; }
.grid-item:hover { background-color: #f1f3f5; cursor: pointer; }
.grid-item .icon { font-size: 1.25rem; margin-right: 1rem; color: #495057; }
.grid-item .item-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #dee2e6; }
.breadcrumb-item a { text-decoration: none; }
.entity-selector { display: none; margin-top: 1rem; }
.checkbox-container { max-height: 150px; overflow-y: auto; }

.evento-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
}
.evento-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.categoria-hover:hover {
    background-color: #e9ecef !important;
}
.card-compact {
    font-size: 0.9rem;
}
.card-compact .card-body {
    padding: 0.75rem;
}
.card-compact .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

@media (min-height: 700px) {
    .home-content {
        min-height: calc(100vh - 300px);
    }
}
@media (max-height: 699px) {
    .home-content {
        min-height: calc(100vh - 250px);
    }
}

/* --- Estilos de ver_rendiciones.html --- */
.table-hover .selectable-row:hover {
    cursor: pointer;
    background-color: #f1f1f1;
}
.table > :not(caption) > * > * {
    transition: background-color 0.2s ease-in-out;
}
.row-selected {
    background-color: #dcfce7 !important; /* Un verde claro para la selección */
    --bs-table-accent-bg: #dcfce7 !important;
}

/* Forzar jerarquía */
.modal-backdrop { z-index: 2000 !important; }
.modal { z-index: 2010 !important; }