/**
 * Estilos para o sistema de notificações
 */

/* Container principal */
.cafe-notification-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Ícone do sino */
.notification-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.2s;
}

.notification-icon-wrapper:hover {
    transform: scale(1.1);
}

.notification-icon-wrapper i {
    color: white;
    font-size: 24px;
}

/* Contador de notificações */
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Painel de notificações */
.notification-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Cabeçalho do painel */
.notification-header {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.mark-all-read {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 12px;
    padding: 5px;
}

.mark-all-read:hover {
    text-decoration: underline;
}

/* Lista de notificações */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Item de notificação */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: background 0.2s;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item:hover {
    background: #f9f9f9;
}

/* Conteúdo da notificação */
.notification-content {
    flex: 1;
    padding-right: 10px;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.notification-content p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.notification-link {
    display: inline-block;
    padding: 5px 10px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    transition: background 0.2s;
}

.notification-link:hover {
    background: #005a87;
}

/* Botão marcar como lida */
.notification-mark-read {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .notification-mark-read {
    opacity: 1;
}

.notification-mark-read:hover {
    color: #007cba;
}

/* Estado vazio */
.notification-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Loading */
.loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 480px) {
    .notification-panel {
        width: 300px;
        right: 0;
        bottom: 60px;
    }
    
    .notification-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon-wrapper i {
        font-size: 20px;
    }
}

/* Badge de leitores */
.readers-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: #f0f0f1;
    border-radius: 12px;
    font-size: 10px;
    color: #666;
    font-weight: normal;
}

/* Mensagem de feedback */
.notification-message {
    padding: 10px;
    margin: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 12px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}