/**
 * Estilos do Sistema de Notificações do GestoBit
 */

/* Container do dropdown de notificações */
.notification-dropdown {
    width: 340px;
    max-width: 90vw;
}

/* Lista de notificações */
#notifications-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Item de notificação */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--bs-border-color);
    transition: background-color 0.15s ease;
}

.notification-item:hover {
    background-color: var(--bs-light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Ícone da notificação */
.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.notification-icon .icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    font-size: 14px;
}

/* Conteúdo da notificação */
.notification-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: var(--bs-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px 0;
}

.notification-time {
    font-size: 11px;
    color: var(--bs-secondary);
}

/* Badge de nova notificação */
.notification-badge {
    font-size: 9px;
    padding: 2px 5px;
    flex-shrink: 0;
}

/* Estado vazio */
.notification-empty {
    text-align: center;
    padding: 2rem;
}

.notification-empty i {
    font-size: 2rem;
    color: var(--bs-secondary);
}

.notification-empty p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: var(--bs-secondary);
}

/* Animação do badge */
.notification-badge-pulse {
    animation: badge-pulse 0.5s ease-in-out;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading spinner */
.notification-loading {
    text-align: center;
    padding: 2rem;
}

.notification-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsividade */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 100%;
        max-width: 100%;
    }
    
    #notifications-list {
        max-height: 250px;
    }
}